summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2017-12-03 21:12:34 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2017-12-03 21:12:34 +0100
commitedce88cfef2f2a62647c2ab9536ca29694fab292 (patch)
tree5cfc13c44a91bb8b983ee137de38e136289db81e /libc/sysdeps
parentc69db851309995c525b3993a10dc13dabdeb7b33 (diff)
x86_64: add fenv support from glibc
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/x86_64/bits/fenv.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/x86_64/bits/fenv.h b/libc/sysdeps/linux/x86_64/bits/fenv.h
index 8c720e675..8e38c16ec 100644
--- a/libc/sysdeps/linux/x86_64/bits/fenv.h
+++ b/libc/sysdeps/linux/x86_64/bits/fenv.h
@@ -94,3 +94,15 @@ fenv_t;
/* Floating-point environment where none of the exception is masked. */
# define FE_NOMASK_ENV ((const fenv_t *) -2)
#endif
+
+/* Type representing floating-point control modes. */
+typedef struct
+ {
+ unsigned short int __control_word;
+ unsigned short int __glibc_reserved;
+ unsigned int __mxcsr;
+ }
+femode_t;
+
+/* Default floating-point control modes. */
+# define FE_DFL_MODE ((const femode_t *) -1L)