glibc/math
Joseph Myers dcd4cd5756 Refactor some code in libm-test-driver.c.
Splitting libm tests by function will mean about a thousand such tests
built separately instead of the present nine (plus vector variants).

When this is done, it's desirable to avoid needing to build all the
test infrastructure so many times.  Also, simply including
libm-test-driver.c as-is into per-function tests doesn't actually
work, because the various check_* functions are not used by all tests
and so generate errors for unused static functions.

Although some pieces of infrastructure depend on the type being tested
while others don't, building once per type seems the simplest
approach.  This patch makes changes to libm-test-driver.c in
preparation for that.  Various cases where functions directly use
macros such as TEST_ERRNO (that may vary depending on things other
than the type under test) are changed to use variables initialized
using those macros, while most of the code in main is moved out to
functions libm_test_init and libm_test_fini.

The idea is that all the functions in libm-test-driver.c will be moved
out in a subsequent patch to be built once per type (and be no longer
static when they are used from per-function tests), while
libm-test-driver.c remains containing definitions of various variables
(no longer static, of course, because they'll be used in the per-type
code) and the main function.  Declarations / macros relevant to both
the once-per-type code and the per-function tests will go in a shared
header.

Tested for x86_64.

	* math/libm-test-driver.c (flag_test_errno): New variable.
	(flag_test_exceptions): Likewise.
	(flag_test_finite): Likewise.
	(flag_test_inline): Likewise.
	(flag_test_mathvec): Likewise.
	(test_msg): Likewise.
	(ulp_idx): Likewise.
	(qtype_str): Likewise.
	(ULP_IDX): Remove macro.
	(QTYPE_STR): Likewise.
	(find_ulps): Use ulp_idx not ULP_IDX.
	(print_function_ulps): Use qtype_str, printed with %s, not
	QTYPE_STR, printed with concatentation to format string.
	(print_complex_function_ulps): Likewise.
	(test_exceptions): Use flag_test_exceptions not TEST_EXCEPTIONS.
	(test_errno): Use flag_test_errno not TEST_ERRNO.
	(enable_test): Use flag_test_inline, flag_test_finite and
	flag_test_mathvec instead of TEST_INLINE, TEST_FINITE and
	TEST_MATHVEC.
	(libm_test_init): New function.  Factored out of main.
	(libm_test_finish): Likewise.
	(main): Call libm_test_init and libm_test_finish and move most
	code to those functions.
