|
Embedded Artistry Framework
Embedded Systems C++ Framework
|

Macros | |
| #define | IS_POWER_2(x) (!((x) & ((x)-1))) |
Functions | |
| int | posix_memalign (void **__memptr, size_t __alignment, size_t __size) |
| Posix Memory Alignment Extension. More... | |
| #define IS_POWER_2 | ( | x | ) | (!((x) & ((x)-1))) |
Posix Memory Alignment Extension.
Generated aligned memory. This function forwards the request to aligned malloc. Allocated memory must be freed with aligned_free().
| memptr | A pointer to the pointer which will store the aligned memory. The memory must be freed with aligned_free(). memptr must not be NULL. |
| alignment | The target alignment for the memory. Must be a power of 2. |
| size | The size of the allocation. Must be > 0. |
memptr is not NULL. alignment is power-of-2. size > 0.References aligned_malloc(), assert, EINVAL, ENOMEM, IS_POWER_2, NULL, and r.
Referenced by posix_memalign_test().

1.8.15