[PATCH v2 02/27] internal.h: Introduce VIR_IS_POW2()

Ján Tomko jtomko at redhat.com
Mon Dec 7 08:55:31 UTC 2020


On a Friday in 2020, Peter Krempa wrote:
>On Thu, Dec 03, 2020 at 13:36:05 +0100, Michal Privoznik wrote:
>> This macro checks whether given number is an integer power of
>> two.
>
>Mention that you are also refactoring code to use it.
>

IIUC those are new checks - not a refactor.

Jano

>> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
>> ---
>>  src/internal.h           | 10 +++++++++
>>  src/qemu/qemu_validate.c | 46 +++++++++++++++++++++-------------------
>>  src/util/virrandom.c     |  2 +-
>>  3 files changed, 35 insertions(+), 23 deletions(-)
>
>Reviewed-by: Peter Krempa <pkrempa at redhat.com>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201207/9cb3f091/attachment-0001.sig>


More information about the libvir-list mailing list