]> git.proxmox.com Git - qemu.git/commitdiff
bitops: Inline bitops_flsl
authorRichard Henderson <rth@twiddle.net>
Thu, 14 Feb 2013 01:47:41 +0000 (17:47 -0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 16 Feb 2013 11:12:37 +0000 (11:12 +0000)
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>
util/bitops.c

index 9cd1c3a24cc0da667f72385bcb08215a76e8dfc3..50b4a811a6e7ed7d89898330214b85c99b143b28 100644 (file)
@@ -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);
         }
     }