|
Nugget
Bare-metal libraries and examples for the original PlayStation
|
#include "openbios/kernel/alloc.h"#include <stddef.h>#include <stdint.h>#include "common/psxlibc/string.h"
Classes | |
| struct | empty_block_ |
| struct | allocated_block_ |
Macros | |
| #define | ALIGN_MASK ((2 * sizeof(void *)) - 1) |
| #define | ALIGN_TO(x) (((uintptr_t)(x) + ALIGN_MASK) & ~ALIGN_MASK) |
Typedefs | |
| typedef struct empty_block_ | empty_block |
| typedef struct allocated_block_ | allocated_block |
Enumerations | |
| enum | heap { HEAP_USER , HEAP_KERNEL } |
| #define ALIGN_MASK ((2 * sizeof(void *)) - 1) |
| #define ALIGN_TO | ( | x | ) | (((uintptr_t)(x) + ALIGN_MASK) & ~ALIGN_MASK) |
| typedef struct allocated_block_ allocated_block |
| typedef struct empty_block_ empty_block |
| enum heap |