xemu/util
Paolo Bonzini fbeadf50f2 bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl
We had two copies of a ffs function for longs with subtly different
semantics and, for the one in bitops.h, a confusing name: the result
was off-by-one compared to the library function ffsl.

Unify the functions into one, and solve the name problem by calling
the 0-based functions "bitops_ctzl" and "bitops_ctol" respectively.

This also fixes the build on platforms with ffsl, including Mac OS X
and Windows.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Tested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
2013-02-02 20:16:00 +00:00
..
Makefile.objs add hierarchical bitmap data type and test cases 2013-01-25 18:18:32 +01:00
acl.c acl: Free memory allocated with g_malloc() with g_free() 2013-01-15 18:25:41 -06:00
aes.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
bitmap.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
bitops.c bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl 2013-02-02 20:16:00 +00:00
cache-utils.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
compatfd.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
cutils.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
envlist.c util: Fix compilation of envlist.c for MinGW 2013-02-02 20:13:19 +00:00
error.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
event_notifier-posix.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
event_notifier-win32.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
hbitmap.c bitops: unify bitops_ffsl with the one in host-utils.h, call it bitops_ctzl 2013-02-02 20:16:00 +00:00
host-utils.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
iov.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
module.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
notify.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
osdep.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
oslib-posix.c bsd-user: avoid conflict with qemu_vmalloc 2013-01-26 13:18:27 +00:00
oslib-win32.c w32: Make qemu_vfree() accept NULL like the POSIX implementation 2013-01-15 16:46:50 +01:00
path.c Replace non-portable asprintf by g_strdup_printf 2013-01-19 10:24:43 +00:00
qemu-config.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-error.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-option.c g_strdup(NULL) returns NULL; simplify 2013-01-30 11:14:46 +01:00
qemu-progress.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-sockets.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-thread-posix.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-thread-win32.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
qemu-timer-common.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00
uri.c build: move libqemuutil.a components to util/ 2013-01-12 18:42:50 +01:00