[COMMITTED] math: Use polydd_cosh instead of polydd on cosh

Adhemerval Zanella adhemerval.zanella@linaro.org
Fri Mar 27 17:05:03 GMT 2026


This is similar to original CORE-MATH code and why the function
exists.

Checked on x86_64-linux-gnu, i686-linux-gnu, aarch64-linux-gnu,
and arm-linux-gnueabihf.
---
 sysdeps/ieee754/dbl-64/e_cosh.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/ieee754/dbl-64/e_cosh.c b/sysdeps/ieee754/dbl-64/e_cosh.c
index 4cfaf9ea59..b7a35340ce 100644
--- a/sysdeps/ieee754/dbl-64/e_cosh.c
+++ b/sysdeps/ieee754/dbl-64/e_cosh.c
@@ -74,7 +74,7 @@ as_exp_accurate (double x, double t, double th, double tl, double *l)
   double fl = dxh
 	      * (0x1.5555555555555p-5
 		 + dxh * (0x1.11111113e93e9p-7 + dxh * 0x1.6c16c169400a7p-10));
-  double fh = polydd (dxh, dxl, 3, ch, &fl);
+  double fh = polydd_cosh (dxh, dxl, 3, ch, &fl);
   fh = muldd2 (dxh, dxl, fh, fl, &fl);
   fh = muldd2 (th, tl, fh, fl, &fl);
   double zh = th + fh, zl = (th - zh) + fh;
-- 
2.43.0



More information about the Libc-alpha mailing list