Re: [PATCH v2 1/6] math.h: Add macros for rounding to the closest value

From: Randy Dunlap
Date: Sun Sep 29 2024 - 21:19:22 EST




On 8/29/24 2:54 AM, Jiri Slaby wrote:
> On 29. 08. 24, 11:19, Jani Nikula wrote:
>> The stupid thing here is, I still don't remember which one is the
>> generic thing, rounddown() or round_down(). I have to look it up every
>> single time to be sure. I refuse to believe I'd be the only one.
>>
>> It's okay to accidentally use the generic version, no harm done. It's
>> definitely not okay to accidentally use the special pow-2 version, so it
>> should have a special name. I think _pow2() or _pow_2() is a fine
>> suffix.
>
> Concur.
>

Ack here also. I prefer _pow2().