|
ChibiOS 21.11.4
|
Memory Alignment services.

Memory alignment support macros | |
| #define | MEM_ALIGN_MASK(a) |
| Alignment mask constant. | |
| #define | MEM_ALIGN_PREV(p, a) |
| Aligns to the previous aligned memory address. | |
| #define | MEM_ALIGN_NEXT(p, a) |
| Aligns to the next aligned memory address. | |
| #define | MEM_IS_ALIGNED(p, a) |
| Returns whatever a pointer or memory size is aligned. | |
| #define | MEM_IS_VALID_ALIGNMENT(a) |
| Returns whatever a constant is a valid alignment. | |
| #define MEM_ALIGN_MASK | ( | a | ) |
| #define MEM_ALIGN_PREV | ( | p, | |
| a ) |
Aligns to the previous aligned memory address.
| [in] | p | variable to be aligned |
| [in] | a | alignment, must be a power of two |
Definition at line 69 of file chalign.h.
Referenced by chCoreAllocFromTopI().
| #define MEM_ALIGN_NEXT | ( | p, | |
| a ) |
Aligns to the next aligned memory address.
| [in] | p | variable to be aligned |
| [in] | a | alignment, must be a power of two |
Definition at line 80 of file chalign.h.
Referenced by chCoreAllocFromBaseI(), chFactoryCreateObjectsFIFO(), chHeapAllocAligned(), chHeapFree(), chHeapObjectInit(), chThdCreateStatic(), and chThdCreateSuspendedI().
| #define MEM_IS_ALIGNED | ( | p, | |
| a ) |
Returns whatever a pointer or memory size is aligned.
| [in] | p | variable to be aligned |
| [in] | a | alignment, must be a power of two |
Definition at line 91 of file chalign.h.
Referenced by chHeapFree(), chPoolAllocI(), chPoolFreeI(), chThdCreateI(), chThdCreateStatic(), and chThdCreateSuspendedI().
| #define MEM_IS_VALID_ALIGNMENT | ( | a | ) |
Returns whatever a constant is a valid alignment.
Valid alignments are powers of two.
| [in] | a | alignment to be checked, must be a constant |
Definition at line 99 of file chalign.h.
Referenced by chCoreAllocFromBaseI(), chCoreAllocFromTopI(), chHeapAllocAligned(), and chPoolObjectInitAligned().