From 92186652d8653993ca51e97b895baf7edc745794 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Wed, 19 Nov 2025 15:21:44 -0300 Subject: math: Sync atanh from CORE-MATH The CORE-MATH commit 703d7487 fixes some issues for RNDZ: Failure: Test: atanh_towardzero (0x5.96200b978b69cp-4) Result: is: 3.6447730550366463e-01 0x1.753989ed16faap-2 should be: 3.6447730550366458e-01 0x1.753989ed16fa9p-2 difference: 5.5511151231257827e-17 0x1.0000000000000p-54 ulp : 1.0000 max.ulp : 0.0000 Maximal error of `atanh_towardzero' is : 1 ulp accepted: 0 ulp Checked on x86_64-linux-gnu, x86_64-linux-gnu-v3, aarch64-linux-gnu, and i686-linux-gnu. --- sysdeps/ieee754/dbl-64/e_atanh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/ieee754/dbl-64/e_atanh.c b/sysdeps/ieee754/dbl-64/e_atanh.c index 9ebc7bab84..68ef87818d 100644 --- a/sysdeps/ieee754/dbl-64/e_atanh.c +++ b/sysdeps/ieee754/dbl-64/e_atanh.c @@ -3,7 +3,7 @@ Copyright (c) 2023-2025 Alexei Sibidanov. The original version of this file was copied from the CORE-MATH -project (file src/binary64/atanh/atanh.c, revision 4da7f241). +project (file src/binary64/atanh/atanh.c, revision 703d7487). Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -147,7 +147,7 @@ __ieee754_atanh (double x) ll += f; lh *= copysign (1, x); ll *= copysign (1, x); - double eps = 31e-24 + dx2 * 0x1p-49; + double eps = 34e-24 + dx2 * 0x1p-49; double lb = lh + (ll - eps), ub = lh + (ll + eps); if (__glibc_likely (lb == ub)) return lb; -- cgit v1.2.3