Re: [PATCH v7 6/8] math.h Add macros to round to closest specified power of 2

From: Andy Shevchenko
Date: Mon May 13 2024 - 04:55:32 EST


On Sun, May 12, 2024 at 07:46:58AM +0300, Alexey Dobriyan wrote:
> I think
>
> roundup(x, 1 << n)

Since it's about power-of-two, round_up() is better.

> is more readable.

--
With Best Regards,
Andy Shevchenko