add comment about special small size classes

This commit is contained in:
Daniel Micay 2022-01-16 20:50:49 -05:00
parent 422ee78b3e
commit 8d61e63274
1 changed files with 1 additions and 0 deletions

View File

@ -193,6 +193,7 @@ static inline struct size_info get_size_info(size_t size) {
if (size == 0) {
return (struct size_info){0, 0};
}
// size <= 64 is needed for correctness and raising it to size <= 128 is an optimization
if (size <= 128) {
return (struct size_info){align(size, 16), ((size - 1) >> 4) + 1};
}