glibc/math
Joseph Myers e535fb910c Define C23 header version macros
C23 defines library macros __STDC_VERSION_<header>_H__ to indicate
that a header has support for new / changed features from C23.  Now
that all the required library features are implemented in glibc,
define these macros.  I'm not sure this is sufficiently much of a
user-visible feature to be worth a mention in NEWS.

Tested for x86_64.

There are various optional C23 features we don't yet have, of which I
might look at the Annex H ones (floating-point encoding conversion
functions and _Float16 functions) next.

* Optional time bases TIME_MONOTONIC, TIME_ACTIVE, TIME_THREAD_ACTIVE.
  See
  <https://sourceware.org/pipermail/libc-alpha/2023-June/149264.html>
  - we need to review / update that patch.  (I think patch 2/2,
  inventing new names for all the nonstandard CLOCK_* supported by the
  Linux kernel, is rather more dubious.)

* Updating conform/ tests for C23.

* Defining the rounding mode macro FE_TONEARESTFROMZERO for RISC-V (as
  far as I know, the only architecture supported by glibc that has
  hardware support for this rounding mode for binary floating point)
  and supporting it throughout glibc and its tests (especially the
  string/numeric conversions in both directions that explicitly handle
  each possible rounding mode, and various tests that do likewise).

* Annex H floating-point encoding conversion functions.  (It's not
  entirely clear which are optional even given support for Annex H;
  there's some wording applied inconsistently about only being
  required when non-arithmetic interchange formats are supported; see
  the comments I raised on the WG14 reflector on 23 Oct 2025.)

* _Float16 functions (and other header and testcase support for this
  type).

* Decimal floating-point support.

* Fully supporting __int128 and unsigned __int128 as integer types
  wider than intmax_t, as permitted by C23.  Would need doing in
  coordination with GCC, see GCC bug 113887 for more discussion of
  what's involved.
2025-11-27 19:32:49 +00:00
..
bits Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
finclude Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
machine
Makefile configure: Only use -fno-fp-int-builtin-inexact if compiler supports it 2025-11-21 13:13:10 -03:00
README.libm-test math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
Versions Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
atest-exp.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atest-exp2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
atest-sincos.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
auto-libm-test-in math: Sync atanh from CORE-MATH 2025-11-26 14:10:07 -03:00
auto-libm-test-out-acos
auto-libm-test-out-acosh math: Sync acosh from CORE-MATH 2025-11-19 12:58:56 -03:00
auto-libm-test-out-acospi new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00
auto-libm-test-out-asin
auto-libm-test-out-asinh
auto-libm-test-out-asinpi math: Optimize fma call on asinpif 2025-10-14 11:11:56 -03:00
auto-libm-test-out-atan
auto-libm-test-out-atan2
auto-libm-test-out-atan2pi new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00
auto-libm-test-out-atanh math: Sync atanh from CORE-MATH 2025-11-26 14:10:07 -03:00
auto-libm-test-out-atanpi math: Use atanpif from CORE-MATH 2025-02-12 16:31:57 -03:00
auto-libm-test-out-cabs
auto-libm-test-out-cacos
auto-libm-test-out-cacosh
auto-libm-test-out-carg
auto-libm-test-out-casin
auto-libm-test-out-casinh
auto-libm-test-out-catan
auto-libm-test-out-catanh
auto-libm-test-out-cbrt
auto-libm-test-out-ccos
auto-libm-test-out-ccosh
auto-libm-test-out-cexp
auto-libm-test-out-clog
auto-libm-test-out-clog10
auto-libm-test-out-compoundn math: Update auto-libm-tests-in with ldbl-128ibm compoundn/pown failures 2025-07-28 13:58:54 -03:00
auto-libm-test-out-cos
auto-libm-test-out-cosh
auto-libm-test-out-cospi new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00
auto-libm-test-out-cpow
auto-libm-test-out-csin
auto-libm-test-out-csinh
auto-libm-test-out-csqrt
auto-libm-test-out-ctan
auto-libm-test-out-ctanh
auto-libm-test-out-erf math: Use erf from CORE-MATH 2025-10-27 09:34:04 -03:00
auto-libm-test-out-erfc math: Use erfc from CORE-MATH 2025-10-27 09:34:04 -03:00
auto-libm-test-out-exp
auto-libm-test-out-exp2
auto-libm-test-out-exp2m1
auto-libm-test-out-exp10
auto-libm-test-out-exp10m1
auto-libm-test-out-expm1 math: Remove no-mathvec flag 2025-01-03 21:39:56 +00:00
auto-libm-test-out-fma
auto-libm-test-out-hypot
auto-libm-test-out-j0
auto-libm-test-out-j1
auto-libm-test-out-jn
auto-libm-test-out-lgamma math: Use binary search on lgammaf slow path 2025-10-14 11:12:08 -03:00
auto-libm-test-out-log
auto-libm-test-out-log1p math: Remove no-mathvec flag 2025-01-03 21:39:56 +00:00
auto-libm-test-out-log2
auto-libm-test-out-log2p1 math: Optimize fma call on log2pf1 2025-10-14 11:12:00 -03:00
auto-libm-test-out-log10
auto-libm-test-out-log10p1 math: Fix log10p1f internal table value (BZ 32626) 2025-01-31 13:05:41 -03:00
auto-libm-test-out-narrow-add
auto-libm-test-out-narrow-div
auto-libm-test-out-narrow-fma
auto-libm-test-out-narrow-mul
auto-libm-test-out-narrow-sqrt
auto-libm-test-out-narrow-sub
auto-libm-test-out-pow math: Remove xfail from pow test [BZ #33563] 2025-10-31 19:13:53 +00:00
auto-libm-test-out-pown math: Update auto-libm-tests-in with ldbl-128ibm compoundn/pown failures 2025-07-28 13:58:54 -03:00
auto-libm-test-out-powr Implement C23 powr 2025-03-14 15:58:11 +00:00
auto-libm-test-out-rootn Implement C23 rootn. 2025-05-14 10:51:46 +00:00
auto-libm-test-out-rsqrt add inputs giving large errors for rsqrt 2025-03-19 09:11:44 +01:00
auto-libm-test-out-sin math: Remove no-mathvec flag 2025-01-03 21:39:56 +00:00
auto-libm-test-out-sincos
auto-libm-test-out-sinh math: Fix sinhf for some inputs (BZ 32627) 2025-01-31 13:05:41 -03:00
auto-libm-test-out-sinpi new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00
auto-libm-test-out-sqrt
auto-libm-test-out-tan math: Fix tanf for some inputs (BZ 32630) 2025-02-03 09:40:39 -03:00
auto-libm-test-out-tanh math: Remove no-mathvec flag 2025-01-03 21:39:56 +00:00
auto-libm-test-out-tanpi new inputs with large errors for [a]cospi, [a]sinpi, [a]tanpi, atan2pi 2025-01-02 18:26:36 +01:00
auto-libm-test-out-tgamma
auto-libm-test-out-y0
auto-libm-test-out-y1
auto-libm-test-out-yn
basic-test.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
bug-nextafter.c
bug-nexttoward.c
bug-tgmath1.c
cabs_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
carg_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
cimag_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
compat_fromfp.h Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
complex.h Define C23 header version macros 2025-11-27 19:32:49 +00:00
conj_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
creal_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
divtc3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
e_exp2_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
e_scalb_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fclrexcpt.c math: Add feclearexcept internal alias 2025-09-11 14:46:07 -03:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fegetenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fegetexcept.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fegetmode.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fegetround.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fenv.h Define C23 header version macros 2025-11-27 19:32:49 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fesetexcept.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fesetmode.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fesetround.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fetestexceptflag.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
feupdateenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fpu_control.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fraiseexcpt.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
fromfp.h Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ftestexcept.c math: Add fetestexcept internal alias 2025-09-11 14:46:07 -03:00
gen-auto-libm-tests.c Implement C23 rootn. 2025-05-14 10:51:46 +00:00
gen-fromfp-tests-inputs Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
gen-fromfp-tests.py Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
gen-libm-test.py gen-libm-test: Use 'original source' instead of 'master' in code. 2025-05-21 12:48:00 -04:00
gen-tgmath-tests.py Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
k_casinh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
k_sincosl.c
lgamma-compat.h math: Remove the SVID error handling from lgammaf/lgammaf_r 2025-11-05 09:27:07 -03:00
libm-test-acos.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-acosh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-acospi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-asin.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-asinh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-asinpi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-atan.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-atan2.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-atan2pi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-atanh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-atanpi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cabs.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cacos.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cacosh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-canonicalize.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-carg.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-casin.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-casinh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-catan.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-catanh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cbrt.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ccos.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ccosh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ceil.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cexp.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cimag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-clog.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-clog10.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-compat_fromfp.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-compat_fromfpx.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-compat_totalorder.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-compat_totalordermag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-compat_ufromfp.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-compat_ufromfpx.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-compoundn.inc Implement C23 compoundn 2025-05-09 15:17:27 +00:00
libm-test-conj.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-copysign.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cos.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cosh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cospi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cpow.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-cproj.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-creal.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-csin.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-csinh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-csqrt.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ctan.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ctanh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-driver.c Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-erf.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-erfc.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-exp.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-exp2.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-exp2m1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-exp10.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-exp10m1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-expm1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fabs.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fdim.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-floor.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fma.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmax.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmaximum.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmaximum_mag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmaximum_mag_num.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmaximum_num.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmaxmag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmin.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fminimum.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fminimum_mag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fminimum_mag_num.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fminimum_num.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fminmag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fmod.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fpclassify.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-frexp.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-fromfp.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-fromfpx.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-getpayload.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-hypot.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ilogb.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-iscanonical.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-iseqsig.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isfinite.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isgreater.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isgreaterequal.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isinf.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isless.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-islessequal.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-islessgreater.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isnan.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isnormal.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-issignaling.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-issubnormal.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-isunordered.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-iszero.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-j0.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-j1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-jn.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-lgamma.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-llogb.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-llrint.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-llround.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log1p.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log2.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log2p1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log10.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-log10p1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-logb.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-lrint.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-lround.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-modf.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-add.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-div.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-fma.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-mul.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-sqrt.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-narrow-sub.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-nearbyint.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-nextafter.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-nextdown.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-nexttoward.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-nextup.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-pow.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-pown.inc math: xfail some pown and compoundn tests for ibm128-libgcc 2025-07-24 19:36:21 +02:00
libm-test-powr.inc Implement C23 powr 2025-03-14 15:58:11 +00:00
libm-test-remainder.inc sysdeps/ieee754: Fix remainder sign of zero for FE_DOWNWARD (BZ #32711) 2025-02-26 17:17:25 -03:00
libm-test-remquo.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-rint.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-rootn.inc Implement C23 rootn. 2025-05-14 10:51:46 +00:00
libm-test-round.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-roundeven.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-rsqrt.inc Implement C23 rsqrt 2025-03-07 19:15:26 +00:00
libm-test-scalb.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-scalbln.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-scalbn.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-setpayload.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-setpayloadsig.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-signbit.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-significand.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-sin.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-sincos.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-sinh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-sinpi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-sqrt.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-support.c math: Refactor how to use libm-test-ulps 2025-03-12 13:40:07 -03:00
libm-test-support.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-tan.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-tanh.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-tanpi.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-tgamma.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-totalorder.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-totalordermag.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-trunc.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-ufromfp.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-ufromfpx.inc Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
libm-test-y0.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-y1.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libm-test-yn.inc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-narrow.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-svid-compat.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
math-underflow.h math: Suppress clang -Wabsolute-value warning on math_check_force_underflow 2025-10-21 09:24:21 -03:00
math.h Define C23 header version macros 2025-11-27 19:32:49 +00:00
mul_split.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mul_splitl.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
multc3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_acospi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_asinpi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_atan2pi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_atanpi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_cacos_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_cacosh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_canonicalize_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_casin_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_casinh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_catan_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_catanh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_ccos_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_ccosh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_cexp_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_clog10_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_clog_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_compoundn_template.c math: Fix compare sort function on compoundn 2025-10-21 09:27:05 -03:00
s_cospi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_cpow_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_cproj_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_csin_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_csinh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_csqrt_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_ctan_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_ctanh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_exp2m1_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_exp10m1_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fdim_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmax_template.c math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
s_fmaximum_mag_num_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmaximum_mag_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmaximum_num_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmaximum_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmaxmag_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fmin_template.c math: Don't redirect inlined builtin math functions 2025-11-17 11:17:07 -03:00
s_fminimum_mag_num_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fminimum_mag_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fminimum_num_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fminimum_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_fminmag_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_iscanonicall.c
s_iseqsig_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_ldexp_template.c
s_log2p1_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_log10p1_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_nan_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_nextafter.c
s_nextdown_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_nexttowardf.c
s_nexttowardl.c
s_pown_template.c Implement C23 pown 2025-03-27 10:44:44 +00:00
s_powr_template.c Implement C23 powr 2025-03-14 15:58:11 +00:00
s_rootn_template.c Implement C23 rootn. 2025-05-14 10:51:46 +00:00
s_rsqrt_template.c Implement C23 rsqrt 2025-03-07 19:15:26 +00:00
s_significand_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_sinpi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
s_tanpi_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setfpucw.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
t_sincosl.c
test-arg-double.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arg-float32x.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arg-float64.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arg-float64x.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arg-float128.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-arg-ldouble.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-ceil-except-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-double-static.h
test-double-vlen2.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-double-vlen4.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-double-vlen8.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-double.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fe-snans-always-signal.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-femode-traps.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-femode.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fenv-clear-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fenv-clear.c
test-fenv-preserve.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fenv-return.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fenv-tls.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fenv.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fesetexcept-traps.c Fix spelling mistake "suports" -> "supports" 2025-04-14 10:11:52 -03:00
test-fesetexcept.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fetestexceptflag.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fexcept-traps.c Fix spelling mistake "suports" -> "supports" 2025-04-14 10:11:52 -03:00
test-fexcept.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float-static.h
test-float-vlen4.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float-vlen8.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float-vlen16.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float32-static.h
test-float32.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float32x-static.h
test-float32x.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float64-static.h
test-float64.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float64x-static.h
test-float64x.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-float128-static.h
test-float128.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-floor-except-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-flt-eval-method.c Add C23 long_double_t, _FloatN_t 2025-11-04 17:12:00 +00:00
test-fp-ilogb-constants.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fp-llogb-constants.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fpucw-ieee-static.c
test-fpucw-ieee.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-fpucw-static.c
test-fpucw.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-ibm128-static.h
test-ibm128.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-iseqsig-excess-precision.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-iszero-excess-precision.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-ldouble-static.h
test-ldouble.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-cxx11.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-errno.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-exceptions.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-floatn.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-iscanonical.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-iseqsig.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-isinff.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-issignaling.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-iszero.cc Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-narrow.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-scalar.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-math-vector.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-matherr-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-matherr-3.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-matherr.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-misc.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-nan-const.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-nan-overflow.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-nan-payload.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-narrow-macros.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-nearbyint-except-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-nearbyint-except.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-powl.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-signgam-main.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08: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 Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-tgmath-int.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-tgmath-ret.c Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
test-tgmath.c Change fromfp functions to return floating types following C23 (bug 28327) 2025-11-13 00:04:21 +00:00
test-tgmath2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
test-trunc-except-2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tgmath.h Define C23 header version macros 2025-11-27 19:32:49 +00:00
tst-CMPLX.c
tst-CMPLX2.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
tst-definitions.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acos_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acos_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acosf_compat.c math: Remove the SVID error handling from acosf 2025-10-30 15:41:20 -03:00
w_acosh_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acosh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acoshf_compat.c math: Remove the SVID error handling from acoshf 2025-10-30 15:41:24 -03:00
w_acoshl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_acosl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_asin_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_asin_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_asinf.c math: Remove the SVID error handling from asinf 2025-10-30 15:41:22 -03:00
w_asinf_compat.c math: Remove the SVID error handling from asinf 2025-10-30 15:41:22 -03:00
w_asinl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atan2_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atan2_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atan2f_compat.c math: Remove the SVID error handling from atan2f 2025-11-05 07:15:52 -03:00
w_atan2l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atanh_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atanh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_atanhf_compat.c math: Remove the SVID error handling from atanhf 2025-10-30 15:41:26 -03:00
w_atanhl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_cosh_compat.c
w_cosh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_coshf_compat.c math: Remove the SVID error handling from coshf 2025-10-30 15:41:28 -03:00
w_coshl_compat.c
w_exp.c
w_exp2.c
w_exp2_compat.c
w_exp2_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp2f.c
w_exp2f_compat.c
w_exp2l_compat.c
w_exp10_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp10_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp10f.c
w_exp10f_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp10l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_exp_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_expf.c
w_expf_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_expl_compat.c
w_fmod_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_fmod_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_fmodf_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_fmodl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_hypot.c
w_hypot_compat.c
w_hypot_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_hypotf.c
w_hypotf_compat.c
w_hypotl_compat.c
w_ilogb_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j0_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j0_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j0f_compat.c math: Remove the SVID error handling wrapper from y0/j0 2025-10-30 15:41:31 -03:00
w_j0l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j1_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j1_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_j1f_compat.c math: Remove the SVID error handling wrapper from y1/j1 2025-10-30 15:41:33 -03:00
w_j1l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_jn_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_jn_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_jnf_compat.c math: Remove the SVID error handling wrapper from yn/jn 2025-10-30 15:41:35 -03:00
w_jnl_compat.c
w_lgamma.c
w_lgamma_compat.c
w_lgamma_compat2.c
w_lgamma_compatf.c
w_lgamma_compatl.c
w_lgamma_main.c
w_lgamma_r_compat.c
w_lgamma_r_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_lgamma_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_lgammaf.c
w_lgammaf_compat2.c math: Remove the SVID error handling from lgammaf/lgammaf_r 2025-11-05 09:27:07 -03:00
w_lgammaf_main.c math: Remove the SVID error handling from lgammaf/lgammaf_r 2025-11-05 09:27:07 -03:00
w_lgammaf_r_compat.c math: Remove the SVID error handling from lgammaf/lgammaf_r 2025-11-05 09:27:07 -03:00
w_lgammal.c
w_lgammal_compat2.c
w_lgammal_main.c
w_lgammal_r_compat.c
w_llogb_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log.c
w_log1p_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log2.c
w_log2_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log2_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log2f.c
w_log2f_compat.c various fixes detected with -Wdouble-promotion 2025-10-22 12:35:40 +02:00
w_log2l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log10_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log10_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log10f_compat.c math: Remove the SVID error handling from log10f 2025-10-30 15:41:17 -03:00
w_log10l_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_log_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_logf.c
w_logf_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_logl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_pow.c
w_pow_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_pow_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_powf.c
w_powf_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_powl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_remainder.c
w_remainder_compat.c math: Remove the SVID error handling from remainder 2025-11-04 04:14:01 -03:00
w_remainder_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_remainderf.c
w_remainderf_compat.c math: Remove the SVID error handling from remainderf 2025-11-04 04:14:01 -03:00
w_remainderl.c
w_remainderl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_scalb_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_scalb_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_scalbf_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_scalbl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_scalbln_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_sinh_compat.c
w_sinh_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_sinhf_compat.c math: Remove the SVID error handling from sinhf 2025-11-04 04:14:01 -03:00
w_sinhl_compat.c
w_sqrt_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_sqrt_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_sqrtf_compat.c math: Remove the SVID error handling wrapper from sqrt 2025-11-04 04:14:01 -03:00
w_sqrtl_compat.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_tgamma_compat.c
w_tgamma_template.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
w_tgammaf_compat.c math: Remove the SVID error handling from tgammaf 2025-11-05 10:19:37 -03:00
w_tgammal_compat.c

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


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

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

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

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

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

The math tests do not report up to 9 Units of Least Precision (ULP)
(13 for IBM long double format) difference between the obtained
result and the expected one as a regression.  The "gen-libm-test.py"
script looks for files named "libm-test-ulps" in the sysdep directories
to generate the "libm-test-ulps.h" file.

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 use "libm-test-ulps"?
====================================

A "libm-test-ulps" is required only to test for extra constraints in
the math tests.  The file contains lines for maximal errors of single
functions, like:

Function "yn":
float: 2
double: 6

It means that if the "yn" shows error larger than 2 ULP for float
or 6 ULP for double, the related test for "symbol" will fail.  It can
be useful to check for correctly rounded implementation, where the
expected ULP is 0.

The function is tested with default FE_TONEAREST rounding mode.  To
check with a different one, the function definition name should be
prepended with an underline plus the rounding mode 'downward' (FE_DOWNWARD),
'towardzero' (FE_TOWARDZERO), or 'upward' (FE_UPWARD).  For instance,

Function "yn_downward":
float: 3
double: 7

It means that 'yn' will be checked with FE_DOWNWARD rounding mode
and any error larger than 3 ULPs for float or 7 ULPs for double will be
reported as a regression.

The keywords are float, double, ldouble, and float128.

Also, multiple "libm-test-ulps" can be added, "gen-libm-test.py" will
merge the input in only one table.

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


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

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

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

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

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

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