From 5624ee0482581741aae7ee290fff18a31e92b101 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 25 Aug 2025 13:38:27 -0300 Subject: [PATCH] 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 --- sysdeps/ieee754/dbl-64/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/dbl-64/s_fma.c b/sysdeps/ieee754/dbl-64/s_fma.c index 42351c6b34..d157e8b472 100644 --- a/sysdeps/ieee754/dbl-64/s_fma.c +++ b/sysdeps/ieee754/dbl-64/s_fma.c @@ -216,7 +216,7 @@ __fma (double x, double y, double z) /* Ensure the arithmetic is not scheduled after feclearexcept call. */ math_force_eval (m2); math_force_eval (a2); - feclearexcept (FE_INEXACT); + __feclearexcept (FE_INEXACT); /* If the result is an exact zero, ensure it has the correct sign. */ if (a1 == 0 && m2 == 0) diff --git a/sysdeps/ieee754/ldbl-128/s_fmal.c b/sysdeps/ieee754/ldbl-128/s_fmal.c index e58092694b..2a39158d0a 100644 --- a/sysdeps/ieee754/ldbl-128/s_fmal.c +++ b/sysdeps/ieee754/ldbl-128/s_fmal.c @@ -218,7 +218,7 @@ __fmal (_Float128 x, _Float128 y, _Float128 z) /* Ensure the arithmetic is not scheduled after feclearexcept call. */ math_force_eval (m2); math_force_eval (a2); - feclearexcept (FE_INEXACT); + __feclearexcept (FE_INEXACT); /* If the result is an exact zero, ensure it has the correct sign. */ if (a1 == 0 && m2 == 0) diff --git a/sysdeps/ieee754/ldbl-96/s_fma.c b/sysdeps/ieee754/ldbl-96/s_fma.c index 2bb7889f19..683af8017d 100644 --- a/sysdeps/ieee754/ldbl-96/s_fma.c +++ b/sysdeps/ieee754/ldbl-96/s_fma.c @@ -75,7 +75,7 @@ __fma (double x, double y, double z) /* Ensure the arithmetic is not scheduled after feclearexcept call. */ math_force_eval (m2); math_force_eval (a2); - feclearexcept (FE_INEXACT); + __feclearexcept (FE_INEXACT); /* If the result is an exact zero, ensure it has the correct sign. */ if (a1 == 0 && m2 == 0) diff --git a/sysdeps/ieee754/ldbl-96/s_fmal.c b/sysdeps/ieee754/ldbl-96/s_fmal.c index ac8840187d..9d8bd548af 100644 --- a/sysdeps/ieee754/ldbl-96/s_fmal.c +++ b/sysdeps/ieee754/ldbl-96/s_fmal.c @@ -208,7 +208,7 @@ __fmal (long double x, long double y, long double z) /* Ensure the arithmetic is not scheduled after feclearexcept call. */ math_force_eval (m2); math_force_eval (a2); - feclearexcept (FE_INEXACT); + __feclearexcept (FE_INEXACT); /* If the result is an exact zero, ensure it has the correct sign. */ if (a1 == 0 && m2 == 0) -- 2.47.3