[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 09/10] bitops: Replace bitops_ctol with ctzl
From: |
Richard Henderson |
Subject: |
[Qemu-devel] [PATCH 09/10] bitops: Replace bitops_ctol with ctzl |
Date: |
Wed, 13 Feb 2013 17:47:42 -0800 |
The is the only remaining user.
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 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)
--
1.8.1.2
- [Qemu-devel] [PATCH 01/10] host-utils: Add host long specific aliases for clz, ctz, ctpop, (continued)
- [Qemu-devel] [PATCH 01/10] host-utils: Add host long specific aliases for clz, ctz, ctpop, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 02/10] host-utils: Fix coding style and add comments, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 03/10] hbitmap: Use non-bitops ctzl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 04/10] bitops: Use non-bitops ctzl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 05/10] memory: Use non-bitops ctzl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 06/10] bitops: Write bitops_flsl in terms of clzl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 07/10] target-i386: Inline bitops_flsl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 08/10] bitops: Inline bitops_flsl, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 10/10] bitops: Remove routines redundant with host-utils, Richard Henderson, 2013/02/13
- [Qemu-devel] [PATCH 09/10] bitops: Replace bitops_ctol with ctzl,
Richard Henderson <=
- Re: [Qemu-devel] [PATCH v2 00/10] Cleanup bitops vs host-utils, Peter Maydell, 2013/02/14
- Re: [Qemu-devel] [PATCH v2 00/10] Cleanup bitops vs host-utils, Eric Blake, 2013/02/14
- Re: [Qemu-devel] [PATCH v2 00/10] Cleanup bitops vs host-utils, Blue Swirl, 2013/02/16