From: Richard Henderson Date: Thu, 14 Feb 2013 01:47:37 +0000 (-0800) Subject: bitops: Use non-bitops ctzl X-Git-Tag: qemu-xen-4.4.0-rc1~6^2~1123 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee;p=qemu-xen.git bitops: Use non-bitops ctzl 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 Reviewed-by: Eric Blake Signed-off-by: Blue Swirl --- diff --git a/util/bitops.c b/util/bitops.c index 7b853cf944..9cd1c3a24c 100644 --- a/util/bitops.c +++ b/util/bitops.c @@ -60,7 +60,7 @@ found_first: return result + size; /* Nope. */ } found_middle: - return result + bitops_ctzl(tmp); + return result + ctzl(tmp); } /*