aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-02-13 17:47:41 -0800
committerBlue Swirl <blauwirbel@gmail.com>2013-02-16 11:12:37 +0000
commit4932398fac273b8ebe5688bc4b79407a7f41edbd (patch)
tree93530c537e767dadafc32484567fd47549b0cea2
parent14e534265aad0796690a5aea429f5bd2877ccff0 (diff)
bitops: Inline bitops_flsl
This is the only remaining user. Signed-off-by: Richard Henderson <rth@twiddle.net> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
-rw-r--r--util/bitops.c2
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);
}
}