]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
math: Remove acoshf fma usage
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Fri, 10 Oct 2025 17:49:19 +0000 (14:49 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 14 Oct 2025 11:46:06 +0000 (08:46 -0300)
The fma is not strickly required to provide correctly rounded and
it helps on !__FP_FAST_FMA ABIs.

Checked on x86_64-linux-gnu and i686-linux-gnu.
Reviewed-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
sysdeps/ieee754/flt-32/e_acoshf.c

index b2a9c6b2f005a9d77e20628aff2e81f62252e0fb..6cbc4f584b276b3283e48e20d4560a679450946b 100644 (file)
@@ -93,10 +93,10 @@ __ieee754_acoshf (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) & UINT64_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.0 * h;
            }
        }