glibc/math
Joseph Myers 813378e9fe Obsolete matherr, _LIB_VERSION, libieee.a.
This patch obsoletes support for SVID libm error handling (the system
where a user-defined function matherr is called on a libm function
error; only enabled if you also set _LIB_VERSION = _SVID_ or
_LIB_VERSION = _XOPEN_) and the use of the _LIB_VERSION global
variable to control libm error handling.  matherr and _LIB_VERSION are
made into compat symbols, not supported for new ports or for static
linking.  The libieee.a object file (which sets _LIB_VERSION = _IEEE_,
so disabling errno setting for some functions) is also removed, and
all the related definitions are removed from math.h.

The manual already recommends against using matherr, and it's already
not supported for _Float128 functions (those use new wrappers that
don't support matherr, only errno) - this patch means that it becomes
possible to e.g. add sinf32 as an alias to sinf without that resulting
in undesired matherr support in sinf32 for existing glibc ports.
matherr support is not part of any standard supported by glibc (it was
removed in XPG4).

Because matherr is a function to be defined by the user, of course
user programs defining such a function will still continue to link; it
just quietly won't be used.  If they try to write to the library's
copy of _LIB_VERSION to enable SVID error handling, however, they will
get a link error (but if they define their own _LIB_VERSION variable,
they won't).

I expect the most likely case of build failures from this patch to be
programs with unconditional cargo-culted uses of -lieee (based on a
notion of "I want IEEE floating point", not any actual requirement for
that library).

Ideally, the new-port-or-static-linking case would use the new
wrappers used for _Float128.  This is not implemented in this patch,
because of the complication of architecture-specific (powerpc32 and
sparc) sqrt wrappers that use _LIB_VERSION and __kernel_standard
directly.  Thus, the old wrappers and __kernel_standard are still
built unconditionally, and _LIB_VERSION still exists in static libm.
But when the old wrappers and __kernel_standard are built in the
non-compat case, _LIB_VERSION and matherr are defined as macros so
code to support those features isn't actually built into static libm
or new ports' shared libm after this patch.

I intend to move to the new wrappers for static libm and new ports in
followup patches.  I believe the sqrt wrappers for powerpc32 and sparc
can reasonably be removed.  GCC already optimizes the normal case of
sqrt by generating code that uses a hardware instruction and only
calls the sqrt function if the argument was negative (if
-fno-math-errno, of course, it just uses the hardware instruction
without any check for negative argument being needed).  Thus those
wrappers will only actually get called in the case of negative
arguments, which is not a case it makes sense to optimize for.  But
even without removing the powerpc32 and sparc wrappers it should still
be possible to move to the new wrappers for static libm and new ports,
just without having those dubious architecture-specific optimizations
in static libm.

Everything said about matherr equally applies to matherrf and matherrl
(IA64-specific, undocumented), except that the structure of IA64 libm
means it won't be converted to using the new wrappers (it doesn't use
the old ones either, but its own error-handling code instead).

As with other tests of compat symbols, I expect test-matherr and
test-matherr-2 to need to become appropriately conditional once we
have a system for disabling such tests for ports too new to have the
relevant symbols.

Tested for x86_64 and x86, and with build-many-glibcs.py.

	* math/math.h [__USE_MISC] (_LIB_VERSION_TYPE): Remove.
	[__USE_MISC] (_LIB_VERSION): Likewise.
	[__USE_MISC] (struct exception): Likewise.
	[__USE_MISC] (matherr): Likewise.
	[__USE_MISC] (DOMAIN): Likewise.
	[__USE_MISC] (SING): Likewise.
	[__USE_MISC] (OVERFLOW): Likewise.
	[__USE_MISC] (UNDERFLOW): Likewise.
	[__USE_MISC] (TLOSS): Likewise.
	[__USE_MISC] (PLOSS): Likewise.
	[__USE_MISC] (HUGE): Likewise.
	[__USE_XOPEN] (MAXFLOAT): Define even if [__USE_MISC].
	* math/math-svid-compat.h: New file.
	* conform/linknamespace.pl (@whitelist): Remove matherr, matherrf
	and matherrl.
	* include/math.h [!_ISOMAC] (__matherr): Remove.
	* manual/arith.texi (FP Exceptions): Do not document matherr.
	* math/Makefile (tests): Change test-matherr to test-matherr-3.
	(tests-internal): New variable.
	(install-lib): Do not add libieee.a.
	(non-lib.a): Likewise.
	(extra-objs): Do not add libieee.a and ieee-math.o.
	(CPPFLAGS-s_lib_version.c): Remove variable.
	($(objpfx)libieee.a): Remove rule.
	($(addprefix $(objpfx), $(tests-internal)): Depend on $(libm).
	* math/ieee-math.c: Remove.
	* math/libm-test-support.c (matherr): Remove.
	* math/test-matherr.c: Use <support/test-driver.c>.  Add copyright
	and license notices.  Include <math-svid-compat.h> and
	<shlib-compat.h>.
	(matherr): Undefine as macro.  Use compat_symbol_reference.
	(_LIB_VERSION): Likewise.
	* math/test-matherr-2.c: New file.
	* math/test-matherr-3.c: Likewise.
	* sysdeps/generic/math_private.h (__kernel_standard): Remove
	declaration.
	(__kernel_standard_f): Likewise.
	(__kernel_standard_l): Likewise.
	* sysdeps/ieee754/s_lib_version.c: Do not include <math.h> or
	<math_private.h>.  Include <math-svid-compat.h>.
	(_LIB_VERSION): Undefine as macro.
	(_LIB_VERSION_INTERNAL): Always initialize to _POSIX_.  Define
	only if [LIBM_SVID_COMPAT || !defined SHARED].  If
	[LIBM_SVID_COMPAT], use compat_symbol.
	* sysdeps/ieee754/s_matherr.c: Do not include <math.h> or
	<math_private.h>.  Include <math-svid-compat.h>.
	(matherr): Undefine as macro.
	(__matherr): Define only if [LIBM_SVID_COMPAT].  Use
	compat_symbol.
	* sysdeps/ia64/fpu/libm_error.c: Include <math-svid-compat.h>.
	[_LIBC && LIBM_SVID_COMPAT] (matherrf): Use
	compat_symbol_reference.
	[_LIBC && LIBM_SVID_COMPAT] (matherrl): Likewise.
	[_LIBC && !LIBM_SVID_COMPAT] (matherrf): Define as macro.
	[_LIBC && !LIBM_SVID_COMPAT] (matherrl): Likewise.
	* sysdeps/ia64/fpu/libm_support.h: Include <math-svid-compat.h>.
	(MATHERR_D): Remove declaration.
	[!_LIBC] (_LIB_VERSION_TYPE): Likewise
	[!LIBM_BUILD] (_LIB_VERSIONIMF): Likewise.
	[LIBM_BUILD] (pmatherrf): Likewise.
	[LIBM_BUILD] (pmatherr): Likewise.
	[LIBM_BUILD] (pmatherrl): Likewise.
	(DOMAIN): Likewise.
	(SING): Likewise.
	(OVERFLOW): Likewise.
	(UNDERFLOW): Likewise.
	(TLOSS): Likewise.
	(PLOSS): Likewise.
	* sysdeps/ia64/fpu/s_matherrf.c: Include <math-svid-compat.h>.
	(__matherrf): Define only if [LIBM_SVID_COMPAT].  Use
	compat_symbol.
	* sysdeps/ia64/fpu/s_matherrl.c: Include <math-svid-compat.h>.
	(__matherrl): Define only if [LIBM_SVID_COMPAT].  Use
	compat_symbol.
	* math/lgamma-compat.h: Include <math-svid-compat.h>.
	* math/w_acos_compat.c: Likewise.
	* math/w_acosf_compat.c: Likewise.
	* math/w_acosh_compat.c: Likewise.
	* math/w_acoshf_compat.c: Likewise.
	* math/w_acoshl_compat.c: Likewise.
	* math/w_acosl_compat.c: Likewise.
	* math/w_asin_compat.c: Likewise.
	* math/w_asinf_compat.c: Likewise.
	* math/w_asinl_compat.c: Likewise.
	* math/w_atan2_compat.c: Likewise.
	* math/w_atan2f_compat.c: Likewise.
	* math/w_atan2l_compat.c: Likewise.
	* math/w_atanh_compat.c: Likewise.
	* math/w_atanhf_compat.c: Likewise.
	* math/w_atanhl_compat.c: Likewise.
	* math/w_cosh_compat.c: Likewise.
	* math/w_coshf_compat.c: Likewise.
	* math/w_coshl_compat.c: Likewise.
	* math/w_exp10_compat.c: Likewise.
	* math/w_exp10f_compat.c: Likewise.
	* math/w_exp10l_compat.c: Likewise.
	* math/w_exp2_compat.c: Likewise.
	* math/w_exp2f_compat.c: Likewise.
	* math/w_exp2l_compat.c: Likewise.
	* math/w_fmod_compat.c: Likewise.
	* math/w_fmodf_compat.c: Likewise.
	* math/w_fmodl_compat.c: Likewise.
	* math/w_hypot_compat.c: Likewise.
	* math/w_hypotf_compat.c: Likewise.
	* math/w_hypotl_compat.c: Likewise.
	* math/w_j0_compat.c: Likewise.
	* math/w_j0f_compat.c: Likewise.
	* math/w_j0l_compat.c: Likewise.
	* math/w_j1_compat.c: Likewise.
	* math/w_j1f_compat.c: Likewise.
	* math/w_j1l_compat.c: Likewise.
	* math/w_jn_compat.c: Likewise.
	* math/w_jnf_compat.c: Likewise.
	* math/w_jnl_compat.c: Likewise.
	* math/w_lgamma_main.c: Likewise.
	* math/w_lgamma_r_compat.c: Likewise.
	* math/w_lgammaf_main.c: Likewise.
	* math/w_lgammaf_r_compat.c: Likewise.
	* math/w_lgammal_main.c: Likewise.
	* math/w_lgammal_r_compat.c: Likewise.
	* math/w_log10_compat.c: Likewise.
	* math/w_log10f_compat.c: Likewise.
	* math/w_log10l_compat.c: Likewise.
	* math/w_log2_compat.c: Likewise.
	* math/w_log2f_compat.c: Likewise.
	* math/w_log2l_compat.c: Likewise.
	* math/w_log_compat.c: Likewise.
	* math/w_logf_compat.c: Likewise.
	* math/w_logl_compat.c: Likewise.
	* math/w_pow_compat.c: Likewise.
	* math/w_powf_compat.c: Likewise.
	* math/w_powl_compat.c: Likewise.
	* math/w_remainder_compat.c: Likewise.
	* math/w_remainderf_compat.c: Likewise.
	* math/w_remainderl_compat.c: Likewise.
	* math/w_scalb_compat.c: Likewise.
	* math/w_scalbf_compat.c: Likewise.
	* math/w_scalbl_compat.c: Likewise.
	* math/w_sinh_compat.c: Likewise.
	* math/w_sinhf_compat.c: Likewise.
	* math/w_sinhl_compat.c: Likewise.
	* math/w_sqrt_compat.c: Likewise.
	* math/w_sqrtf_compat.c: Likewise.
	* math/w_sqrtl_compat.c: Likewise.
	* math/w_tgamma_compat.c: Likewise.
	* math/w_tgammaf_compat.c: Likewise.
	* math/w_tgammal_compat.c: Likewise.
	* sysdeps/ieee754/dbl-64/w_exp_compat.c: Likewise.
	* sysdeps/ieee754/flt-32/w_expf_compat.c: Likewise.
	* sysdeps/ieee754/k_standard.c: Likewise.
	* sysdeps/ieee754/k_standardf.c: Likewise.
	* sysdeps/ieee754/k_standardl.c: Likewise.
	* sysdeps/ieee754/ldbl-128/w_expl_compat.c: Likewise.
	* sysdeps/ieee754/ldbl-128ibm/w_expl_compat.c: Likewise.
	* sysdeps/ieee754/ldbl-96/w_expl_compat.c: Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt_compat.S: Likewise.
	* sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf_compat.S: Likewise.
	* sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt_compat.S: Likewise.
	* sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf_compat.S: Likewise.
	* sysdeps/sparc/sparc32/fpu/w_sqrt_compat.S: Likewise.
	* sysdeps/sparc/sparc32/fpu/w_sqrtf_compat.S: Likewise.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt_compat-vis3.S:
	Likewise.
	* sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf_compat-vis3.S:
	Likewise.
	* sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt_compat.S: Likewise.
	* sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf_compat.S: Likewise.
	* sysdeps/sparc/sparc64/fpu/w_sqrt_compat.S: Likewise.
	* sysdeps/sparc/sparc64/fpu/w_sqrtf_compat.S: Likewise.
2017-08-21 17:45:10 +00:00
..
bits float128: Include math-finite.h for _Float128 2017-05-15 10:09:08 -03:00
machine
Makefile Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
README.libm-test Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
Versions Add fromfp functions. 2016-12-31 00:40:59 +00:00
atest-exp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
atest-exp2.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 XFAIL catan and catanh tests on ibm128 2017-03-16 10:36:37 -03: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-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 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 Improve float range reduction accuracy near pi/2 (bug 21094). 2017-03-15 22:00:54 +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 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 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 Fix powf inaccuracy (bug 21112). 2017-02-07 17:15:47 +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 Improve float range reduction accuracy near pi/2 (bug 21094). 2017-03-15 22:00:54 +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 Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
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
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 float128: Add public _Float128 declarations to libm. 2017-05-15 10:08:56 -03: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_exp2_template.c Convert e_exp2l.c into a template 2017-05-17 14:44:08 -03: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 Change return type in the declaration of __ieee754_rem_pio2l 2017-03-30 15:22:27 -03:00
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_sqrtf128.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
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-test.pl float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
gen-tgmath-tests.py Fix tgmath.h for __int128 (bug 21686). 2017-08-02 20:16:05 +00:00
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 Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
libm-test-acos.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-acosh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-asin.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-asinh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-atan.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-atan2.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-atanh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cabs.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cacos.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cacosh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-canonicalize.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-carg.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-casin.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-casinh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-catan.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-catanh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cbrt.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ccos.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ccosh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ceil.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cexp.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cimag.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-clog.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-clog10.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-conj.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-copysign.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cos.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cosh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cpow.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-cproj.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-creal.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-csin.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-csinh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-csqrt.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ctan.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ctanh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-driver.c Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-erf.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-erfc.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-exp.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-exp2.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-exp10.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-expm1.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fabs.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fdim.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-floor.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fma.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fmax.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fmaxmag.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fmin.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fminmag.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fmod.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fpclassify.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-frexp.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fromfp.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-fromfpx.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-getpayload.inc Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
libm-test-hypot.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ilogb.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-iscanonical.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-iseqsig.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isfinite.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-isgreater.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isgreaterequal.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isinf.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isless.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-islessequal.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-islessgreater.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isnan.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isnormal.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-issignaling.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-issubnormal.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-isunordered.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-iszero.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-j0.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-j1.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-jn.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-lgamma.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-llogb.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-llrint.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-llround.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-log.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-log1p.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-log2.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-log10.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-logb.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-lrint.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-lround.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-modf.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-nearbyint.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-nextafter.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-nextdown.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-nexttoward.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-nextup.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-pow.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-remainder.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-remquo.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-rint.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-round.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-roundeven.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-scalb.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-scalbln.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-scalbn.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-setpayload.inc Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
libm-test-setpayloadsig.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-signbit.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-significand.inc float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
libm-test-sin.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-sincos.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-sinh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-sqrt.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-support.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
libm-test-support.h Add float128 support for ia64. 2017-06-26 22:50:45 +00:00
libm-test-tan.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-tanh.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-tgamma.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-totalorder.inc Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
libm-test-totalordermag.inc Add float128 support for x86_64, x86. 2017-06-26 22:02:24 +00:00
libm-test-trunc.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ufromfp.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-ufromfpx.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-y0.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-y1.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
libm-test-yn.inc Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
math-svid-compat.h Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
math.h Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +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
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 float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_fmin_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_fminmag_template.c float128: Add wrappers to override ldbl-128 as float128. 2017-05-25 09:01:37 -03:00
s_iscanonicall.c Add iscanonical. 2016-09-30 00:27:50 +00:00
s_iseqsig_template.c Use internal __feraiseexcept in __iseqsig 2017-03-15 09:39:16 -03:00
s_ldexp_template.c Make ldexpF generic. 2016-09-20 14:37:40 -05:00
s_log1pl.c
s_nan_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_nextafter.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +00:00
s_nextdown_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
s_nexttowardf.c Consistently use uintN_t not u_intN_t in libm. 2017-08-03 19:55:04 +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-vlen2.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-double-vlen4.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-double-vlen8.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-double.h float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03: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
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-vlen4.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-float-vlen8.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-float-vlen16.h Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-float.h float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
test-float128.h float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03: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-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.h float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
test-math-errno.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
test-math-finite.h Clean up libm vector tests exception test disabling. 2017-02-07 23:06:19 +00:00
test-math-floatn.h float128: Add test-{float128,ifloat128,float128-finite} 2017-06-12 14:48:54 -03:00
test-math-inline.h Move -U__LIBC_INTERNAL_MATH_INLINES to test-math-inline.h. 2017-02-09 17:32:48 +00:00
test-math-isinff.cc Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-math-iszero.cc Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-math-no-finite.h Clean up libm vector tests exception test disabling. 2017-02-07 23:06:19 +00:00
test-math-no-inline.h Clean up libm vector tests exception test disabling. 2017-02-07 23:06:19 +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 Run libm tests separately for each function. 2017-02-24 00:52:49 +00:00
test-matherr-2.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
test-matherr-3.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
test-matherr.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
test-misc.c Miscellaneous low-risk changes preparing for _ISOMAC testsuite. 2017-03-01 20:32:50 -05:00
test-nan-overflow.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-nan-payload.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-nearbyint-except-2.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-nearbyint-except.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-powl.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-signgam-finite-c11.c
test-signgam-finite-c99.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-signgam-finite.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-signgam-main.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-signgam-uchar-init-static.c
test-signgam-uchar-init.c
test-signgam-uchar-static.c
test-signgam-uchar.c
test-signgam-uint-init-static.c
test-signgam-uint-init.c
test-signgam-uint-static.c
test-signgam-uint.c
test-signgam-ullong-init-static.c
test-signgam-ullong-init.c
test-signgam-ullong-static.c
test-signgam-ullong.c
test-snan.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +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 Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
test-tgmath.c Fix tgmath.h totalorder, totalordermag return type (bug 21687). 2017-06-28 16:31:10 +00:00
test-tgmath2.c Remove NO_LONG_DOUBLE conditionals in libm tests (bug 21607). 2017-06-28 16:01:20 +00:00
tgmath.h Fix tgmath.h for __int128 (bug 21686). 2017-08-02 20:16:05 +00:00
tst-CMPLX.c
tst-CMPLX2.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-definitions.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_acos_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_acos_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_acosf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_acosh_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_acosh_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_acoshf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_acoshl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_acosl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_asin_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_asin_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_asinf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_asinl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atan2_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atan2_template.c Add new templates for IEEE wrappers 2017-02-23 11:28:50 -03:00
w_atan2f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atan2l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atanh_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atanh_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_atanhf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_atanhl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_cosh_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_cosh_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_coshf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_coshl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp2_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp2_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_exp2f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp2l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp10_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp10_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_exp10f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp10l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_exp_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_expl_compat.c Move w_exp to libm-compat-call-auto 2017-02-08 17:44:20 -02:00
w_fmod_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_fmod_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_fmodf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_fmodl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_hypot_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_hypot_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_hypotf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_hypotl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_ilogb_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_j0_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_j0_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_j0f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_j0l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_j1_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_j1_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_j1f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_j1l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_jn_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_jn_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_jnf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_jnl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_lgamma_compat.c
w_lgamma_compat2.c Move w_lgamma to libm-compat-calls-auto 2017-02-08 17:40:11 -02:00
w_lgamma_compatf.c
w_lgamma_compatl.c
w_lgamma_main.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_lgamma_r_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_lgamma_r_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_lgamma_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00: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 Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_lgammaf_r_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00: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 Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_lgammal_r_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +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 Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log2_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_log2f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log2l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log10_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log10_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_log10f_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log10l_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_log_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_logf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_logl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_pow_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_pow_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_powf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_powl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_remainder_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_remainder_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_remainderf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_remainderl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_scalb_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_scalbf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_scalbl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_scalbln_template.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
w_sinh_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_sinh_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_sinhf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_sinhl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_sqrt_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_sqrt_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_sqrtf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_sqrtl_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_tgamma_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_tgamma_template.c Make errno-setting libm templates include errno.h. 2017-06-22 22:39:48 +00:00
w_tgammaf_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
w_tgammal_compat.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00

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 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-<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.  The test
drivers with an 'i' in their name ("test-idouble-<func>.c",
"test-ifloat-<func>.c", and "test-ildoubl-<func>.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-<func>.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.