Michael Tokarev 8cffde7329 get rid of private bitmap functions in block/sheepdog.c, use generic ones
qemu now has generic bitmap functions,
so don't redefine them in sheepdog.c,
use common header instead.  A small cleanup.

Here's only one function which is actually
used in sheepdog and gets replaced with
a generic one (simplified):

- static inline int test_bit(int nr, const volatile unsigned long *addr)
+ static inline int test_bit(int nr, const unsigned long *addr)
 {
-  return ((1UL << (nr % BITS_PER_LONG))
            & ((unsigned long*)addr)[nr / BITS_PER_LONG])) != 0;
+  return 1UL & (addr[nr / BITS_PER_LONG] >> (nr & (BITS_PER_LONG-1)));
 }

The body is equivalent, but the argument is not: there's
"volatile" in there.  Why it is used for - I'm not sure.

Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Acked-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2011-04-01 22:23:06 +02:00
2011-03-16 09:56:18 +01:00
2011-03-07 15:34:17 +00:00
2011-03-07 13:42:37 +01:00
2011-04-01 21:53:57 +02:00
2011-02-24 11:25:38 -06:00
2011-03-07 13:42:36 +01:00
2011-03-07 13:42:36 +01:00
2011-02-20 18:45:09 +01:00
2011-02-25 20:16:26 +00:00
2011-03-22 08:39:12 -05:00
2011-03-15 01:19:06 -03:00
2011-03-15 01:19:06 -03:00
2011-03-16 17:11:07 -03:00
2011-03-07 13:42:36 +01:00
2011-03-16 17:11:07 -03:00
2011-03-07 13:42:36 +01:00
2011-03-06 21:01:32 +01:00
2011-03-16 17:11:07 -03:00
2011-03-07 13:42:36 +01:00
2011-03-13 14:44:22 +00:00
2011-03-21 09:23:23 +01:00
2011-03-21 09:23:23 +01:00
2011-03-22 08:39:12 -05:00
2011-03-21 17:41:52 -05:00
2011-03-29 08:14:01 -05:00

Read the documentation in qemu-doc.html.

Fabrice Bellard.
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%