You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Joseph Myers ec94343f59 Add femode_t functions. 10 years ago
..
bits Support __STDC_WANT_IEC_60559_FUNCS_EXT__ feature test macro. 10 years ago
machine Update. 27 years ago
Makefile Add femode_t functions. 10 years ago
README.libm-test Clarify math/README.libm-test. Add "How to read the test output." 11 years ago
Versions Add femode_t functions. 10 years ago
atest-exp.c Fix building glibc master with NDEBUG and --with-cpu. 10 years ago
atest-exp2.c Fix building glibc master with NDEBUG and --with-cpu. 10 years ago
atest-sincos.c Update copyright dates with scripts/update-copyrights. 10 years ago
auto-libm-test-in Fix cos computation for multiple precision fallback (bz #20357) 10 years ago
auto-libm-test-out Fix cos computation for multiple precision fallback (bz #20357) 10 years ago
basic-test.c Update copyright dates with scripts/update-copyrights. 10 years ago
bug-nextafter.c Make more libm tests condition exceptions tests with math-tests.h. 13 years ago
bug-nexttoward.c Make more libm tests condition exceptions tests with math-tests.h. 13 years ago
bug-tgmath1.c Update. 22 years ago
cabs_template.c Support for type-generic libm function implementations libm 10 years ago
carg_template.c Support for type-generic libm function implementations libm 10 years ago
cimag_template.c Support for type-generic libm function implementations libm 10 years ago
complex.h Update copyright dates with scripts/update-copyrights. 10 years ago
conj_template.c Support for type-generic libm function implementations libm 10 years ago
creal_template.c Support for type-generic libm function implementations libm 10 years ago
divtc3.c Update copyright dates with scripts/update-copyrights. 10 years ago
e_acoshl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_acosl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_asinl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_atan2l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_atanhl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_coshl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_exp2l.c Update copyright dates with scripts/update-copyrights. 10 years ago
e_exp10.c Update copyright dates with scripts/update-copyrights. 10 years ago
e_exp10f.c Update copyright dates with scripts/update-copyrights. 10 years ago
e_exp10l.c Update copyright dates with scripts/update-copyrights. 10 years ago
e_expl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_fmodl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_gammal_r.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_hypotl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_j0l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_j1l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_jnl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_lgammal_r.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_log2l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_log10l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_logl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_powl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_rem_pio2l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_scalb.c Do not call __nan in scalb functions. 10 years ago
e_scalbf.c Do not call __nan in scalb functions. 10 years ago
e_scalbl.c Do not call __nan in scalb functions. 10 years ago
e_sinhl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
e_sqrtl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 10 years ago
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 10 years ago
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 10 years ago
fegetenv.c Update copyright dates with scripts/update-copyrights. 10 years ago
fegetexcept.c Update copyright dates with scripts/update-copyrights. 10 years ago
fegetmode.c Add femode_t functions. 10 years ago
fegetround.c Update copyright dates with scripts/update-copyrights. 10 years ago
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 10 years ago
fenv.h Add femode_t functions. 10 years ago
fesetenv.c Update copyright dates with scripts/update-copyrights. 10 years ago
fesetexcept.c Add fesetexcept. 10 years ago
fesetmode.c Add femode_t functions. 10 years ago
fesetround.c Update copyright dates with scripts/update-copyrights. 10 years ago
fetestexceptflag.c Add fetestexceptflag. 10 years ago
feupdateenv.c Update copyright dates with scripts/update-copyrights. 10 years ago
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 10 years ago
fpu_control.c Update copyright dates with scripts/update-copyrights. 10 years ago
fraiseexcpt.c Update copyright dates with scripts/update-copyrights. 10 years ago
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 10 years ago
ftestexcept.c Update copyright dates with scripts/update-copyrights. 10 years ago
gen-auto-libm-tests.c Generate new format names in auto-libm-test-out 10 years ago
gen-libm-have-vector-test.sh Update copyright dates with scripts/update-copyrights. 10 years ago
gen-libm-test.pl Improve gen-libm-test.pl LIT() application 10 years ago
ieee-math.c * hurd/hurdinit.c (map0): Remove [!PIC] conditional. 30 years ago
k_casinh_template.c Convert _Complex sine functions to generated code 10 years ago
k_cosl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
k_sincosl.c Moved to csu/errno-loc.c. 21 years ago
k_sinl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
k_tanl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
lgamma-compat.h Update copyright dates with scripts/update-copyrights. 10 years ago
libm-test.inc Improve gen-libm-test.pl LIT() application 10 years ago
math.h Fix math.h comment about bits/mathdef.h. 10 years ago
mul_split.h Merge common usage of mul_split function 10 years ago
mul_splitl.h Merge common usage of mul_split function 10 years ago
multc3.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_asinhl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
s_atanl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
s_cacos_template.c Convert _Complex cosine functions to generated code 10 years ago
s_cacosh_template.c Convert _Complex cosine functions to generated code 10 years ago
s_casin_template.c Convert _Complex sine functions to generated code 10 years ago
s_casinh_template.c Convert _Complex sine functions to generated code 10 years ago
s_catan_template.c Convert _Complex tangent functions to generated code 10 years ago
s_catanh_template.c Convert _Complex tangent functions to generated code 10 years ago
s_cbrtl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
s_ccos_template.c Convert _Complex cosine functions to generated code 10 years ago
s_ccosh_template.c Convert _Complex cosine functions to generated code 10 years ago
s_cexp_template.c Convert remaining complex function to generated files 10 years ago
s_clog10_template.c Convert remaining complex function to generated files 10 years ago
s_clog_template.c Convert remaining complex function to generated files 10 years ago
s_cpow_template.c Convert remaining complex function to generated files 10 years ago
s_cproj_template.c Convert remaining complex function to generated files 10 years ago
s_csin_template.c Convert _Complex sine functions to generated code 10 years ago
s_csinh_template.c Convert _Complex sine functions to generated code 10 years ago
s_csqrt_template.c Convert remaining complex function to generated files 10 years ago
s_ctan_template.c Convert _Complex tangent functions to generated code 10 years ago
s_ctanh_template.c Convert _Complex tangent functions to generated code 10 years ago
s_erfl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
s_expm1l.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
s_fdim_template.c Make common fdim implementation generic. 10 years ago
s_fma.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_fmaf.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_fmal.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_fmax_template.c Make common fmax implementation generic. 10 years ago
s_fmin_template.c Make common fmin implementation generic. 10 years ago
s_ldexp.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
s_ldexpf.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
s_ldexpl.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
s_log1pl.c Set errno for log1p on pole/domain error. 11 years ago
s_nan.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_nanf.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_nanl.c Update copyright dates with scripts/update-copyrights. 10 years ago
s_nextafter.c Make nextafter, nexttoward set errno (bug 6799). 11 years ago
s_nextdown_template.c Make common nextdown implementation generic. 10 years ago
s_nexttowardf.c Make nextafter, nexttoward set errno (bug 6799). 11 years ago
s_nexttowardl.c Moved to csu/errno-loc.c. 21 years ago
s_significand.c Remove __STDC__ conditionals from libm. 14 years ago
s_significandf.c Remove __STDC__ conditionals from libm. 14 years ago
s_significandl.c Remove __STDC__ conditionals from libm. 14 years ago
s_tanhl.c [BZ #157] Remove include/stub-tag.h for good. 14 years ago
setfpucw.c Update copyright dates with scripts/update-copyrights. 10 years ago
t_sincosl.c Moved to csu/errno-loc.c. 21 years ago
test-double-finite.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-double-vlen2.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-double-vlen4.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-double-vlen8.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-double.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-double.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-femode-traps.c Add femode_t functions. 10 years ago
test-femode.c Add femode_t functions. 10 years ago
test-fenv-clear-main.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fenv-clear.c Fix i386/x86_64 fesetenv SSE exception clearing (bug 19181). 11 years ago
test-fenv-preserve.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fenv-return.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fenv-tls.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fenv.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fenvinline.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fesetexcept-traps.c Add fesetexcept. 10 years ago
test-fesetexcept.c Add fesetexcept. 10 years ago
test-fetestexceptflag.c Add fetestexceptflag. 10 years ago
test-fexcept-traps.c Add tests for fegetexceptflag, fesetexceptflag. 10 years ago
test-fexcept.c Fix test-fexcept when "inexact" implicitly raised. 10 years ago
test-float-finite.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-float-vlen4.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-float-vlen8.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-float-vlen16.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-float.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-float.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-fpucw-ieee-static.c Fix static-binary lazy FPU context allocation 13 years ago
test-fpucw-ieee.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-fpucw-static.c Fix math/test-fpucw-*.c for sysdeps test-fpucw.c overrides. 12 years ago
test-fpucw.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-idouble.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-ifloat.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-ildouble.c Refactor part of math Makefile 10 years ago
test-ldouble-finite.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-ldouble.c Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-ldouble.h Remove CHOOSE() macro from libm-tests.inc 10 years ago
test-math-errno.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-finite.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-inline.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-isinff.cc Don't use long double math functions if NO_LONG_DOUBLE 10 years ago
test-math-no-finite.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-no-inline.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-scalar.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-math-vector.h Update copyright dates with scripts/update-copyrights. 10 years ago
test-matherr.c Modify several tests to use test-skeleton.c 12 years ago
test-misc.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-nan-overflow.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-nan-payload.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-nearbyint-except-2.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-nearbyint-except.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-powl.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-signgam-finite-c11.c Fix finite-math-only lgamma functions signgam setting (bug 19211). 11 years ago
test-signgam-finite-c99.c Fix compilation of test-signgam-* tests 10 years ago
test-signgam-finite.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-signgam-main.c Fix compilation of test-signgam-* tests 10 years ago
test-signgam-uchar-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uchar-init.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uchar-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uchar.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uint-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uint-init.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uint-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-uint.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-ullong-init-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-ullong-init.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-ullong-static.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-signgam-ullong.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
test-snan.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-tgmath-int.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-tgmath-ret.c Update copyright dates with scripts/update-copyrights. 10 years ago
test-tgmath.c Add nextup and nextdown math functions 10 years ago
test-tgmath2.c Update copyright dates with scripts/update-copyrights. 10 years ago
tgmath.h Also handle __STDC_WANT_IEC_60559_BFP_EXT__ in <tgmath.h>. 10 years ago
tst-CMPLX.c Don't disable CMPLXL macro for __NO_LONG_DOUBLE_MATH (bug 15488). 13 years ago
tst-CMPLX2.c Update copyright dates with scripts/update-copyrights. 10 years ago
tst-definitions.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acos.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acosf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acosh.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acoshf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acoshl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_acosl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_asin.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_asinf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_asinl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atan2.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atan2f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atan2l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atanh.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atanhf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_atanhl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_cosh.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_coshf.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_coshl.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_exp2.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_exp2f.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_exp2l.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_exp10.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_exp10f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_exp10l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_expl.c Moved to csu/errno-loc.c. 21 years ago
w_fmod.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_fmodf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_fmodl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_hypot.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_hypotf.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_hypotl.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_ilogb.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_ilogbf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_ilogbl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j0.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j0f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j0l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j1.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j1f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_j1l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_jn.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_jnf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_jnl.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_lgamma.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgamma_compat.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgamma_compatf.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgamma_compatl.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgamma_main.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
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. 11 years ago
w_lgammaf.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgammaf_main.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
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. 11 years ago
w_lgammal.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
w_lgammal_main.c Fix lgamma setting signgam for ISO C (bug 15421). 11 years ago
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. 11 years ago
w_log.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log1p.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log1pf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log1pl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log2.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log2f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log2l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log10.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log10f.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_log10l.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_logf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_logl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_pow.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_powf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_powl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_remainder.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_remainderf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_remainderl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_scalb.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_scalbf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_scalbl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_scalbln.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
w_scalblnf.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
w_scalblnl.c Fix ldexp, scalbn, scalbln for sNaN input (bug 20225). 10 years ago
w_sinh.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_sinhf.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_sinhl.c This patch renames all uses of __isinf*, __isnan*, __finite* and __signbit* to use standard C99 macros. This has no effect on generated code. 11 years ago
w_sqrt.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_sqrtf.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_sqrtl.c Update copyright dates with scripts/update-copyrights. 10 years ago
w_tgamma.c Cleanup a few cases where isinf is used to get the signbit to improve the readability and maintainability and allow inlining. 11 years ago
w_tgammaf.c Cleanup a few cases where isinf is used to get the signbit to improve the readability and maintainability and allow inlining. 11 years ago
w_tgammal.c Cleanup a few cases where isinf is used to get the signbit to improve the readability and maintainability and allow inlining. 11 years ago

README.libm-test

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 file is "libm-test.inc". It is independent of the target
platform and the specific real floating type and format and contains
placeholder test "templates" for math functions defined in libm.
The file, along with a generated file named "auto-libm-test-out",
is 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.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" file contains sets of test cases to exercise,
the conditions under which to exercise each, and the expected results.
The file is 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
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.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
- "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.
- "F" for the address of a FLOAT (only as input parameter)
- "I" for the address of an int (only as input parameter)

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.