[PATCH 10/25] math: Use internal feholdexcept alias on fma
Adhemerval Zanella
adhemerval.zanella@linaro.org
Mon Aug 25 16:38:29 GMT 2025
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.
---
sysdeps/ieee754/ldbl-128/s_fma.c | 2 +-
sysdeps/ieee754/ldbl-128/s_fmal.c | 2 +-
sysdeps/ieee754/ldbl-96/s_fma.c | 2 +-
sysdeps/ieee754/ldbl-96/s_fmal.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
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. */
--
2.43.0
More information about the Libc-alpha
mailing list