[PATCH 6/8] math: Remove log2pf1 fma usage
Adhemerval Zanella
adhemerval.zanella@linaro.org
Fri Oct 10 17:49:24 GMT 2025
The fma is not required to provide correctly rounded and it helps
on !__FP_FAST_FMA ISAs.
Checked on x86_64-linux-gnu and i686-linux-gnu.
---
sysdeps/ieee754/flt-32/s_log2p1f.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/ieee754/flt-32/s_log2p1f.c b/sysdeps/ieee754/flt-32/s_log2p1f.c
index 09e77dc08ad..8aa46359998 100644
--- a/sysdeps/ieee754/flt-32/s_log2p1f.c
+++ b/sysdeps/ieee754/flt-32/s_log2p1f.c
@@ -231,7 +231,7 @@ __log2p1f (float x)
int j = (m + ((int64_t) 1 << (52 - 8))) >> (52 - 7), k = j > 53;
e += k;
double xd = asdouble (m | (uint64_t) 0x3ff << 52);
- z = fma (xd, ix[j], -1.0);
+ z = xd * ix[j] - 1.0;
static const double c[] =
{
0x1.71547652b82fep+0, -0x1.71547652b82ffp-1, 0x1.ec709dc32988bp-2,
--
2.43.0
More information about the Libc-alpha
mailing list