qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 04/10] bitops: Use non-bitops ctzl


From: Richard Henderson
Subject: [Qemu-devel] [PATCH 04/10] bitops: Use non-bitops ctzl
Date: Wed, 13 Feb 2013 17:47:37 -0800

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 <address@hidden>
---
 util/bitops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);
 }
 
 /*
-- 
1.8.1.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]