└───liblfds710 └───inc └───liblfds710 lfds710_porting_abstraction_layer_compiler.h
#define LFDS710_PAL_ALIGN( alignment ) [compiler alignment directive]
- Alignment in bytes.
No return value.
#define LFDS710_PAL_ALIGN(alignment) __attribute__( (aligned(alignment)) )
This define is mandatory and the library cannot compile if it is not set.
Atomic instructions require the variables they operate upon to meet certain memory alignment requirements.
This issue comes into play when making stack allocation, or positioning elements in structures for caching-line or exclusive reservation granule alignement and padding.
This macro is the mechanism by which the compiler specific keyword for alignment is provided to liblfds.