[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <aQhoHj0s_bjI1gNs@smile.fi.intel.com>
Date: Mon, 3 Nov 2025 10:30:22 +0200
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: David Laight <david.laight.linux@...il.com>
Cc: Jonathan Cameron <Jonathan.Cameron@...wei.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org,
Jyoti Bhayana <jbhayana@...gle.com>,
Jonathan Cameron <jic23@...nel.org>,
David Lechner <dlechner@...libre.com>,
Nuno Sá <nuno.sa@...log.com>,
Andy Shevchenko <andy@...nel.org>
Subject: Re: [PATCH v1 1/1] iio: common: scmi_sensors: Replace const_ilog2()
with ilog2()
On Fri, Oct 31, 2025 at 04:13:31PM +0000, David Laight wrote:
> On Fri, 31 Oct 2025 14:51:57 +0200
> Andy Shevchenko <andriy.shevchenko@...ux.intel.com> wrote:
> > On Fri, Oct 31, 2025 at 12:45:30PM +0000, David Laight wrote:
...
> > Do you have an idea how to improve that?
>
> Not sure I'd want to get cpp to generate a high-precision log.
> It if definitely doable, but will be a mind-blowing mess.
> (and I'm not sure how many MB the expanded line would be).
> An ilog10() would be easier (probably looking like const_ilog2()).
>
> But for this code just use '+ 9' and add a suitable comment :-)
v2 is sent: 20251103082937.4081863-1-andriy.shevchenko@...ux.intel.com
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists