[PATCH 25/25] math: Consolidate erf/erfc definitions

DJ Delorie dj@redhat.com
Fri Sep 12 01:28:35 GMT 2025


Adhemerval Zanella <adhemerval.zanella@linaro.org> writes:

> +static double
> +cr_erf_fast (double *h, double *l, double z)
> +{

If this isn't going to be inlined, it should be in its own *.c file and
extern'd, so there aren't two copies of it.

> +/* for |z| < 1/8, assuming z >= 2^-61, thus no underflow can occur */
> +static void
> +cr_erf_accurate_tiny (double *h, double *l, double z, bool exceptions)
> +{

Likewise.



More information about the Libc-alpha mailing list