diff options
Diffstat (limited to 'include/util.h')
-rw-r--r-- | include/util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/util.h b/include/util.h index edef7d9b38..91054ff660 100644 --- a/include/util.h +++ b/include/util.h @@ -53,7 +53,7 @@ extern "C" { ((type *)(((uint8_t *) pointer) - offsetof(type, member))) /* True of x is a power of two */ -#define POWER_OF_TWO(x) (x && !(x & (x - 1))) +#define POWER_OF_TWO(x) ((x) && !((x) & ((x) - 1))) /* * macros for integer division with various rounding variants |