tsi_malloc_intern.h File Reference

Go to the source code of this file.

Classes

struct  cell
 memory cell structure More...
 
struct  pool
 memory pool structure More...
 

Macros

#define MAX_MEM_POOLS   4
 
#define ALIGNNUM   (16)
 
#define ALIGNMASK   (ALIGNNUM-1)
 
#define ALIGN(s)   ((((s)+ALIGNMASK)/ALIGNNUM)*ALIGNNUM)
 
#define FLAG_EMPTY   0xf1fa1U
 
#define FLAG_NONEMPTY   0xf1fa2U
 
#define IS_LAST(c)   ( (c)->next_offset == 0U )
 
#define OFFSET(c)   ((uintptr_t)(c) - (uintptr_t)HEAD)
 

Typedefs

typedef struct cell cell_t
 memory cell structure More...
 
typedef struct pool pool_t
 memory pool structure More...
 

Variables

static const int cell_t_size = (ALIGN((int)sizeof(cell_t)))
 size of memory cell structure More...