|
@@ -404,7 +404,7 @@ void pk_u64le(void * const bufp, const int offset, const uint64_t nv)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
#define is_power_of_two(n) \
|
|
#define is_power_of_two(n) \
|
|
|
- (0 == ((n) && ((n) - 1)))
|
|
|
|
|
|
|
+ (0 == ((n) & ((n) - 1)))
|
|
|
|
|
|
|
|
static inline
|
|
static inline
|
|
|
uint32_t upper_power_of_two_u32(uint32_t n)
|
|
uint32_t upper_power_of_two_u32(uint32_t n)
|