From 46e4b9b12ec7d170691c2cb05970d6537633fa71 Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Tue, 30 Jan 2024 13:09:57 -0500 Subject: update standard and safety checks --- src/fenv/fetestexcept.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/fenv/fetestexcept.c') diff --git a/src/fenv/fetestexcept.c b/src/fenv/fetestexcept.c index 6fb5374b..8c4b4bde 100644 --- a/src/fenv/fetestexcept.c +++ b/src/fenv/fetestexcept.c @@ -1,23 +1,23 @@ -#if 0 - #include +#include "_safety.h" int fetestexcept(int excepts) { + SIGNAL_SAFE(0); return excepts; } -/*d +/* The fetestexcept function determines which of a specified subset of the floating- point exception flags are currently set. The excepts argument specifies the floating- point status flags to be queried. 179) -d*/ +*/ -/*r +/* The fetestexcept function returns the value of the bitwise OR of the floating-point exception macros corresponding to the currently set floating-point exceptions included in excepts. -r*/ +*/ /* example #pragma STDC FENV_ACCESS ON @@ -33,6 +33,3 @@ r*/ STDC(199901) LINK(m) */ - - -#endif -- cgit v1.2.1