From: Adhemerval Zanella Date: Fri, 10 Oct 2025 17:49:21 +0000 (-0300) Subject: math: Remove asinhf fma usage X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68cb78eccc959ce9a7344ddb5d90c6b2e08bb3c6;p=thirdparty%2Fglibc.git math: Remove asinhf fma usage 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. Reviewed-by: Paul Zimmermann --- diff --git a/sysdeps/ieee754/flt-32/s_asinhf.c b/sysdeps/ieee754/flt-32/s_asinhf.c index 9353b421d4..471a448992 100644 --- a/sysdeps/ieee754/flt-32/s_asinhf.c +++ b/sysdeps/ieee754/flt-32/s_asinhf.c @@ -84,10 +84,10 @@ __asinhf (float x) const double ln2h = 0x1.62e4p-1; double Lh = ln2h * e; double Ll = ln2l * e; - r = fma (z, c0, Ll + LIX[j]) + Lh; + r = (z * c0 + (Ll + LIX[j])) + Lh; if (__glibc_unlikely ((asuint64 (r) & INT64_C(0xfffffff)) == 0)) { - double h = fma (z, c0, Ll + LIX[j]) + (Lh - r); + double h = (z * c0 + (Ll + LIX[j])) + (Lh - r); r = r + 64 * h; } }