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)
 

Detailed Description

Macro Definition Documentation

◆ ALIGN

#define ALIGN (   s)    ((((s)+ALIGNMASK)/ALIGNNUM)*ALIGNNUM)

align address

Definition at line 30 of file tsi_malloc_intern.h.

◆ ALIGNMASK

#define ALIGNMASK   (ALIGNNUM-1)

align mask

Definition at line 29 of file tsi_malloc_intern.h.

◆ ALIGNNUM

#define ALIGNNUM   (16)

align bytes

Definition at line 28 of file tsi_malloc_intern.h.

◆ FLAG_EMPTY

#define FLAG_EMPTY   0xf1fa1U

empty flag

Definition at line 32 of file tsi_malloc_intern.h.

◆ FLAG_NONEMPTY

#define FLAG_NONEMPTY   0xf1fa2U

non-empty flag

Definition at line 33 of file tsi_malloc_intern.h.

◆ IS_LAST

#define IS_LAST (   c)    ( (c)->next_offset == 0U )

check is last or not

Definition at line 35 of file tsi_malloc_intern.h.

◆ MAX_MEM_POOLS

#define MAX_MEM_POOLS   4

count of memory pool

Definition at line 25 of file tsi_malloc_intern.h.

◆ OFFSET

#define OFFSET (   c)    ((uintptr_t)(c) - (uintptr_t)HEAD)

offset from pool head

Definition at line 36 of file tsi_malloc_intern.h.