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

Andy Shevchenko andriy.shevchenko at linux.intel.com
Mon May 13 08:55:06 UTC 2024


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




More information about the dri-devel mailing list