glibc/math
Ulrich Drepper de1c3ebb59 * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+.
* misc/bits/syslog.h (syslog): When __va_arg_pack is defined,
	implement as __extern_always_inline function.
	(vsyslog): Define as __extern_always_inline function unconditionally.
	* libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf):
	When __va_arg_pack is defined, implement as __extern_always_inline
	functions.
	(vsprintf, vsnprintf, vprintf, vfprintf): Define as
	__extern_always_inline functions unconditionally.
	* libio/bits/stdio.h (vprintf): Ifdef out the inline when
	bits/stdio2.h will be included.
	* wcsmbs/bits/wchar2.h (__swprintf_alias): New redirect.
	(swprintf, wprintf, fwprintf): When __va_arg_pack is defined,
	implement as __extern_always_inline functions.
	(vswprintf, vwprintf, vfwprintf): Define as
	__extern_always_inline functions unconditionally.
	* debug/tst-chk1.c (do_test): Enable remaining tests for C++.

2007-09-03  Jakub Jelinek  <jakub@redhat.com>

	* misc/sys/cdefs.h (__extern_inline, __extern_always_inline): Only
	define in C++ for GCC 4.3+, in C++ always use __gnu_inline__
	attribute.
	* include/features.h (__USE_EXTERN_INLINES): Define only when
	__extern_inline is defined.
	* stdlib/stdlib.h: Include bits/stdlib.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* misc/sys/syslog.h: Include bits/syslog.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* socket/sys/socket.h: Include bits/socket2.h when
	__extern_always_inline is defined instead of when not __cplusplus.
	* libio/stdio.h: Include bits/stdio2.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* posix/unistd.h: Include bits/unistd.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* string/string.h: Include bits/string3.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	* wcsmbs/wchar.h: Include bits/wchar2.h when __extern_always_inline
	is defined instead of when not __cplusplus.
	(btowc, wctob): Don't guard the inlines with ifndef __cplusplus.
	* io/fcntl.h: Don't include bits/fcntl2.h if __extern_always_inline
	is not defined.
	* misc/bits/syslog-ldbl.h: Guard *_chk stuff with
	defined __extern_always_inline instead of !defined __cplusplus.
	* libio/bits/stdio-ldbl.h: Likewise.
	* wcsmbs/bits/wchar-ldbl.h: Likewise.
	* misc/bits/syslog.h (syslog): Don't define for C++.
	(vsyslog): Use __extern_always_inline function for C++ instead of
	a macro.
	* libio/bits/stdio.h (__STDIO_INLINE): Define to __extern_inline
	whenever that macro is defined.
	(vprintf): Don't provide the inline for C++.
	(fread_unlocked, fwrite_unlocked): Don't define the macros for C++.
	* libio/bits/stdio2.h (sprintf, snprintf, printf, fprintf): Don't
	define the macros for C++.
	(vsprintf, vsnprintf, vprintf, vfprintf): Define as
	__extern_always_inline functions for C++.
	* io/sys/stat.h (stat, lstat, fstat, fstatat, mknod, mknodat,
	stat64, lstat64, fstat64, fstatat64): Don't define if not
	__USE_EXTERN_INLINES.
	* wcsmbs/bits/wchar2.h: Fix #error message.
	(swprintf, wprintf, fwprintf): Don't define the macros for C++.
	(vswprintf, vwprintf, vfwprintf): Define using
	__extern_always_inline functions for C++.
	* string/bits/string3.h: Don't #undef macros if __cplusplus.
	(memcpy, memmove, mempcpy, memset, bcopy, bzero, strcpy, stpcpy,
	strncpy, strcat, strncat): Define as __extern_always_inline
	functions instead of macros for C++.
	* math/bits/cmathcalls.h: Guard __extern_inline routines with
	defined __extern_inline.
	* sysdeps/alpha/fpu/bits/mathinline.h (__MATH_INLINE): Define
	to __extern_inline whenever that macro is defined.
	* sysdeps/ia64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/i386/i486/bits/string.h (__STRING_INLINE): Likewise.
	* sysdeps/s390/bits/string.h (__STRING_INLINE): Likewise.
	* sysdeps/s390/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/powerpc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/sparc/fpu/bits/mathinline.h (__MATH_INLINE): Likewise.
	* sysdeps/unix/sysv/linux/sys/sysmacros.h (gnu_dev_major,
	gnu_dev_minor, gnu_dev_makedev): Remove __extern_inline from
	prototypes.  Only provide __extern_inline routines if
	__USE_EXTERN_INLINES.
	* debug/Makefile: Add rules to build and run tst-{,lfs}chk{4,5,6}
	tests.
	* debug/tst-chk1.c (do_prepare, do_test): Allow compilation as C++.
	For now avoid some *printf tests in C++.  Skip all testing
	if __USE_FORTIFY_LEVEL is defined, but __extern_always_inline macro
	is not.
	* debug/tst-chk4.cc: New file.
	* debug/tst-chk5.cc: New file.
	* debug/tst-chk6.cc: New file.
	* debug/tst-lfschk4.cc: New file.
	* debug/tst-lfschk5.cc: New file.
	* debug/tst-lfschk6.cc: New file.
	* include/wchar.h (__vfwprintf_chk, __vswprintf_chk): Avoid
	prototypes in C++.
	* include/stdio.h (__sprintf_chk, __snprintf_chk, __vsprintf_chk,
	__vsnprintf_chk, __printf_chk, __fprintf_chk, __vprintf_chk,
	__vfprintf_chk, __fgets_unlocked_chk, __fgets_chk): Likewise.
