Michal Privoznik 7fd8e49ef1 internal.h: Introduce and use VIR_IS_POW2()
This macro checks whether given number is an integer power of
two. At the same time, I've identified two places where we check
for pow2 and I'm replacing them with the macro.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Tested-by: Han Han <hhan@redhat.com>
2020-12-04 16:24:19 +01:00
..
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-07-09 10:01:41 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-03-13 17:26:55 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-02-24 23:15:49 +01:00
2020-02-24 17:25:07 +00:00
2020-08-03 15:19:28 +02:00
2020-08-03 15:30:40 +02:00
2020-02-24 20:25:48 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-12-17 10:04:43 +01:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2019-10-16 12:06:44 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-12-02 15:43:21 +01:00
2020-12-02 15:43:21 +01:00
2020-10-06 12:31:33 +02:00
2019-10-16 12:06:44 +02:00
2020-03-05 12:23:02 +00:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-10-06 12:31:34 +02:00
2020-11-24 14:17:08 +01:00
2019-10-16 12:06:44 +02:00
2020-12-04 16:24:19 +01:00
2020-12-04 16:24:19 +01:00