From: Adhemerval Zanella Date: Mon, 25 Aug 2025 16:38:29 +0000 (-0300) Subject: math: Use internal feholdexcept alias on fma X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=41c2f1d9a3d58829317e84e27acda74beca8c1e0;p=thirdparty%2Fglibc.git math: Use internal feholdexcept alias on fma To avoid linknamespace issues on old standards. It is required if the fallback fma implementation is used if/when it is also used internally for other implementation. Reviewed-by: DJ Delorie --- diff --git a/sysdeps/ieee754/ldbl-128/s_fma.c b/sysdeps/ieee754/ldbl-128/s_fma.c index 48db3030b6..bfbc03d308 100644 --- a/sysdeps/ieee754/ldbl-128/s_fma.c +++ b/sysdeps/ieee754/ldbl-128/s_fma.c @@ -50,7 +50,7 @@ __fma (double x, double y, double z) return (double) temp + z; union ieee854_long_double u; - feholdexcept (&env); + __feholdexcept (&env); fesetround (FE_TOWARDZERO); /* Perform addition with round to odd. */ u.d = temp + (long double) z; diff --git a/sysdeps/ieee754/ldbl-128/s_fmal.c b/sysdeps/ieee754/ldbl-128/s_fmal.c index 7f6cbab402..09f90b6e6e 100644 --- a/sysdeps/ieee754/ldbl-128/s_fmal.c +++ b/sysdeps/ieee754/ldbl-128/s_fmal.c @@ -194,7 +194,7 @@ __fmal (_Float128 x, _Float128 y, _Float128 z) } fenv_t env; - feholdexcept (&env); + __feholdexcept (&env); fesetround (FE_TONEAREST); /* Multiplication m1 + m2 = x * y using Dekker's algorithm. */ diff --git a/sysdeps/ieee754/ldbl-96/s_fma.c b/sysdeps/ieee754/ldbl-96/s_fma.c index a0663cb096..de8f38212b 100644 --- a/sysdeps/ieee754/ldbl-96/s_fma.c +++ b/sysdeps/ieee754/ldbl-96/s_fma.c @@ -51,7 +51,7 @@ __fma (double x, double y, double z) } fenv_t env; - feholdexcept (&env); + __feholdexcept (&env); fesetround (FE_TONEAREST); /* Multiplication m1 + m2 = x * y using Dekker's algorithm. */ diff --git a/sysdeps/ieee754/ldbl-96/s_fmal.c b/sysdeps/ieee754/ldbl-96/s_fmal.c index 82a68bcbf7..920531e248 100644 --- a/sysdeps/ieee754/ldbl-96/s_fmal.c +++ b/sysdeps/ieee754/ldbl-96/s_fmal.c @@ -184,7 +184,7 @@ __fmal (long double x, long double y, long double z) } fenv_t env; - feholdexcept (&env); + __feholdexcept (&env); fesetround (FE_TONEAREST); /* Multiplication m1 + m2 = x * y using Dekker's algorithm. */