StuBS
|
Helper for cache alignment. More...
#include "debug/assert.h"
Macros | |
#define | assert_cache_aligned(TYPE) static_assert(sizeof(TYPE) % CACHE_LINE_SIZE == 0, STRINGIFY(TYPE) "Not aligned on cache boundary") |
Compile time check of cache alignment. | |
Helper for cache alignment.
#define assert_cache_aligned | ( | TYPE | ) | static_assert(sizeof(TYPE) % CACHE_LINE_SIZE == 0, STRINGIFY(TYPE) "Not aligned on cache boundary") |
Compile time check of cache alignment.
TYPE | data type to check |