mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-07-12 22:24:58 +03:00
merge from dev-win
This commit is contained in:
commit
082f012a91
9 changed files with 70 additions and 68 deletions
|
@ -130,6 +130,7 @@ extern inline uint8_t _mi_bin(size_t size) {
|
|||
// - adjust with 3 because we use do not round the first 8 sizes
|
||||
// which each get an exact bin
|
||||
bin = ((b << 2) + (uint8_t)((wsize >> (b - 2)) & 0x03)) - 3;
|
||||
mi_assert_internal(bin < MI_BIN_HUGE);
|
||||
}
|
||||
mi_assert_internal(bin > 0 && bin <= MI_BIN_HUGE);
|
||||
return bin;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue