Re: C23 support for libm

From: Paul Zimmermann <Paul.Zimmermann_at_inria.fr>
Date: Fri, 28 Nov 2025 07:36:07 UTC
       Hi Robert,

> > note that all new C23 functions are available in CORE-MATH (with correct
> > rounding):
> > 
> > https://core-math.gitlabpages.inria.fr/
> > 
> > The MIT license should enable easy integration into Newlib.
> 
> I checked some functions and couldn't find them:
> pown(), powr(), rootn(), fromfpx(), nextup(), nextdown().
> It seems like only a small set of the new C23 functions are supported
> by this project.  Neverthless, those might be a useful import, but
> I'll leave that to kargl, as I am not an expert on numerical programming.

we mainly focus on functions with real arguments only:
acospi, asinpi, atanpi, atan2pi, compound, cospi, sinpi, tanpi,
exp10m1, exp2m1, log10p1, log2p1, rsqrt.

I let you judge whether this is a small or large set :-)

They should be straightforward to import, since each function has its own
foo.c file, without any dependency.

Anyway, we will be happy to hear about issues with the integration if any.

Best regards,
Paul