Date: Fri, 28 Nov 2025 08:36:07 +0100 From: Paul Zimmermann <Paul.Zimmermann@inria.fr> To: Robert Clausecker <fuz@fuz.su> Cc: numerics@freebsd.org Subject: Re: C23 support for libm Message-ID: <p9u0h5uefw2g.fsf@araignee.loria.fr> In-Reply-To: <aSi-iQkCCG0Qw1ez@fuz.su> (message from Robert Clausecker on Thu, 27 Nov 2025 22:11:37 %2B0100) References: <aSiK3xDpJav-vsdP@fuz.su> <p9u0ikevdw6g.fsf@araignee.loria.fr> <aSi-iQkCCG0Qw1ez@fuz.su>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?p9u0h5uefw2g.fsf>
