about summary refs log tree commit diff
path: root/math/fenv.h
diff options
context:
space:
mode:
Diffstat (limited to 'math/fenv.h')
-rw-r--r--math/fenv.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/math/fenv.h b/math/fenv.h
index 845b5e637f..bda3ee916f 100644
--- a/math/fenv.h
+++ b/math/fenv.h
@@ -115,6 +115,22 @@ extern int feupdateenv (__const fenv_t *__envp) __THROW;
 # include <bits/fenvinline.h>
 #endif
 
+#ifdef __USE_GNU
+
+/* Enable individual exceptions.  Will not enable more exceptions than
+   EXCEPTS specifies.  Returns the previous enabled exceptions if all
+   exceptions are successfull set, otherwise returns -1.  */
+extern int feenableexcept (int __excepts) __THROW;
+
+/* Disable individual exceptions.  Will not disable more exceptions than
+   EXCEPTS specifies.  Returns the previous enabled exceptions if all
+   exceptions are successfull disabled, otherwise returns -1.  */
+extern int fedisableexcept (int __excepts) __THROW;
+
+/* Return enabled exceptions.  */
+extern int fegetexcept (void) __THROW;
+#endif
+
 __END_DECLS
 
 #endif /* fenv.h */