diff options
| author | Richard Henderson | 2013-02-14 02:47:37 +0100 |
|---|---|---|
| committer | Blue Swirl | 2013-02-16 12:12:04 +0100 |
| commit | 265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee (patch) | |
| tree | aa0b0dddfb407ef49504a65a0a69bbb3c6da0cce | |
| parent | hbitmap: Use non-bitops ctzl (diff) | |
| download | qemu-265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee.tar.gz qemu-265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee.tar.xz qemu-265ce4a5ca39fb7f74a803dd61bbd9108ca6cdee.zip | |
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>
| -rw-r--r-- | util/bitops.c | 2 |
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); } /* |
