mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-03 18:37:48 +01:00
Add minor comment
This commit is contained in:
parent
9c89560e6c
commit
4e63974471
@ -33,6 +33,10 @@
|
||||
#define ABS(a) ((a)>=0 ? (a) : -(a))
|
||||
#define ARRAY_SIZE(a) (sizeof(a)/sizeof(*(a)))
|
||||
|
||||
|
||||
/* Bitfield macros */
|
||||
|
||||
/* b is u32 array (or ptr), l is size of it in bits (multiple of 32), p is 0..(l-1) */
|
||||
#define BIT32_VAL(p) (((u32) 1) << ((p) % 32))
|
||||
#define BIT32_TEST(b,p) ((b)[(p)/32] & BIT32_VAL(p))
|
||||
#define BIT32_SET(b,p) ((b)[(p)/32] |= BIT32_VAL(p))
|
||||
|
Loading…
Reference in New Issue
Block a user