summaryrefslogtreecommitdiffhomepage
path: root/arch/nt32/bits/fenv.h
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-04-05 16:48:11 -0400
committermidipix <writeonce@midipix.org>2015-04-05 16:48:11 -0400
commit20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f (patch)
treec8461f68b5f3bf375e31660eb14fbb7777e2f822 /arch/nt32/bits/fenv.h
parent2a9a46e0b0a1f7e0e21b1152aa2529d94c57db35 (diff)
downloadmmglue-20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f.tar.bz2
mmglue-20a5ca45ef2f5716e8f2dea42c7e8a6b3367619f.tar.xz
nt32/bits: initial commit.
these header files should be kept in sync with their linux x86_64 counterparts, with three minor exceptions: 1) page size (65536) 2) jmp_buf (8 pointers) 3) TIOCGPTN and TIOCSPTLCK (normal sequence) signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'arch/nt32/bits/fenv.h')
-rw-r--r--arch/nt32/bits/fenv.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/arch/nt32/bits/fenv.h b/arch/nt32/bits/fenv.h
new file mode 100644
index 0000000..4430009
--- /dev/null
+++ b/arch/nt32/bits/fenv.h
@@ -0,0 +1,33 @@
+#define FE_INVALID 1
+#define __FE_DENORM 2
+#define FE_DIVBYZERO 4
+#define FE_OVERFLOW 8
+#define FE_UNDERFLOW 16
+#define FE_INEXACT 32
+
+#define FE_ALL_EXCEPT 63
+
+#define FE_TONEAREST 0
+#define FE_DOWNWARD 0x400
+#define FE_UPWARD 0x800
+#define FE_TOWARDZERO 0xc00
+
+typedef unsigned short fexcept_t;
+
+typedef struct {
+ unsigned short __control_word;
+ unsigned short __unused1;
+ unsigned short __status_word;
+ unsigned short __unused2;
+ unsigned short __tags;
+ unsigned short __unused3;
+ unsigned int __eip;
+ unsigned short __cs_selector;
+ unsigned int __opcode:11;
+ unsigned int __unused4:5;
+ unsigned int __data_offset;
+ unsigned short __data_selector;
+ unsigned short __unused5;
+} fenv_t;
+
+#define FE_DFL_ENV ((const fenv_t *) -1)