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

Peter Krempa pkrempa at redhat.com
Mon Dec 7 08:59:43 UTC 2020


On Mon, Dec 07, 2020 at 09:55:31 +0100, Ján Tomko wrote:
> 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.

It is in fact a bit more involved refactor. The checks are removed in a
different hunk.

In fact this question shows that the patch split is wrong.




More information about the libvir-list mailing list