Peter Xu
ad37f24d57
bitmap: Add bitmap_copy_with_{src|dst}_offset()
...
These helpers copy the source bitmap to destination bitmap with a
shift either on the src or dst bitmap.
Meanwhile, we never have bitmap tests but we should.
This patch also introduces the initial test cases for utils/bitmap.c
but it only tests the newly introduced functions.
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20190603065056.25211-5-peterx@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
Bitmap test used sizeof(unsigned long) instead of BITS_PER_LONG.
2019-07-15 15:39:02 +02:00
..
2019-02-06 03:38:39 +00:00
2019-07-14 12:19:00 +02:00
2019-06-12 13:20:20 +02:00
2016-07-12 16:20:46 +02:00
2019-07-15 15:39:02 +02:00
2017-05-12 12:36:02 +02:00
2019-04-09 18:34:21 +02:00
2019-06-12 13:20:20 +02:00
2019-05-07 12:55:02 +01:00
2018-02-09 13:52:16 +01:00
2018-03-27 13:05:28 +01:00
2018-09-25 15:50:15 +02:00
2017-07-24 12:42:55 +01:00
2019-06-12 13:20:20 +02:00
2019-06-11 20:22:09 +02:00
2019-04-18 22:18:59 +02:00
2019-05-13 08:58:55 +02:00
2012-12-19 08:32:39 +01:00
2019-04-18 22:18:59 +02:00
2019-06-12 13:20:20 +02:00
2016-07-12 16:19:16 +02:00
2016-06-07 18:19:23 +03:00
2019-06-12 13:20:20 +02:00
2017-10-16 20:57:13 +03:00
2019-05-22 12:38:54 -04:00
2019-01-15 18:26:50 -05:00
2016-07-12 16:20:46 +02:00
2018-12-12 10:01:13 +01:00
2016-07-12 16:20:46 +02:00
2016-10-26 08:29:01 -07:00
2019-02-22 09:42:13 +00:00
2018-06-29 12:22:28 +01:00
2019-05-13 08:58:55 +02:00
2018-09-25 15:50:15 +02:00
2018-03-06 14:01:27 +01:00
2018-03-12 11:10:20 +00:00
2018-05-15 14:58:44 +01:00
2019-02-07 15:49:08 +02:00
2018-10-02 18:47:55 +02:00
2019-06-12 13:20:20 +02:00
2019-03-07 17:28:24 +01:00
2013-06-28 09:20:26 +02:00
2019-01-11 15:46:55 +01:00
2018-11-05 15:17:48 +01:00
2019-05-07 12:55:03 +01:00
2016-07-12 16:20:46 +02:00
2019-05-13 08:58:55 +02:00
2018-02-05 18:09:45 +01:00
2019-06-12 13:20:20 +02:00
2019-04-18 22:18:59 +02:00
2018-09-26 08:55:54 -07:00
2019-04-18 22:18:59 +02:00
2019-02-05 16:50:21 +01:00
2019-01-30 10:51:20 +01:00
2018-02-15 09:39:49 +00:00
2019-01-11 15:46:55 +01:00
2018-03-12 16:12:47 +01:00
2018-01-16 14:54:50 +01:00
2018-08-23 18:46:25 +02:00
2018-03-13 18:06:06 +00:00
2019-05-13 08:58:55 +02:00
2019-05-13 08:58:55 +02:00
2019-05-13 08:58:55 +02:00
2018-08-23 18:46:25 +02:00
2018-08-23 18:46:25 +02:00
2018-11-06 21:35:06 +01:00
2017-09-06 10:12:02 +02:00
2019-06-12 13:20:20 +02:00
2016-02-23 12:43:05 +00:00
2019-06-12 13:20:20 +02:00
2019-04-29 17:57:21 +01:00
2018-08-24 20:26:37 +02:00
2019-02-01 13:46:45 +01:00
2016-09-15 15:32:22 +03:00
2019-06-12 13:20:20 +02:00
2018-12-20 10:29:08 +01:00
2018-10-02 19:09:12 +02:00
2017-01-24 23:26:52 +03:00
2018-12-17 06:04:44 +03:00