bitops: Remove routines redundant with host-utils
Signed-off-by: Richard Henderson <rth@twiddle.net>Reviewed-by: Eric Blake <eblake@redhat.com>Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
bitops: Replace bitops_ctol with ctzl
The is the only remaining user.
bitops: Inline bitops_flsl
This is the only remaining user.
target-i386: Inline bitops_flsl
Use clz32 directly. Which makes slightly more sense giventhat the input is type "int" and not type "long".
bitops: Write bitops_flsl in terms of clzl
memory: Use non-bitops ctzl
A memory size of zero is invalid, and so that edge conditiondoes not occur.
bitops: Use non-bitops ctzl
The use of ctz has already eliminated zero, and thus the differencein edge conditions between the two routines is irrelevant.
hbitmap: Use non-bitops ctzl
Both uses of ctz have already eliminated zero, and thus the differencein edge conditions between the two routines is irrelevant.
Signed-off-by: Richard Henderson <rth@twiddle.net>Acked-by: Paolo Bonzini <pbonzini@redhat.com>...
host-utils: Fix coding style and add comments
Add function comments to the routines, documenting the cornercases upon which we are standardizing. Fix the few instancesof non-standard coding style.
Signed-off-by: Richard Henderson <rth@twiddle.net>Reviewed-by: Eric Blake <eblake@redhat.com>...
host-utils: Add host long specific aliases for clz, ctz, ctpop
We will standardize on these names, rather than the similar routinescurrently residing in qemu/bitops.h.
View all revisions | View revisions
Also available in: Atom