2017-02-06 23:23:54 +00:00
..
bits Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
machine
atest-exp2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
atest-exp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
atest-sincos.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
auto-libm-test-in Improve libm-test XFAILing for ibm128-libgcc. 2017-01-09 22:40:59 +00:00
auto-libm-test-out-acos Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-acosh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-asin Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-asinh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-atan Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-atan2 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-atanh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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-carg Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-cbrt Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-cosh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-csinh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-exp Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-expm1 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-j0 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-j1 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-log Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-log1p Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-log2 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-log10 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-pow Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-sin Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-tanh Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-tgamma Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-y0 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-y1 Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
auto-libm-test-out-yn Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00:00
basic-test.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-nextafter.c
bug-nexttoward.c
bug-tgmath1.c
cabs_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
carg_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
cimag_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
complex.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
conj_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
creal_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
divtc3.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_acoshl.c
e_acosl.c
e_asinl.c
e_atan2l.c
e_atanhl.c
e_coshl.c
e_exp2l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_exp10.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_exp10f.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_exp10l.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_expl.c
e_fmodl.c
e_gammal_r.c
e_hypotl.c
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
e_scalb.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_scalbf.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_scalbl.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
e_sinhl.c
e_sqrtl.c
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fegetmode.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fegetround.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fenv.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fesetexcept.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fesetmode.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fetestexceptflag.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fgetexcptflg.c Make fallback fegetexceptflag work with generic fetestexceptflag. 2017-01-12 01:52:37 +00:00
fpu_control.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fraiseexcpt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fromfp.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fsetexcptflg.c Make fallback fesetexceptflag always succeed (bug 21028). 2017-01-05 23:15:47 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gen-auto-libm-tests.c Split auto-libm-test-out by function. 2017-02-06 18:41:20 +00: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. 2017-01-01 00:14:16 +00:00
gen-libm-have-vector-test.sh Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
gen-libm-test.pl Rework gen-libm-test.pl input/output handling. 2017-02-06 18:21:06 +00:00
ieee-math.c
k_casinh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
k_cosl.c
k_sincosl.c
k_sinl.c
k_tanl.c
lgamma-compat.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
libm-test-acos.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-acosh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-asin.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-asinh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-atan2.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-atan.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-atanh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cabs.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cacos.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cacosh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-canonicalize.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-carg.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-casin.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-casinh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-catan.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-catanh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cbrt.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ccos.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ccosh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ceil.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cexp.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cimag.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-clog10.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-clog.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-conj.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-copysign.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cos.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cosh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cpow.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-cproj.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-creal.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-csin.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-csinh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-csqrt.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ctan.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ctanh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-driver.c Refactor some code in libm-test-driver.c. 2017-02-06 23:23:54 +00:00
libm-test-erf.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-erfc.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-exp2.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-exp10.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-exp.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-expm1.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fabs.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fdim.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-floor.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fma.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fmax.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fmaxmag.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fmin.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fminmag.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fmod.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fpclassify.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-frexp.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fromfp.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-fromfpx.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-getpayload.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-hypot.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ilogb.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-iscanonical.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-iseqsig.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isfinite.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isgreater.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isgreaterequal.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isinf.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isless.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-islessequal.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-islessgreater.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isnan.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isnormal.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-issignaling.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-issubnormal.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-isunordered.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-iszero.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-j0.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-j1.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-jn.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-lgamma.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-llogb.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-llrint.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-llround.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-log1p.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-log2.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-log10.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-log.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-logb.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-lrint.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-lround.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-modf.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-nearbyint.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-nextafter.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-nextdown.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-nexttoward.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-nextup.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-pow.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-remainder.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-remquo.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-rint.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-round.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-roundeven.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-scalb.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-scalbln.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-scalbn.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-setpayload.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-setpayloadsig.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-signbit.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-significand.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-sin.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-sincos.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-sinh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-sqrt.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-tan.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-tanh.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-tgamma.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-totalorder.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-totalordermag.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-trunc.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ufromfp.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-ufromfpx.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-y0.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-y1.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test-yn.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
libm-test.inc Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
Makefile Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
math.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mul_split.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mul_splitl.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
multc3.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
README.libm-test Split libm-test.inc by function. 2017-02-06 18:57:25 +00:00
s_asinhl.c
s_atanl.c
s_cacos_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_cacosh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_canonicalize_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_casin_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_casinh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_catan_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_catanh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_cbrtl.c
s_ccos_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_ccosh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_cexp_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_clog10_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_clog_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_cpow_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_cproj_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_csin_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_csinh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_csqrt_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_ctan_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_ctanh_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_erfl.c
s_expm1l.c
s_fdim_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fma.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fmaf.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fmal.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fmax_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fmaxmag_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fmin_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fminmag_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00: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. 2017-01-01 00:14:16 +00:00
s_ldexp_template.c Make ldexpF generic. 2016-09-20 14:37:40 -05:00
s_log1pl.c Set errno for log1p on pole/domain error. 2015-04-13 21:19:27 +02:00
s_nan_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_nextafter.c Make nextafter, nexttoward set errno (bug 6799). 2015-11-02 18:54:19 +00:00
s_nextdown_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_nexttowardf.c Make nextafter, nexttoward set errno (bug 6799). 2015-11-02 18:54:19 +00:00
s_nexttowardl.c
s_significand.c
s_significandf.c
s_significandl.c
s_tanhl.c
setfpucw.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
t_sincosl.c
test-double-finite.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-double-vlen2.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-double-vlen4.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-double-vlen8.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-double.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-double.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fe-snans-always-signal.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-femode-traps.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-femode.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fenv-clear-main.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00: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. 2017-01-01 00:14:16 +00:00
test-fenv-return.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fenv-tls.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fenv.c Fix math/test-fenv for no-exceptions / no-rounding-modes configurations. 2017-01-09 18:27:49 +00:00
test-fenvinline.c Fix math/test-fenvinline for no-exceptions configurations. 2017-01-03 18:45:28 +00:00
test-fesetexcept-traps.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fesetexcept.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fetestexceptflag.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fexcept-traps.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fexcept.c Make fallback fesetexceptflag always succeed (bug 21028). 2017-01-05 23:15:47 +00:00
test-float-finite.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-float-vlen4.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-float-vlen8.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-float-vlen16.h Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-float.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-float.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-flt-eval-method.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fp-ilogb-constants.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fp-llogb-constants.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fpucw-ieee-static.c
test-fpucw-ieee.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-fpucw-static.c
test-fpucw.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-idouble.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-ifloat.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-ildouble.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-iseqsig-excess-precision.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-iszero-excess-precision.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-ldouble-finite.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-ldouble.c Move libm-test TEST_MSG definitions to libm-test-driver.c. 2017-02-06 23:07:22 +00:00
test-ldouble.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-errno.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-finite.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-inline.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-isinff.cc Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-iszero.cc Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-no-finite.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-no-inline.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-scalar.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-vector.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-matherr.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
test-misc.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-nan-overflow.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-nan-payload.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-nearbyint-except-2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-nearbyint-except.c Fix math/test-nearbyint-except for no-exceptions configurations. 2017-01-02 20:47:17 +00:00
test-powl.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-signgam-finite-c11.c Fix finite-math-only lgamma functions signgam setting (bug 19211). 2015-11-05 21:23:07 +00:00
test-signgam-finite-c99.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-signgam-finite.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-signgam-main.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00: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 Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-tgmath2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-tgmath-int.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-tgmath-ret.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-tgmath.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tgmath.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-CMPLX2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-CMPLX.c
tst-definitions.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions Add fromfp functions. 2016-12-31 00:40:59 +00:00
w_acos_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acoshf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acoshl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asin_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asinf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asinl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanhf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanhl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_cosh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_coshf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_coshl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_expl.c
w_fmod_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_fmodf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_fmodl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypot_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypotf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypotl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_ilogb_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_j0_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_j0f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_j0l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_j1_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_j1f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_j1l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_jn_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_jnf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_jnl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -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 Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgamma_r.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 2015-06-03 15:41:36 +01:00
w_lgamma.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgammaf_main.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgammaf_r.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 2015-06-03 15:41:36 +01:00
w_lgammaf.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgammal_main.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_lgammal_r.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 2015-06-03 15:41:36 +01:00
w_lgammal.c Fix lgamma setting signgam for ISO C (bug 15421). 2015-11-20 22:49:59 +00:00
w_llogb_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_log1p_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_log2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_logf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_logl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_pow_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_powf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_powl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainder_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainderf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainderl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalb_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalbf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalbl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalbln_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_sinh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sinhf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sinhl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrt_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrtf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrtl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_tgamma_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_tgammaf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_tgammal_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00

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 Perl script
"gen-libm-test.pl" have some options.  A full list of options is
available with --help (for the test drivers) and -h for
"gen-libm-test.pl".


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 Perl script
"gen-libm-test.pl" 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.c", "test-float.c", and "test-ldouble.c"
test the normal double, float and long double implementation of libm.
The test drivers with an 'i' in their name ("test-idouble.c",
"test-ifloat.c", and "test-ildoubl.c") test the corresponding inline
functions (where available - otherwise they also test the real
functions in 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 also either defines or
undefines the __NO_MATH_INLINES macro just before including
"libm-test.c" to select either the real or inline functions,
respectively.  Each driver is compiled into a single executable test
program with the corresponding name.

As mentioned above, the "gen-libm-test.pl" 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.pl" with the
file as input and ask to generate a pretty printed output in the file
"NewUlps":
  gen-libm-test.pl -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.pl" 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":
idouble: 6

The keywords are float, ifloat, double, idouble, ldouble and ildouble
(the prefix i stands for inline).

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.
- "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), along with
whether the inline set has been selected, regardless of whether or
not any inline functions actually exist.  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.