Re: [PATCH v3 1/4] iio: prepare iio_format_value to handle higher-precision IIO_VAL_DECIMAL64_* formats

From: Andy Shevchenko

Date: Tue Oct 27 2026 - 03:32:00 EST


On Mon, Oct 26, 2026 at 08:51:53PM -0500, Victor Chernyakin wrote:
> > > +#define GREATEST_POWER_OF_10_THAT_FITS_IN_S64 18
> >
> > It's an interesting name for log10(2^63).
> >
> > This, along with log10(2^64 - 1) should be added as definitions at least
> > IIO-wide. There is a series that wanted similar for u64.
>
> In that case, might as well go all the way and add them to linux/limits.h?

Only if you have existing users outside (which has to be shown
by the respective patch and then it makes the series cross the
subsystem boundaries, much harder to get in :-).

--
With Best Regards,
Andy Shevchenko