StuBS
|
Helper for cache alignment. More...
#include "debug/assert.h"
Macros | |
#define | CACHE_LINE_SIZE 64 |
#define | cache_aligned alignas(CACHE_LINE_SIZE) |
#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 CACHE_LINE_SIZE 64 |
#define cache_aligned alignas(CACHE_LINE_SIZE) |
#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 |