diff options
author | Jason Evans <je@fb.com> | 2016-02-24 10:32:45 -0800 |
---|---|---|
committer | Jason Evans <je@fb.com> | 2016-02-24 13:03:48 -0800 |
commit | 9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41 (patch) | |
tree | 9c54e3e9e3d7048498aea9cde2e0839c8409a27f /include/jemalloc/internal/bitmap.h | |
parent | b41a07c31a53cb91729f69b4a23e3a8801ee9846 (diff) | |
download | platform_external_jemalloc_new-9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41.tar.gz platform_external_jemalloc_new-9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41.tar.bz2 platform_external_jemalloc_new-9f4ee6034c3ac6a8c8b5f9a0d76822fb2fd90c41.zip |
Refactor jemalloc_ffs*() into ffs_*().
Use appropriate versions to resolve 64-to-32-bit data loss warnings.
Diffstat (limited to 'include/jemalloc/internal/bitmap.h')
-rw-r--r-- | include/jemalloc/internal/bitmap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/jemalloc/internal/bitmap.h b/include/jemalloc/internal/bitmap.h index fcc6005c..c14e7162 100644 --- a/include/jemalloc/internal/bitmap.h +++ b/include/jemalloc/internal/bitmap.h @@ -176,11 +176,11 @@ bitmap_sfu(bitmap_t *bitmap, const bitmap_info_t *binfo) i = binfo->nlevels - 1; g = bitmap[binfo->levels[i].group_offset]; - bit = jemalloc_ffsl(g) - 1; + bit = ffs_lu(g) - 1; while (i > 0) { i--; g = bitmap[binfo->levels[i].group_offset + bit]; - bit = (bit << LG_BITMAP_GROUP_NBITS) + (jemalloc_ffsl(g) - 1); + bit = (bit << LG_BITMAP_GROUP_NBITS) + (ffs_lu(g) - 1); } bitmap_set(bitmap, binfo, bit); |