Align memory (de)allocation functions.
More...
#include <stdlib.h>
#include "memory.h"
|
void * | amalloc (size_t size, int p) |
| Allocated memory aligned, because this improves bandwidth.
|
|
void | afree (void *addr) |
| Free memory that was allocated aligned using amalloc.
|
|
Align memory (de)allocation functions.
◆ afree()
void afree |
( |
void * | addr | ) |
|
Free memory that was allocated aligned using amalloc.
- Parameters
-
◆ amalloc()
void * amalloc |
( |
size_t | size, |
|
|
int | p ) |
Allocated memory aligned, because this improves bandwidth.
- Parameters
-
size | size to be allocated |
p | alignment |