2007-09-15 02:38:04 +00:00
..
bits * misc/sys/cdefs.h (__va_arg_pack): Define for GCC 4.3+. 2007-09-15 02:38:04 +00:00
machine Update. 1999-07-14 00:54:57 +00:00
.cvsignore Tue May 14 14:07:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu> 1996-05-14 20:30:25 +00:00
atest-exp2.c . 2007-07-31 13:33:18 +00:00
atest-exp.c . 2007-07-31 13:33:18 +00:00
atest-sincos.c . 2007-07-31 13:33:18 +00:00
basic-test.c [BZ #2749] 2007-01-15 23:43:04 +00:00
bug-nextafter.c [BZ #3306] 2007-04-16 20:41:42 +00:00
bug-nexttoward.c [BZ #3306] 2007-04-16 20:41:42 +00:00
bug-tgmath1.c Update. 2004-05-07 02:14:18 +00:00
cabs.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cabsf.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
cabsl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
carg.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cargf.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
cargl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cimag.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
cimagf.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
cimagl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
complex.h * resolv/res_debug.c (loc_ntoa): Make error const. 2006-05-15 14:42:59 +00:00
conj.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
conjf.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
conjl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
creal.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
crealf.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
creall.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
divtc3.c * math/divtc3.c: New file. 2006-02-01 03:02:06 +00:00
e_acoshl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_acosl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_asinl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_atan2l.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_atanhl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_coshl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_exp2l.c * Makerules ($(+sysdir_pfx)sysd-rules): Emit pattern rules to install 2006-01-17 04:31:22 +00:00
e_exp10.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_exp10f.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_exp10l.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_expl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_fmodl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_gammal_r.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_hypotl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_j0l.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_j1l.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_jnl.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_lgammal_r.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_log2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_log10l.c 2005-12-13 Ulrich Drepper <drepper@redhat.com> 2005-12-14 08:43:25 +00:00
e_logl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_powl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_rem_pio2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_scalb.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_scalbf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_scalbl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_sinhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
e_sqrtl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fclrexcpt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fedisblxcpt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
feenablxcpt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fegetenv.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fegetexcept.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fegetround.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
feholdexcpt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fenv.h Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
fesetenv.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fesetround.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
feupdateenv.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fgetexcptflg.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fpu_control.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fraiseexcpt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
fsetexcptflg.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
ftestexcept.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
gen-libm-test.pl [BZ #2832, BZ #2987] 2006-08-13 08:21:10 +00:00
ieee-math.c * hurd/hurdinit.c (map0): Remove [!PIC] conditional. 1996-06-16 09:31:23 +00:00
k_cosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
k_rem_pio2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
k_sincosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
k_sinl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
k_tanl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
libm-test.inc [BZ #3919] 2007-03-15 20:10:51 +00:00
Makefile [BZ #4775, BZ #4776] 2007-07-12 18:17:11 +00:00
math_private.h [BZ #3306] 2007-04-16 20:41:42 +00:00
math.h 2006-02-03 Jakub Jelinek <jakub@redhat.com> 2006-02-03 19:15:48 +00:00
multc3.c * math/divtc3.c: New file. 2006-02-01 03:02:06 +00:00
README.libm-test Update. 2004-03-24 22:05:34 +00:00
s_asinhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_atanl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cacos.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cacosf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cacosh.c [BZ #2182] 2006-08-03 20:36:43 +00:00
s_cacoshf.c [BZ #2182] 2006-08-03 20:36:43 +00:00
s_cacoshl.c [BZ #2182] 2006-08-03 20:36:43 +00:00
s_cacosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casin.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casinf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casinh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casinhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casinhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_casinl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catan.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catanf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catanh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catanhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catanhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_catanl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cbrtl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccos.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccosf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccosh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccoshf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccoshl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ccosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cexp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cexpf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cexpl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clog10.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clog10f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clog10l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clog.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clogf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_clogl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cpow.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cpowf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cpowl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cproj.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cprojf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_cprojl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csin.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csinf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csinh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csinhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csinhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csinl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csqrt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csqrtf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_csqrtl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctan.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctanf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctanh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctanhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctanhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ctanl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_erfl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_expm1l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fdim.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fdimf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fdiml.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fma.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmaf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmal.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmax.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmaxf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmaxl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fmin.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fminf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_fminl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ldexp.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ldexpf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_ldexpl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_log1pl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_nan.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_nanf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_nanl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_nextafter.c [BZ #3306] 2007-04-16 20:41:42 +00:00
s_nexttowardf.c [BZ #3306] 2007-04-16 20:41:42 +00:00
s_nexttowardl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_significand.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_significandf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_significandl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
s_tanhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
setfpucw.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
t_sincosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
test-double.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-fenv.c [BZ #3427] 2007-04-16 20:15:57 +00:00
test-float.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-fpucw.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-idouble.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-ifloat.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-ildoubl.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-ldouble.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
test-matherr.c Update. 1997-06-26 00:09:27 +00:00
test-misc.c * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c 2007-06-04 14:38:22 +00:00
test-tgmath2.c [BZ #4775, BZ #4776] 2007-07-12 18:17:11 +00:00
test-tgmath-int.c [BZ #865] 2005-10-15 00:39:12 +00:00
test-tgmath-ret.c Update. 2003-06-16 08:03:44 +00:00
test-tgmath.c [BZ #4775, BZ #4776] 2007-07-12 18:17:11 +00:00
tgmath.h [BZ #4775, BZ #4776] 2007-07-12 18:17:11 +00:00
tst-definitions.c Update to LGPL v2.1. 2001-07-06 04:58:11 +00:00
Versions * sysdeps/generic/w_exp2.c [NO_LONG_DOUBLE]: Fix typos in alias names. 2005-03-28 20:42:53 +00:00
w_acos.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_acosf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_acosh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_acoshf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_acoshl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_acosl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_asin.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_asinf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_asinl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atan2.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atan2f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atan2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atanh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atanhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_atanhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_cosh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_coshf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_coshl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_drem.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_dremf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_dreml.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp2.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp2f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp10.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp10f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_exp10l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_expl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_fmod.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_fmodf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_fmodl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_hypot.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_hypotf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_hypotl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_j0.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_j0f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_j0l.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
w_j1.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_j1f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_j1l.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
w_jn.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_jnf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_jnl.c * math/math.h [__NO_LONG_DOUBLE_MATH] (__nldbl_nexttowardf): New 2006-01-14 12:10:44 +00:00
w_lgamma_r.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_lgamma.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_lgammaf_r.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_lgammaf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_lgammal_r.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_lgammal.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log2.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log2f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log2l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log10.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log10f.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log10l.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_log.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_logf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_logl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_pow.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_powf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_powl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_remainder.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_remainderf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_remainderl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_scalb.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_scalbf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_scalbl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sinh.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sinhf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sinhl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sqrt.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sqrtf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_sqrtl.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_tgamma.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_tgammaf.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
w_tgammal.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00

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

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


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

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

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

The main file is "libm-test.inc".  It is platform and floating point
format independent.  The file must be preprocessed by the Perl script
"gen-libm-test.pl".  The results are "libm-test.c" and a file
"libm-test-ulps.h" with platform specific deltas.

The test drivers test-double.c, test-float.c, test-ldouble.c test the
normal double, float and long double implementation of libm.  The test
drivers with an i in it (test-idouble.c, test-ifloat.c,
test-ildoubl.c) test the corresponding inline functions (where
available - otherwise they also test the real functions in libm).

"gen-libm-test.pl" needs a platform specific files with ULPs (Units of
Last Precision).  The file is called "libm-test-ulps" and lives in
platform specific sysdep directory.

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

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.

To generate a new "libm-test-ulps" file, first remove "ULPs" file in the
current directory, then you can execute for example:
test-double -u --ignore-max-ulp=yes
This generates a file "ULPs" with all double ULPs in it, ignoring any
previous calculated ULPs.
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

Now you can rename "NewUlps" to "libm-test-ulps" and move it into
sysdeps.

Contents of libm-test-ulps
==========================
Since libm-test-ulps can be generated automatically, just a few
notes.  The file contains lines for single tests, like:
Test "cos (pi/2) == 0":
float:  1

and lines for maximal errors of single functions, like:
Function "yn":
idouble:  6.0000

The keywords are float, ifloat, double, idouble, ldouble and ildouble
(the prefix i stands for inline).  You can also specify known
failures, e.g.:

Test "cos (pi/2) == 0":
float:  1
float: fail

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)

Some functions need special handling.  For example gamma sets the
global variable signgam and frexp takes an argument to &int.  This
special treatment is coded in "gen-libm-test.pl" and used while
parsing "libm-test.inc".