]> git.proxmox.com Git - qemu.git/commitdiff
bitops: Use non-bitops ctzl
authorRichard Henderson <rth@twiddle.net>
Thu, 14 Feb 2013 01:47:37 +0000 (17:47 -0800)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 16 Feb 2013 11:12:04 +0000 (11:12 +0000)
The use of ctz has already eliminated zero, and thus the difference
in edge conditions between the two routines is irrelevant.

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 7b853cf944b327644b7803d935a5d32a75d6d24c..9cd1c3a24cc0da667f72385bcb08215a76e8dfc3 100644 (file)
@@ -60,7 +60,7 @@ found_first:
         return result + size;  /* Nope. */
     }
 found_middle:
-    return result + bitops_ctzl(tmp);
+    return result + ctzl(tmp);
 }
 
 /*