From 265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Wed, 13 Feb 2013 17:47:37 -0800 Subject: 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 --- util/bitops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util/bitops.c') diff --git a/util/bitops.c b/util/bitops.c index 7b853cf..9cd1c3a 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); } /* -- cgit v1.1