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

Peter Krempa pkrempa at redhat.com
Fri Dec 4 06:51:00 UTC 2020


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.

> 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>




More information about the libvir-list mailing list