[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f6331333-dc3c-b28c-2bbb-229a180c9ede@ti.com>
Date: Fri, 30 Aug 2024 21:39:32 +0530
From: Devarsh Thakkar <devarsht@...com>
To: Jiri Slaby <jirislaby@...nel.org>, Jani Nikula <jani.nikula@...el.com>,
Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Sebastian Fricke
<sebastian.fricke@...labora.com>
CC: <mchehab@...nel.org>, <hverkuil-cisco@...all.nl>,
<linux-media@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<sebastian.fricke@...labora.com>, <linux-doc@...r.kernel.org>,
<praneeth@...com>, <nm@...com>, <vigneshr@...com>, <s-jain1@...com>,
<r-donadkar@...com>, <b-brnich@...com>, <detheridge@...com>,
<p-mantena@...com>, <vijayp@...com>, <andi.shyti@...ux.intel.com>,
<nicolas@...fresne.ca>, <davidgow@...gle.com>, <dlatypov@...gle.com>,
<corbet@....net>, <broonie@...nel.org>, <rdunlap@...radead.org>,
<nik.borisov@...e.com>, <Dave.Martin@....com>
Subject: Re: [PATCH v2 1/6] math.h: Add macros for rounding to the closest
value
Hi Andy, Randy, Sebastian,
On 29/08/24 15:24, 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.
>
We have got 2 votes to change round_closest_up to round_closest_up_pow_2 and
likewise for round_closest_down to round_closest_up_pow_2.
Kindly let us know if you have any concerns w.r.t above name change. Else, I
was thinking to proceed with the suggestion.
Regards
Devarsh
Powered by blists - more mailing lists