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

From: Victor Chernyakin

Date: Mon Oct 26 2026 - 21:54:01 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?