Re: C23 support for libm
- In reply to: Robert Clausecker : "C23 support for libm"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 27 Nov 2025 18:34:17 UTC
On 11/27/25 09:31, Robert Clausecker wrote:
> Greetings!
>
> I have started a project page [1] to track our effort to support C23
> on FreeBSD. Many new and exciting libm functions were added in this
> standard revision, and it seems like so far we only have
> {sin,cos,tan}pi{,f,l}() implemented (thanks to kargl for the work!)
>
> If anybody is interested in working on this, please let me know.
> I am not an expert in numerical programming, but will try ot look
> into adding some of these if nobody else comes forth.
>
Last time I looked, there are 6 or so functions from C99 that are
still not implemented. I don't remember if new functions appeared
in C11.
I'll also suggest that pulling in functions from other projects
(e.g., cephus) without thorough testing should be frowned upon.
There are a few examples of this already in libm, which have
accuracy issues and bugs.
As usual and time permitting, I'll slowly peck away the
unimplemented functions.
--
steve