| Branch: | Revision:

root / bitops.h @ a74cdab4

History | View | Annotate | Download (6.3 kB)

# Date Author Comment
84803d7a 02/25/2011 07:21 pm Blue Swirl

bitops: fix error on OpenBSD and mingw32

Fix this error:
CC bitops.o
In file included from /src/qemu/bitops.c:14:
/src/qemu/bitops.h:69: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'unsigned'

Signed-off-by: Blue Swirl <>

04483e15 02/25/2011 07:19 pm Corentin Chary

bitops: fix test_and_change_bit()

./bitops.h:192: warning: ‘old’ is used uninitialized in this function

Signed-off-by: Corentin Chary <>
Signed-off-by: Blue Swirl <>

e0e53b2f 02/24/2011 12:28 am Corentin Chary

bitmap: add a generic bitmap and bitops library

Add most used bitmap and bitops functions into bitmap.c and bitops.c.
Theses functions are mostly copied from Linux kernel source.

Some of these functions are already redefined in the VNC server. Some
of them could be used for some block stuff. The yet yo be submitted...