1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

ALIGN -> BIRD_ALIGN

This commit is contained in:
Ondrej Filip
2004-06-01 10:28:25 +00:00
parent 22122d4d4c
commit 7fdd338c36
3 changed files with 5 additions and 7 deletions

View File

@@ -13,9 +13,7 @@
#define OFFSETOF(s, i) ((unsigned int)&((s *)0)->i)
#define SKIP_BACK(s, i, p) ((s *)((char *)p - OFFSETOF(s, i)))
#ifndef ALIGN
#define ALIGN(s, a) (((s)+a-1)&~(a-1))
#endif
#define BIRD_ALIGN(s, a) (((s)+a-1)&~(a-1))
/* Utility macros */