diff options
author | Maria Matejka <mq@ucw.cz> | 2022-05-30 16:21:48 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-30 16:21:48 +0200 |
commit | 0097f24e2e8b3feb56d4ae5c5b56a8defd9f7d2e (patch) | |
tree | 501f4338c51b61362e31b3da8e39f48b2069f028 /lib/birdlib.h | |
parent | 86ac1045d7497af8c7556c5051d4b005fbfcdbe1 (diff) | |
parent | de86040b2cf4ec9bfbb64f0e208a19d4d7e51adc (diff) |
Merge commit 'de86040b2cf4ec9bfbb64f0e208a19d4d7e51adc' into haugesund
Diffstat (limited to 'lib/birdlib.h')
-rw-r--r-- | lib/birdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h index 81d4908a..6f0bab96 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -19,6 +19,7 @@ struct align_probe { char x; long int y; }; #define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i))) #define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1)) #define CPU_STRUCT_ALIGN (sizeof(struct align_probe)) +#define BIRD_CPU_ALIGN(s) BIRD_ALIGN((s), CPU_STRUCT_ALIGN) /* Utility macros */ |