[09/10] bitops: Replace bitops_ctol with ctzl

Submitted by Richard Henderson on Feb. 14, 2013, 1:47 a.m.

Details

Message ID 1360806463-23632-10-git-send-email-rth@twiddle.net
State New
Headers show

Commit Message

Richard Henderson Feb. 14, 2013, 1:47 a.m.
The is the only remaining user.

Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 util/bitops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/util/bitops.c b/util/bitops.c
index 50b4a81..e72237a 100644
--- a/util/bitops.c
+++ b/util/bitops.c
@@ -109,7 +109,7 @@  found_first:
         return result + size;	/* Nope. */
     }
 found_middle:
-    return result + bitops_ctol(tmp);
+    return result + ctzl(~tmp);
 }
 
 unsigned long find_last_bit(const unsigned long *addr, unsigned long size)