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

From: Victor Chernyakin

Date: Tue Oct 27 2026 - 04:42:40 EST


> > > > +#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 :-).

Yeah I'll keep it within IIO then ;p