summaryrefslogtreecommitdiff
path: root/include/mimalloc-internal.h
diff options
context:
space:
mode:
authordaan <daanl@outlook.com>2019-09-11 17:49:28 -0700
committerdaan <daanl@outlook.com>2019-09-11 17:49:28 -0700
commit24777f6a9116d51a1ba6f79e619bedeef3b4d06f (patch)
tree664808885f77dd294d23fd034b2f20bbea6b62e2 /include/mimalloc-internal.h
parent050e7cedf453e05eb4e498786b467b599a154f9b (diff)
limit aligned allocation to power-of-two alignment
Diffstat (limited to 'include/mimalloc-internal.h')
-rw-r--r--include/mimalloc-internal.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mimalloc-internal.h b/include/mimalloc-internal.h
index 8a81337..e99e6df 100644
--- a/include/mimalloc-internal.h
+++ b/include/mimalloc-internal.h
@@ -168,7 +168,7 @@ static inline bool mi_mul_overflow(size_t count, size_t size, size_t* total) {
#endif
}
-// Is `x` a power of two?
+// Is `x` a power of two? (0 is considered a power of two)
static inline bool _mi_is_power_of_two(uintptr_t x) {
return ((x & (x - 1)) == 0);
}