From 4932398fac273b8ebe5688bc4b79407a7f41edbd Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 13 Feb 2013 17:47:41 -0800 Subject: bitops: Inline bitops_flsl This is the only remaining user. Signed-off-by: Richard Henderson Reviewed-by: Eric Blake Signed-off-by: Blue Swirl --- util/bitops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util') diff --git a/util/bitops.c b/util/bitops.c index 9cd1c3a..50b4a81 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); } } -- cgit v1.1