diff options
Diffstat (limited to 'src/liblzma/lzma')
-rw-r--r-- | src/liblzma/lzma/fastpos.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/liblzma/lzma/fastpos.h b/src/liblzma/lzma/fastpos.h index a95a00c4..4aea2318 100644 --- a/src/liblzma/lzma/fastpos.h +++ b/src/liblzma/lzma/fastpos.h @@ -76,15 +76,12 @@ // slightly faster, but sometimes it is a lot slower. #ifdef HAVE_SMALL -# include "bsr.h" - # define get_pos_slot(pos) ((pos) <= 4 ? (pos) : get_pos_slot_2(pos)) static inline uint32_t get_pos_slot_2(uint32_t pos) { - uint32_t i; - lzma_bsr(i, pos); + const uint32_t i = bsr32(pos); return (i + i) + ((pos >> (i - 1)) & 1); } |