mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-24 20:02:14 +03:00
Reduce differences between alternative bitmap implementations.
This commit is contained in:
parent
4a8abbb400
commit
2ee2f1ec57
2 changed files with 5 additions and 8 deletions
|
|
@ -223,7 +223,7 @@ bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo)
|
|||
i++;
|
||||
g = bitmap[i];
|
||||
}
|
||||
bit = (bit - 1) + (i << LG_BITMAP_GROUP_NBITS);
|
||||
bit = (i << LG_BITMAP_GROUP_NBITS) + (bit - 1);
|
||||
#endif
|
||||
bitmap_set(bitmap, binfo, bit);
|
||||
return (bit);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue