Eric Blake
cf86d7b3a3
bitmap: add virBitmapCountBits
...
Sometimes it's handy to know how many bits are set.
* src/util/bitmap.h (virBitmapCountBits): New prototype.
(virBitmapNextSetBit): Use correct type.
* src/util/bitmap.c (virBitmapNextSetBit): Likewise.
(virBitmapSetAll): Maintain invariant of clear tail bits.
(virBitmapCountBits): New function.
* src/libvirt_private.syms (bitmap.h): Export it.
* tests/virbitmaptest.c (test2): Test it.
(cherry picked from commit 0711c4b74d1f0e83b06c5b15a50f99d780478566)
2013-08-20 14:53:23 +02:00
..
2012-08-02 14:36:23 -06:00
2012-08-31 08:10:58 -07:00
2012-03-27 09:54:49 -06:00
2012-03-09 14:36:31 +01:00
2012-09-13 21:19:58 +08:00
2012-03-15 12:24:56 +08:00
2012-05-08 16:57:37 -06:00
2012-12-13 12:29:53 -05:00
2012-08-17 15:43:26 -04:00
2012-08-17 15:43:26 -04:00
2012-08-02 14:36:23 -06:00
2012-07-20 15:36:11 -06:00
2012-05-21 06:26:34 -04:00
2012-05-21 06:26:34 -04:00
2012-09-18 15:43:28 +08:00
2013-06-11 16:51:18 -04:00
2012-05-15 17:07:34 +01:00
2012-12-09 15:43:01 -05:00
2012-05-08 16:57:37 -06:00
2012-08-02 14:36:23 -06:00
2012-08-02 14:36:23 -06:00
2012-08-02 17:14:17 -06:00
2012-07-18 20:08:27 +01:00
2012-07-21 20:15:02 +02:00
2012-05-08 16:57:37 -06:00
2012-04-02 09:33:54 -06:00
2012-07-21 19:45:02 +02:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-09-17 14:59:37 -04:00
2012-09-20 16:30:55 -06:00
2012-05-08 16:57:37 -06:00
2012-03-27 15:52:25 +01:00
2012-03-26 14:45:22 -06:00
2012-09-20 16:30:55 -06:00
2012-03-26 14:45:22 -06:00
2012-09-20 16:30:55 -06:00
2012-03-29 21:23:59 -06:00
2013-01-07 10:38:24 -07:00
2012-11-29 15:14:20 -05:00
2012-08-17 15:43:26 -04:00
2012-03-26 14:45:22 -06:00
2012-07-20 15:36:11 -06:00
2012-05-21 06:26:34 -04:00
2012-09-20 16:30:55 -06:00
2012-07-30 13:09:57 +01:00
2012-05-08 16:57:37 -06:00
2012-09-20 16:41:07 +02:00
2012-09-20 16:41:07 +02:00
2012-09-20 16:30:55 -06:00
2012-12-09 16:07:09 -05:00
2012-09-20 16:30:55 -06:00
2012-10-18 13:14:36 -04:00
2012-09-20 16:41:07 +02:00
2012-09-13 12:24:12 +01:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-08-06 08:15:13 -06:00
2012-10-27 14:54:30 -04:00
2013-04-01 10:41:04 -04:00
2012-08-07 11:47:41 +01:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-07-27 07:42:34 -06:00
2012-03-26 14:45:22 -06:00
2012-09-20 16:30:55 -06:00
2012-07-18 20:08:27 +01:00
2012-07-18 20:08:27 +01:00
2012-10-17 16:41:06 -04:00
2012-09-20 16:30:55 -06:00
2012-03-27 15:52:25 +01:00
2012-03-27 15:52:25 +01:00
2012-07-11 11:19:05 +02:00
2012-07-27 07:42:34 -06:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2013-08-20 14:53:23 +02:00
2012-06-11 09:21:27 -06:00
2012-09-20 16:30:55 -06:00
2012-04-04 14:33:27 +01:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2013-05-19 17:47:58 -04:00
2012-08-07 11:59:08 +01:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-07-27 07:42:34 -06:00
2012-09-12 11:27:22 -06:00
2012-05-01 14:58:14 -06:00
2013-01-07 10:38:24 -07:00
2012-09-20 16:30:55 -06:00
2012-09-20 16:30:55 -06:00
2012-07-21 20:15:02 +02:00
2012-03-26 14:45:22 -06:00
2012-09-20 16:30:55 -06:00
2012-03-26 14:45:22 -06:00
2012-07-21 19:45:02 +02:00