summaryrefslogtreecommitdiff
path: root/src/fenv/fetestexcept.c
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-01-30 13:09:57 -0500
committerJakob Kaivo <jkk@ung.org>2024-01-30 13:09:57 -0500
commit46e4b9b12ec7d170691c2cb05970d6537633fa71 (patch)
tree8ffccf27d6b67825a0067cc3a3b1aa61d8a310a5 /src/fenv/fetestexcept.c
parentb2a8c069960b333c3cded9e0d68d9addee67f6fd (diff)
update standard and safety checks
Diffstat (limited to 'src/fenv/fetestexcept.c')
-rw-r--r--src/fenv/fetestexcept.c15
1 files changed, 6 insertions, 9 deletions
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 <fenv.h>
+#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