summaryrefslogtreecommitdiff
path: root/include/fenv.h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-03-31 19:32:48 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-03-31 19:36:42 +0200
commit618001c26e224fd4aff72b8e5530498acbad747a (patch)
treef42e77d01daa295e6aae14a6f9dc3945345c8055 /include/fenv.h
parentd183581a723297f86a0ce195b7b3fe3f2fabd95d (diff)
aarch64: add fenv support from glibc
Diffstat (limited to 'include/fenv.h')
-rw-r--r--include/fenv.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/fenv.h b/include/fenv.h
index 9ba384756..4b532c573 100644
--- a/include/fenv.h
+++ b/include/fenv.h
@@ -23,6 +23,7 @@
#define _FENV_H 1
#include <features.h>
+#include <stdbool.h>
/* Get the architecture dependend definitions. The following definitions
are expected to be done:
@@ -130,6 +131,15 @@ extern int fedisableexcept (int __excepts) __THROW;
extern int fegetexcept (void) __THROW;
#endif
+/* Rounding mode context. This allows functions to set/restore rounding mode
+ only when the desired rounding mode is different from the current rounding
+ mode. */
+struct rm_ctx
+{
+ fenv_t env;
+ bool updated_status;
+};
+
__END_DECLS
#endif /* fenv.h */