glibc/sysdeps/ieee754/ldbl-96
Adhemerval Zanella aa9c28cde3 math: Use an improved algorithm for hypotl (ldbl-96)
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 1e8 input pairs in the range of [LDBL_MIN, LDBL_MAX], glibc
current implementation shows around 0.02% results with an error of
1 ulp (23158 results) while the new implementation only shows
0.0001% of total (111).

[1] https://arxiv.org/pdf/1904.09481.pdf
2021-12-13 09:02:34 -03:00
..
bits
include/bits
Makeconfig
Makefile
e_acoshl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_asinl.c
e_atanhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_coshl.c
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-96) 2021-12-13 09:02:34 -03:00
e_j0l.c
e_j1l.c
e_jnl.c
e_lgammal_r.c
e_rem_pio2l.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
gamma_product.c
gamma_productl.c
k_cosl.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_product.c
lgamma_productl.c
math-nan-payload-ldouble.h
math_ldbl.h
mpn2ldbl.c
nan-pseudo-number.h
printf_fphex.c
s_asinhl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cbrtl.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_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_fma.c Add narrowing fma functions 2021-09-22 21:25:31 +00:00
s_fmal.c Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
s_fmull.c Fix f64xdivf128, f64xmulf128 spurious underflows (bug 28358) 2021-09-21 21:54:37 +00:00
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_iscanonicall.c
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_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_nexttoward.c
s_nexttowardf.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_nextupl.c
s_remquol.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_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_ufromfpl.c
s_ufromfpxl.c
strtold_l.c
t_sincosl.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-canonical-ldbl-96.c
test-sinl-pseudo.c
test-totalorderl-ldbl-96.c
x2y2m1.c
x2y2m1l.c