glibc/sysdeps/ieee754/ldbl-128
Adhemerval Zanella c212d6397e math: Use an improved algorithm for hypotl (ldbl-128)
This implementation is based on 'An Improved Algorithm for hypot(a,b)'
by Carlos F. Borges [1] using the MyHypot3 with the following changes:

  - Handle qNaN and sNaN.
  - Tune the 'widely varying operands' to avoid spurious underflow
    due the multiplication and fix the return value for upwards
    rounding mode.
  - Handle required underflow exception for subnormal results.

The main advantage of the new algorithm is its precision.  With a
random 1e9 input pairs in the range of [LDBL_MIN, LDBL_MAX], glibc
current implementation shows around 0.05% results with an error of
1 ulp (453266 results) while the new implementation only shows
0.0001% of total (1280).

Checked on aarch64-linux-gnu and x86_64-linux-gnu.

[1] https://arxiv.org/pdf/1904.09481.pdf
2021-12-13 09:02:34 -03:00
..
bits
Makeconfig
Makefile
e_acoshl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_acosl.c
e_asinl.c
e_atan2l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_atanhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_coshl.c
e_exp10l.c
e_expl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_fmodl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_gammal_r.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_hypotl.c math: Use an improved algorithm for hypotl (ldbl-128) 2021-12-13 09:02:34 -03:00
e_ilogbl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_j0l.c
e_j1l.c
e_jnl.c
e_lgammal_r.c
e_log2l.c
e_log10l.c
e_logl.c
e_powl.c
e_rem_pio2l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_remainderl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_sinhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
float128-abi.h
gamma_productl.c
ieee754.h
k_cosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
k_sincosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
k_sinl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
k_tanl.c
ldbl2mpn.c
lgamma_negl.c
lgamma_productl.c
math-nan-payload-ldouble.h
math_ldbl.h
mpn2ldbl.c
printf_fphex.c
printf_fphex_macros.h
s_asinhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_atanl.c
s_cbrtl.c
s_ceill.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_copysignl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_daddl.c
s_ddivl.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_dfmal.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_dmull.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_dsqrtl.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_dsubl.c
s_erfl.c
s_expm1l.c
s_f64xaddf128.c
s_f64xdivf128.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_f64xfmaf128.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_f64xmulf128.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_f64xsqrtf128.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_f64xsubf128.c
s_fabsl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_faddl.c
s_fdivl.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_ffmal.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_finitel.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_floorl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fma.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_fmal.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_fmull.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
s_fpclassifyl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_frexpl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fromfpl.c
s_fromfpl_main.c
s_fromfpxl.c
s_fsqrtl.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
s_fsubl.c
s_getpayloadl.c
s_isinfl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_isnanl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_issignalingl.c
s_llrintl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_llroundl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_log1pl.c
s_logbl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_lrintl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_lroundl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_modfl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_nearbyintl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_nextafterl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_nexttoward.c
s_nexttowardf.c
s_nextupl.c
s_remquol.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_rintl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_roundevenl.c
s_roundl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_scalblnl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_scalbnl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_setpayloadl.c
s_setpayloadl_main.c
s_setpayloadsigl.c
s_signbitl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_sincosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_sinl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_tanhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_tanl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_totalorderl.c
s_totalordermagl.c
s_truncl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_ufromfpl.c
s_ufromfpxl.c
strtold_l.c
t_expl.h Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
t_sincosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
x2y2m1l.c