Re: [PATCH v1 2/6] units: Add value of π * 10⁹

David Lechner
2025-10-27T14:59:13Z

On 10/27/25 9:52 AM, Jonathan Cameron wrote:
> On Mon, 27 Oct 2025 15:34:51 +0100
> Andy Shevchenko <andriy.shevchenko@linux.intel.com> wrote:
>
>> There are a few drivers that want to have this value, and at least one
>> known to come soon. Let's define a value for them.
>
> Is there any way we can make the x10^9 bit obvious in the naming? Or do
> something a bit nasty like defining a macro along the lines of
>
> PI(scale)?
> e.g. PI(NANO), PI(10000)
>
This was my first thought when looking at this as well.

Or something like PI_x10(6).