Macros
Defines
Graphics » Common » GPU Internal Malloc
Collaboration diagram for Defines:

## Macros
#define | MAX_MEM_POOLS 4
| count of memory pool More...
#define | ALIGNNUM (16)
| align bytes More...
#define | ALIGNMASK (ALIGNNUM-1)
| align mask More...
#define | ALIGN(s) ((((s)+ALIGNMASK)/ALIGNNUM)*ALIGNNUM)
| align address More...
#define | FLAG_EMPTY 0xf1fa1U
| empty flag More...
#define | FLAG_NONEMPTY 0xf1fa2U
| non-empty flag More...
#define | IS_LAST(c) ( (c)->next_offset == 0U )
| check is last or not More...
#define | OFFSET(c) ((uintptr_t)(c) - (uintptr_t)HEAD)
| offset from pool head More...

## Detailed Description

## Macro Definition Documentation

## ◆ ALIGN

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

align address

Definition at line 70 of file tsi_malloc_intern.h.

## ◆ ALIGNMASK

#define ALIGNMASK (ALIGNNUM-1)

align mask

Definition at line 69 of file tsi_malloc_intern.h.

## ◆ ALIGNNUM

#define ALIGNNUM (16)

align bytes

Definition at line 68 of file tsi_malloc_intern.h.

## ◆ FLAG_EMPTY

#define FLAG_EMPTY 0xf1fa1U

empty flag

Definition at line 72 of file tsi_malloc_intern.h.

## ◆ FLAG_NONEMPTY

#define FLAG_NONEMPTY 0xf1fa2U

non-empty flag

Definition at line 73 of file tsi_malloc_intern.h.

## ◆ IS_LAST

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

check is last or not

Definition at line 75 of file tsi_malloc_intern.h.

## ◆ MAX_MEM_POOLS

#define MAX_MEM_POOLS 4

count of memory pool

Definition at line 65 of file tsi_malloc_intern.h.

## ◆ OFFSET

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

offset from pool head

Definition at line 76 of file tsi_malloc_intern.h.