diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/stdlib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 2fc6805c73..35e8b3229a 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -9,6 +9,7 @@ #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask)) #define ALIGN_UP(x,a) ALIGN((x),(a)) #define ALIGN_DOWN(x,a) ((x) & ~((typeof(x))(a)-1UL)) +#define IS_ALIGNED(x,a) (((x) & ((typeof(x))(a)-1UL)) == 0) #define MIN(a,b) ((a) < (b) ? (a) : (b)) #define MAX(a,b) ((a) > (b) ? (a) : (b)) |