diff options
Diffstat (limited to 'util/bitops.c')
-rw-r--r-- | util/bitops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/bitops.c b/util/bitops.c index 9cd1c3a24c..50b4a811a6 100644 --- a/util/bitops.c +++ b/util/bitops.c @@ -133,7 +133,7 @@ unsigned long find_last_bit(const unsigned long *addr, unsigned long size) tmp = addr[--words]; if (tmp) { found: - return words * BITS_PER_LONG + bitops_flsl(tmp); + return words * BITS_PER_LONG + BITS_PER_LONG - 1 - clzl(tmp); } } |