diff options
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -28,6 +28,11 @@ #endif +#if defined(__GNUC__) +# define LIBAR2_WEAKLY_LINKED__ __attribute__((weak)) +#endif + + #ifndef CACHE_LINE_SIZE # define CACHE_LINE_SIZE 256 /* better with larger than actual than smaller than actual */ #endif @@ -48,6 +53,7 @@ # endif #endif + #define ELEMSOF(ARR) (sizeof(ARR) / sizeof(*(ARR))) #define MAX(A, B) ((A) > (B) ? (A) : (B)) |