diff --git a/test/utils.h b/test/utils.h index 82d6c25b..73c0e586 100644 --- a/test/utils.h +++ b/test/utils.h @@ -235,6 +235,7 @@ static __inline uint64_t mul_64x64_high(uint64_t a, uint64_t b) { static __inline bool is_power2(size_t x) { return (x & (x - 1)) == 0; } +#undef roundup2 static __inline size_t roundup2(size_t value, size_t granularity) { assert(is_power2(granularity)); return (value + granularity - 1) & ~(granularity - 1);