diff options
-rw-r--r-- | libmaple/include/libmaple/util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmaple/include/libmaple/util.h b/libmaple/include/libmaple/util.h index d0b7b0b..78bc03d 100644 --- a/libmaple/include/libmaple/util.h +++ b/libmaple/include/libmaple/util.h @@ -42,13 +42,13 @@ extern "C"{ * Bit manipulation */ -/** 1 << the bit number */ +/** 1UL << (shift) */ #define BIT(shift) (1UL << (shift)) -/** Mask shifted left by 'shift' */ +/** 'Mask' shifted left by 'shift' */ #define BIT_MASK_SHIFT(mask, shift) ((mask) << (shift)) /** Bits m to n of x */ #define GET_BITS(x, m, n) ((((uint32)x) << (31 - (n))) >> ((31 - (n)) + (m))) -/** True if v is a power of two (1, 2, 4, 8, ...) */ +/** True iff v is a power of two (1, 2, 4, 8, ...) */ #define IS_POWER_OF_TWO(v) ((v) && !((v) & ((v) - 1))) /* |