From: Richard Henderson Date: Thu, 14 Feb 2013 01:47:41 +0000 (-0800) Subject: bitops: Inline bitops_flsl X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~1119 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4932398fac273b8ebe5688bc4b79407a7f41edbd;p=qemu-upstream-4.6-testing.git bitops: Inline bitops_flsl This is the only remaining user. Signed-off-by: Richard Henderson Reviewed-by: Eric Blake Signed-off-by: Blue Swirl --- diff --git a/util/bitops.c b/util/bitops.c index 9cd1c3a24..50b4a811a 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); } }