aboutsummaryrefslogtreecommitdiff
path: root/util/bitops.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2013-02-13 17:47:37 -0800
committerBlue Swirl <blauwirbel@gmail.com>2013-02-16 11:12:04 +0000
commit265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee (patch)
treeaa0b0dddfb407ef49504a65a0a69bbb3c6da0cce /util/bitops.c
parent18331e7c189507513008a2936f5fe79c3d8b8a08 (diff)
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 <rth@twiddle.net> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'util/bitops.c')
-rw-r--r--util/bitops.c2
1 files changed, 1 insertions, 1 deletions
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);
}
/*