summaryrefslogtreecommitdiff
path: root/src/fenv/feupdateenv.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/feupdateenv.c
parentb2a8c069960b333c3cded9e0d68d9addee67f6fd (diff)
update standard and safety checks
Diffstat (limited to 'src/fenv/feupdateenv.c')
-rw-r--r--src/fenv/feupdateenv.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/src/fenv/feupdateenv.c b/src/fenv/feupdateenv.c
index 638509a1..805e4b92 100644
--- a/src/fenv/feupdateenv.c
+++ b/src/fenv/feupdateenv.c
@@ -1,25 +1,22 @@
-#if 0
-
#include <fenv.h>
+#include "_safety.h"
int feupdateenv(const fenv_t *envp)
{
+ SIGNAL_SAFE(0);
(void)envp;
return 0;
}
-/*d */
-/* The feupdateenv function saves the currently raised floating-point exceptions in its */
-/* automatic storage, installs the floating-point environment represented by the object */
-/* pointed to by envp, and then raises the saved floating-point exceptions. The argument */
-/* envp shall point to an object set by a call to feholdexcept or fegetenv, or equal a */
-/* floating-point environment macro. */
-/* d*/
+/*
+The feupdateenv function saves the currently raised floating-point exceptions in its
+automatic storage, installs the floating-point environment represented by the object
+pointed to by envp, and then raises the saved floating-point exceptions. The argument
+envp shall point to an object set by a call to feholdexcept or fegetenv, or equal a
+floating-point environment macro.
+d*/
/*
STDC(199901)
LINK(m)
*/
-
-
-#endif