glibc/math
Joseph Myers 4b6574a6f6 Redirect fma calls to __fma in libm
include/math.h has a mechanism to redirect internal calls to various
libm functions, that can often be inlined by the compiler, to call
non-exported __* names for those functions in the case when the calls
aren't inlined, with the redirection being disabled when
NO_MATH_REDIRECT.  Add fma to the functions to which this mechanism is
applied.

At present, libm-internal fma calls (generally to __builtin_fma*
functions) are only done when it's known the call will be inlined,
with alternative code not relying on an fma operation being used in
the caller otherwise.  This patch is in preparation for adding the TS
18661 / C2X narrowing fma functions to glibc; it will be natural for
the narrowing function implementations to call the underlying fma
functions unconditionally, with this either being inlined or resulting
in an __fma* call.  (Using two levels of round-to-odd computation like
that, in the case where there isn't an fma hardware instruction, isn't
optimal but is certainly a lot simpler for the initial implementation
than writing different narrowing fma implementations for all the
various pairs of formats.)

Tested with build-many-glibcs.py that installed stripped shared
libraries are unchanged by the patch (using
<https://sourceware.org/pipermail/libc-alpha/2021-September/130991.html>
to fix installed library stripping in build-many-glibcs.py).  Also
tested for x86_64.
2021-09-15 22:57:35 +00:00
..
bits Add narrowing square root functions 2021-09-10 20:56:22 +00:00
finclude Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
machine Update. 1999-07-14 00:54:57 +00:00
atest-exp2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
atest-exp.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
atest-sincos.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
auto-libm-test-in Improve the accuracy of tgamma (BZ #26983) 2021-04-07 13:23:39 +02:00
auto-libm-test-out-acos Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-acosh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-asin Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-asinh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-atan Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-atan2 Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-atanh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-cabs Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-cacos Move tests of cacos, cacosh to auto-libm-test-*. 2017-02-17 17:44:23 +00:00
auto-libm-test-out-cacosh Move tests of cacos, cacosh to auto-libm-test-*. 2017-02-17 17:44:23 +00:00
auto-libm-test-out-carg Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-casin Move tests of casin, casinh to auto-libm-test-*. 2017-02-17 18:14:02 +00:00
auto-libm-test-out-casinh Move tests of casin, casinh to auto-libm-test-*. 2017-02-17 18:14:02 +00:00
auto-libm-test-out-catan XFAIL catan and catanh tests on ibm128 2017-03-16 10:36:37 -03:00
auto-libm-test-out-catanh XFAIL catan and catanh tests on ibm128 2017-03-16 10:36:37 -03:00
auto-libm-test-out-cbrt add inputs to auto-libm-test-in yielding larger errors (binary64, x86_64) 2020-12-21 10:35:20 +05:30
auto-libm-test-out-ccos Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-ccosh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-cexp Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-clog Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-clog10 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-cos Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-cosh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-cpow Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-csin Move more csin, csinh tests to auto-libm-test-in. 2017-02-09 18:30:41 +00:00
auto-libm-test-out-csinh Move more csin, csinh tests to auto-libm-test-in. 2017-02-09 18:30:41 +00:00
auto-libm-test-out-csqrt Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-ctan Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-ctanh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-erf Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-erfc Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-exp add inputs to auto-libm-test-in yielding larger errors (binary64, x86_64) 2020-12-21 10:35:20 +05:30
auto-libm-test-out-exp2 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-exp10 math: Add inputs that yield larger errors for float type (x86_64) 2020-03-31 21:48:54 -04:00
auto-libm-test-out-expm1 Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-fma Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-hypot math: Remove inline math tests 2020-03-19 11:45:44 -03:00
auto-libm-test-out-j0 Fix the inaccuracy of j0f/j1f/y0f/y1f [BZ #14469, #14470, #14471, #14472] 2021-04-02 06:15:48 +02:00
auto-libm-test-out-j1 Fix the inaccuracy of j0f/j1f/y0f/y1f [BZ #14469, #14470, #14471, #14472] 2021-04-02 06:15:48 +02:00
auto-libm-test-out-jn Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-lgamma math: Add inputs that yield larger errors for float type (x86_64) 2020-03-31 21:48:54 -04:00
auto-libm-test-out-log add inputs to auto-libm-test-in yielding larger errors (binary64, x86_64) 2020-12-21 10:35:20 +05:30
auto-libm-test-out-log1p Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-log2 Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-log10 Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-narrow-add Add narrowing add functions. 2018-02-10 02:08:43 +00:00
auto-libm-test-out-narrow-div Add narrowing divide functions. 2018-05-17 00:40:52 +00:00
auto-libm-test-out-narrow-mul Add narrowing multiply functions. 2018-05-16 00:05:28 +00:00
auto-libm-test-out-narrow-sqrt Add narrowing square root functions 2021-09-10 20:56:22 +00:00
auto-libm-test-out-narrow-sub Add narrowing subtract functions. 2018-03-20 00:34:52 +00:00
auto-libm-test-out-pow Fix powf overflow handling in non-nearest rounding mode [BZ #23961] 2018-12-11 10:01:43 +00:00
auto-libm-test-out-sin Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-sincos Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-sinh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-sqrt Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-tan Improve float range reduction accuracy near pi/2 (bug 21094). 2017-03-15 22:00:54 +00:00
auto-libm-test-out-tanh Add inputs that generate larger error bounds 2021-02-27 06:32:11 +01:00
auto-libm-test-out-tgamma Improve the accuracy of tgamma (BZ #26983) 2021-04-07 13:23:39 +02:00
auto-libm-test-out-y0 Fix the inaccuracy of j0f/j1f/y0f/y1f [BZ #14469, #14470, #14471, #14472] 2021-04-02 06:15:48 +02:00
auto-libm-test-out-y1 Fix the inaccuracy of j0f/j1f/y0f/y1f [BZ #14469, #14470, #14471, #14472] 2021-04-02 06:15:48 +02:00
auto-libm-test-out-yn Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
basic-test.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
bug-nextafter.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
bug-nexttoward.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
bug-tgmath1.c Update. 2004-05-07 02:14:18 +00:00
cabs_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
carg_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
cimag_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
complex.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
conj_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
creal_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
divtc3.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_exp2_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
e_exp10.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_exp10l.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
e_scalb_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fclrexcpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fedisblxcpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
feenablxcpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fegetenv.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fegetexcept.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fegetmode.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fegetround.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
feholdexcpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fenv.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fesetenv.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fesetexcept.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fesetmode.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fesetround.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fetestexceptflag.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
feupdateenv.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fgetexcptflg.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fpu_control.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fraiseexcpt.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
fromfp.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
fsetexcptflg.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
ftestexcept.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
gen-auto-libm-tests.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-fromfp-tests-inputs Add fromfp functions. 2016-12-31 00:40:59 +00:00
gen-fromfp-tests.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-libm-test.py Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
gen-tgmath-tests.py Add narrowing square root functions 2021-09-10 20:56:22 +00:00
k_casinh_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
k_sincosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
lgamma-compat.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-acos.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-acosh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-asin.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-asinh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-atan2.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-atan.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-atanh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cabs.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cacos.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cacosh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-canonicalize.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-carg.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-casin.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-casinh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-catan.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-catanh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cbrt.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ccos.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ccosh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ceil.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cexp.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cimag.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-clog10.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-clog.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-compat_totalorder.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-compat_totalordermag.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-conj.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-copysign.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cos.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cosh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cpow.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-cproj.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-creal.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-csin.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-csinh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-csqrt.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ctan.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ctanh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-driver.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
libm-test-erf.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-erfc.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-exp2.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-exp10.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-exp.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-expm1.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fabs.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fdim.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-floor.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fma.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fmax.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fmaxmag.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fmin.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fminmag.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fmod.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fpclassify.inc Use the right argument code in unnormal tests 2021-01-13 23:14:49 +05:30
libm-test-frexp.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fromfp.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-fromfpx.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-getpayload.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-hypot.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ilogb.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-iscanonical.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-iseqsig.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isfinite.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isgreater.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isgreaterequal.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isinf.inc Use the right argument code in unnormal tests 2021-01-13 23:14:49 +05:30
libm-test-isless.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-islessequal.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-islessgreater.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isnan.inc Use the right argument code in unnormal tests 2021-01-13 23:14:49 +05:30
libm-test-isnormal.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-issignaling.inc Use the right argument code in unnormal tests 2021-01-13 23:14:49 +05:30
libm-test-issubnormal.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-isunordered.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-iszero.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-j0.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-j1.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-jn.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-lgamma.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-llogb.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-llrint.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-llround.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-log1p.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-log2.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-log10.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-log.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-logb.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-lrint.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-lround.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-modf.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-narrow-add.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-narrow-div.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-narrow-mul.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-narrow-sqrt.inc Add narrowing square root functions 2021-09-10 20:56:22 +00:00
libm-test-narrow-sub.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-nearbyint.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-nextafter.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-nextdown.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-nexttoward.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-nextup.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-pow.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-remainder.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-remquo.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-rint.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-round.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-roundeven.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-scalb.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-scalbln.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-scalbn.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-setpayload.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-setpayloadsig.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-signbit.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-significand.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-sin.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-sincos.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-sinh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-sqrt.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-support.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-support.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-tan.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-tanh.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-tgamma.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-totalorder.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-totalordermag.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-trunc.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ufromfp.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-ufromfpx.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-y0.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-y1.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
libm-test-yn.inc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Makefile Add narrowing square root functions 2021-09-10 20:56:22 +00:00
math-narrow.h Add narrowing square root functions 2021-09-10 20:56:22 +00:00
math-svid-compat.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
math-underflow.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
math.h Add narrowing square root functions 2021-09-10 20:56:22 +00:00
mul_split.h Improve the accuracy of tgamma (BZ #26983) 2021-04-07 13:23:39 +02:00
mul_splitl.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
multc3.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
README.libm-test Remove __NO_MATH_INLINES 2020-04-17 11:40:44 -03:00
s_cacos_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cacosh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_canonicalize_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_casin_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_casinh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_catan_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_catanh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_ccos_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_ccosh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cexp_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_clog10_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_clog_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cpow_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_cproj_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_csin_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_csinh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_csqrt_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_ctan_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_ctanh_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fdim_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fma.c Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
s_fmaf.c Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
s_fmal.c Redirect fma calls to __fma in libm 2021-09-15 22:57:35 +00:00
s_fmax_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fmaxmag_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_fmin_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_fminmag_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_iscanonicall.c Add iscanonical. 2016-09-30 00:27:50 +00:00
s_iseqsig_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_ldexp_template.c Remove unnecessary math_private.h includes. 2018-09-28 21:53:33 +00:00
s_nan_template.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
s_nextafter.c Do not include math-barriers.h in math_private.h. 2018-05-11 15:11:38 +00:00
s_nextdown_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
s_nexttowardf.c Do not include math-barriers.h in math_private.h. 2018-05-11 15:11:38 +00:00
s_nexttowardl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_significand_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
setfpucw.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
t_sincosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
test-arg-double.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-arg-float32x.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-arg-float64.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-arg-float64x.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-arg-float128.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-arg-ldouble.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-double-vlen2.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-double-vlen4.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-double-vlen8.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-double.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fe-snans-always-signal.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-femode-traps.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-femode.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-clear-main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-clear.c Fix i386/x86_64 fesetenv SSE exception clearing (bug 19181). 2015-10-28 18:50:20 +00:00
test-fenv-preserve.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-return.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv-tls.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fenv.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-fesetexcept-traps.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fesetexcept.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fetestexceptflag.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fexcept-traps.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fexcept.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float32.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float32x.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float64.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float64x.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float128.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float-vlen4.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float-vlen8.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float-vlen16.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-float.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-flt-eval-method.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fp-ilogb-constants.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fp-llogb-constants.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fpucw-ieee-static.c Fix static-binary lazy FPU context allocation 2013-09-09 22:36:57 +01:00
test-fpucw-ieee.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-fpucw-static.c Fix math/test-fpucw-*.c for sysdeps test-fpucw.c overrides. 2014-01-16 05:30:52 +00:00
test-fpucw.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-ibm128.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-iseqsig-excess-precision.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-iszero-excess-precision.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-ldouble.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-cxx11.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-errno.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-exceptions.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-floatn.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-iscanonical.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-iseqsig.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-isinff.cc Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-math-issignaling.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-iszero.cc Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-narrow.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-scalar.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-math-vector.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-matherr-2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-matherr-3.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-matherr.c math: test-matherr and test-matherr-2 can be regular tests 2021-03-09 21:07:24 +01:00
test-misc.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-nan-const.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-nan-overflow.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-nan-payload.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-narrow-macros.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-nearbyint-except-2.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-nearbyint-except.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-powl.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-signgam-main.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
test-signgam-uchar-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uchar-init.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uchar-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uchar.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uint-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uint-init.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uint-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-uint.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-ullong-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-ullong-init.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-ullong-static.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-signgam-ullong.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
test-snan.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-tgmath2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-tgmath-int.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-tgmath-ret.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
test-tgmath.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tgmath.h Add narrowing square root functions 2021-09-10 20:56:22 +00:00
tst-CMPLX2.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
tst-CMPLX.c Don't disable CMPLXL macro for __NO_LONG_DOUBLE_MATH (bug 15488). 2013-05-18 12:12:38 +00:00
tst-definitions.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
Versions Add narrowing square root functions 2021-09-10 20:56:22 +00:00
w_acos_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_acos_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_acosf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_acosh_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_acosh_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_acoshf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_acoshl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_acosl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_asin_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_asin_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_asinf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_asinl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atan2_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atan2_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_atan2f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atan2l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atanh_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atanh_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_atanhf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_atanhl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_cosh_compat.c Fix spellings of contributor names in comments and doc 2019-08-23 13:11:05 -07:00
w_cosh_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_coshf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_coshl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_exp2_compat.c Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
w_exp2_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_exp2.c Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
w_exp2f_compat.c New expf and exp2f version without SVID compat wrapper 2017-09-25 10:45:08 +01:00
w_exp2f.c Add libm_alias_*_other_r macros. 2017-10-10 21:29:11 +00:00
w_exp2l_compat.c Use libm_alias_ldouble in math/. 2017-09-18 17:51:33 +00:00
w_exp10_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_exp10_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_exp10f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_exp10f.c New exp10f version without SVID compat wrapper 2020-06-19 12:08:47 -03:00
w_exp10l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_exp_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_exp_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_exp.c Remove the error handling wrapper from exp and exp2 2018-11-21 09:55:02 +00:00
w_expf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_expf.c Add libm_alias_*_other_r macros. 2017-10-10 21:29:11 +00:00
w_expl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_fmod_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_fmod_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_fmodf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_fmodl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_hypot_compat.c Use libm_alias_double in math/. 2017-09-15 23:10:02 +00:00
w_hypot_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_hypotf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_hypotl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_ilogb_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_j0_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_j0_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_j0f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_j0l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_j1_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_j1_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_j1f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_j1l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_jn_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_jn_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_jnf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_jnl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_lgamma_compat2.c Move w_lgamma to libm-compat-calls-auto 2017-02-08 17:40:11 -02:00
w_lgamma_compat.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgamma_compatf.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgamma_compatl.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgamma_main.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
w_lgamma_r_compat.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
w_lgamma_r_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_lgamma_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_lgamma.c fix gamma symbol for static linking and new targets 2017-10-02 17:33:13 +01:00
w_lgammaf_compat2.c Move w_lgamma to libm-compat-calls-auto 2017-02-08 17:40:11 -02:00
w_lgammaf_main.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_lgammaf_r_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_lgammaf.c fix gamma symbol for static linking and new targets 2017-10-02 17:33:13 +01:00
w_lgammal_compat2.c Move w_lgamma to libm-compat-calls-auto 2017-02-08 17:40:11 -02:00
w_lgammal_main.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_lgammal_r_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_lgammal.c fix gamma symbol for static linking and new targets 2017-10-02 17:33:13 +01:00
w_llogb_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_log1p_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_log2_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log2_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_log2.c Remove the error handling wrapper from log2 2018-11-21 09:57:21 +00:00
w_log2f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log2f.c Add libm_alias_*_other_r macros. 2017-10-10 21:29:11 +00:00
w_log2l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log10_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log10_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_log10f_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log10l_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_log_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_log.c Remove the error handling wrapper from log 2018-11-21 09:56:27 +00:00
w_logf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_logf.c Add libm_alias_*_other_r macros. 2017-10-10 21:29:11 +00:00
w_logl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_pow_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_pow_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_pow.c Remove the error handling wrapper from pow 2018-11-21 09:58:36 +00:00
w_powf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_powf.c Add libm_alias_*_other_r macros. 2017-10-10 21:29:11 +00:00
w_powl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_remainder_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_remainder_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_remainder.c fix drem symbol for static linking and new targets 2017-10-03 14:31:59 +01:00
w_remainderf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_remainderf.c fix drem symbol for static linking and new targets 2017-10-03 14:31:59 +01:00
w_remainderl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_remainderl.c fix drem symbol for static linking and new targets 2017-10-03 14:31:59 +01:00
w_scalb_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_scalb_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_scalbf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_scalbl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_scalbln_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_sinh_compat.c Use libm_alias_double in math/. 2017-09-15 23:10:02 +00:00
w_sinh_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_sinhf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_sinhl_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_sqrt_compat.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
w_sqrt_template.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
w_sqrtf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_sqrtl_compat.c Add narrowing square root functions 2021-09-10 20:56:22 +00:00
w_tgamma_compat.c Use floor functions not __floor functions in glibc libm. 2018-09-14 13:09:01 +00:00
w_tgamma_template.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
w_tgammaf_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30
w_tgammal_compat.c Remove "Contributed by" lines 2021-09-03 22:06:44 +05:30

README for libm-test math test suite
====================================

The libm-test math test suite tests a number of function points of
math functions in the GNU C library.  The following sections contain a
brief overview.  Please note that the test drivers and the Python
script "gen-libm-test.py" have some options.  A full list of options
is available with --help (for the test drivers) and -h for
"gen-libm-test.py".


What is tested?
===============
The tests just evaluate the functions at specified points and compare
the results with precomputed values and the requirements of the ISO
C99 standard.

Besides testing the special values mandated by IEEE 754 (infinities,
NaNs and minus zero), some more or less random values are tested.

Files that are part of libm-test
================================

The main files are "libm-test-<func>.inc".  They are independent of
the target platform and the specific real floating type and format and
contain placeholder test "templates" for math functions defined in
libm.  These files, along with generated files named
"auto-libm-test-out-<func>", are preprocessed by the Python script
"gen-libm-test.py" to expand the templates and produce a set of test
cases for each math function that are specific to the target platform
but still independent of the real floating type.  The results of the
processing are "libm-test-<func>.c" and a file "libm-test-ulps.h" with
platform specific deltas by which the actual math function results may
deviate from the expected results and still be considered correct.

The test drivers "test-double-<func>.c", "test-float-<func>.c", and
"test-ldouble-<func>.c", generated by the Makefile, test the normal
double, float and long double implementation of libm.  Each driver
selects the desired real floating type to exercise the math functions
to test with (float, double, or long double) by defining a small set
of macros just before including the generic "libm-test.c" file. Each
driver is compiled into a single executable test program with the
corresponding name.

As mentioned above, the "gen-libm-test.py" script looks for a file
named "libm-test-ulps" in the platform specific sysdep directory (or
its fpu or nofpu subdirectory) and for each variant (real floating
type and rounding mode) of every tested function reads from it the
maximum difference expressed as Units of Least Precision (ULP) the
actual result of the function may deviate from the expected result
before it's considered incorrect.

The "auto-libm-test-out-<func>" files contain sets of test cases to
exercise, the conditions under which to exercise each, and the
expected results.  The files are generated by the
"gen-auto-libm-tests" program from the "auto-libm-test-in" file.  See
the comments in gen-auto-libm-tests.c for details about the content
and format of the -in and -out files.

How can I generate "libm-test-ulps"?
====================================

To automatically generate a new "libm-test-ulps" run "make regen-ulps".
This generates the file "math/NewUlps" in the build directory.  The file
contains the sorted results of all the tests.  You can use the "NewUlps"
file as the machine's updated "libm-test-ulps" file.  Copy "NewUlps" to
"libm-test-ulps" in the appropriate machine sysdep directory.  Verify
the changes, post your patch, and check it in after review.

To manually generate a new "libm-test-ulps" file, first remove "ULPs"
file in the current directory, then you can execute for example:
    ./testrun.sh math/test-double -u --ignore-max-ulp=yes
This generates a file "ULPs" with all double ULPs in it, ignoring any
previously calculated ULPs, and running with the newly built dynamic
loader and math library (assumes you didn't install your build).  Now
generate the ULPs for all other formats, the tests will be appending the
data to the "ULPs" file.  As final step run "gen-libm-test.py" with the
file as input and ask to generate a pretty printed output in the file
"NewUlps":
  gen-libm-test.py -u ULPs -n NewUlps
Copy "NewUlps" to "libm-test-ulps" in the appropriate machine sysdep
directory.

Note that the test drivers have an option "-u" to output an unsorted
list of all epsilons that the functions have.  The output can be read
in directly but it's better to pretty print it first.
"gen-libm-test.py" has an option to generate a pretty-printed and
sorted new ULPs file from the output of the test drivers.

Contents of libm-test-ulps
==========================

Since libm-test-ulps can be generated automatically, just a few notes.
The file contains lines for maximal errors of single functions, like:

Function "yn":
double: 6

The keywords are float, double, and ldouble.

Adding tests to libm-test-<func>.inc
====================================

The tests are evaluated by a set of special test macros.  The macros
start with "TEST_" followed by a specification the input values, an
underscore and a specification of the output values.  As an example,
the test macro for a function with input of type FLOAT (FLOAT is
either float, double, long double) and output of type FLOAT is
"TEST_f_f".  The macro's parameter are the name of the function, the
input parameter, output parameter and optionally one exception
parameter.

The accepted parameter types are:
- "f" for FLOAT
- "j" for long double.
- "a" for ARG_FLOAT, the argument type for narrowing functions.
- "b" for boolean - just tests if the output parameter evaluates to 0
  or 1 (only for output).
- "c" for complex.  This parameter needs two values, first the real,
  then the imaginary part.
- "i" for int.
- "l" for long int.
- "L" for long long int.
- "u" for unsigned int.
- "M" for intmax_t.
- "U" for uintmax_t.
- "p" for an argument (described in the previous character) passed
  through a pointer rather than directly.
- "F" for the address of a FLOAT (only as input parameter)
- "I" for the address of an int (only as input parameter)
- "1" for an additional output (either output through a pointer passed
  as an argument, or to a global variable such as signgam).

How to read the test output
===========================

Running each test on its own at the default level of verbosity will
print on stdout a line describing the implementation of math functions
exercised by the test (float, double, or long double).  This is then
followed by the details of test failures (if any).  The output concludes
by a summary listing the number of test cases exercised and the number
of test failures uncovered.

For each test failure (and for each test case at higher levels of
verbosity), the output contains the name of the function under test
and its arguments or conditions that triggered the failure.  Note
that the name of the function in the output need not correspond
exactly to the name of the math function actually invoked. For example,
the output will refer to the "acos" function even if the actual function
under test is acosf (for the float version) or acosl (for the long
double version).  Also note that the function arguments may be shown
in either the decimal or the  hexadecimal floating point format which
may or may not correspond to the format used in the auto-libm-test-in
file. Besides the name of the function, for each test failure the
output contains the actual and expected results and the difference
between the two, printed in both the decimal and hexadecimal
floating point format, and the ULP and maximum ULP for the test
case.