[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZkISG6p1tn9Do-xY@smile.fi.intel.com>
Date: Mon, 13 May 2024 16:14:03 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Devarsh Thakkar <devarsht@...com>
Cc: Jani Nikula <jani.nikula@...el.com>, mchehab@...nel.org,
hverkuil-cisco@...all.nl, linux-media@...r.kernel.org,
linux-kernel@...r.kernel.org, benjamin.gaignard@...labora.com,
sebastian.fricke@...labora.com, akpm@...ux-foundation.org,
gregkh@...uxfoundation.org, adobriyan@...il.com,
p.zabel@...gutronix.de, airlied@...il.com, daniel@...ll.ch,
dri-devel@...ts.freedesktop.org, laurent.pinchart@...asonboard.com,
praneeth@...com, nm@...com, vigneshr@...com, a-bhatia1@...com,
j-luthra@...com, b-brnich@...com, detheridge@...com,
p-mantena@...com, vijayp@...com, andrzej.p@...labora.com,
nicolas@...fresne.ca
Subject: Re: [PATCH v7 6/8] math.h Add macros to round to closest specified
power of 2
On Mon, May 13, 2024 at 06:34:19PM +0530, Devarsh Thakkar wrote:
> On 13/05/24 17:55, Andy Shevchenko wrote:
> > On Mon, May 13, 2024 at 04:55:58PM +0530, Devarsh Thakkar wrote:
> >> On 13/05/24 14:29, Andy Shevchenko wrote:
> >>> On Sat, May 11, 2024 at 11:11:14PM +0530, Devarsh Thakkar wrote:
> >>>> On 10/05/24 20:45, Jani Nikula wrote:
[...]
> > - align naming (with the existing round*() macros)
>
> I think round_closest_up/round_closest_down align already and inspired by the
> existing naming convention used for round*() and DIV_ROUND_CLOSEST() macros in
> math.h as explained below (copied from my previous reply [1])
>
> "Coming back to naming, this is as per existing convention used for naming
> round_up, round_down (notice the `_` being used for macros working with pow of
> 2) and DIV_ROUND_CLOSEST (notice the work `closest` used to specify the answer
> to be nearest to specified value)"
>
> But do let me know if you have any other suggestions for naming?
Just make sure that semantically the naming is aligned, that's it.
If you think it's already done that way, fine!
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists