Module Name: src Committed By: martin Date: Fri Oct 11 19:01:12 UTC 2024
Modified Files: src/distrib/sets/lists/debug [netbsd-10]: mi src/distrib/sets/lists/tests [netbsd-10]: mi src/include [netbsd-10]: math.h src/tests/lib/libm [netbsd-10]: Makefile Added Files: src/tests/lib/libm [netbsd-10]: t_errhandling.c Log Message: Pull up following revision(s) (requested by riastradh in ticket #950): include/math.h: revision 1.71 include/math.h: revision 1.72 distrib/sets/lists/debug/mi: revision 1.448 tests/lib/libm/t_errhandling.c: revision 1.1 tests/lib/libm/t_errhandling.c: revision 1.2 tests/lib/libm/t_errhandling.c: revision 1.3 distrib/sets/lists/tests/mi: revision 1.1337 tests/lib/libm/Makefile: revision 1.50 math.h: Define FP_FAST_FMA, FP_FAST_FMAF, FP_FAST_FMAL. These are not strictly necessary to define, really, so we haven't exactly been nonconformant. But they tell programs when they can enable fast paths by using the fma(3) family of functions. PR standards/56234: missing C99 frobs in <math.h> math.h: Add math_errhandling, MATH_ERRNO, MATH_ERREXCEPT. XXX Should maybe put a __math_errhandling in machine/math.h, but only VAX uses MATH_ERRNO and that's not likely to change any time soon, so this will serve for now with less churn. PR standards/56234: missing C99 frobs in <math.h> math.h: Add missing file for math_errhandling test. PR standards/56234: missing C99 frobs in <math.h> Add __TEST_FENV define to fix vax build libm/t_errhandling.c: Put __TEST_FENV before any #includes. This pattern avoids any potential problem with transitive inclusions of fenv.h. (No change here because nothing else this file includes transitively pulls in fenv.h, but being in the habit of doing it this way avoids a class of problems.) PR standards/56234: missing C99 frobs in <math.h> To generate a diff of this commit: cvs rdiff -u -r1.394.2.11 -r1.394.2.12 src/distrib/sets/lists/debug/mi cvs rdiff -u -r1.1238.2.13 -r1.1238.2.14 src/distrib/sets/lists/tests/mi cvs rdiff -u -r1.67 -r1.67.2.1 src/include/math.h cvs rdiff -u -r1.48.2.1 -r1.48.2.2 src/tests/lib/libm/Makefile cvs rdiff -u -r0 -r1.3.2.2 src/tests/lib/libm/t_errhandling.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.