Add definitions for the exception bits in the status word
authortholo <tholo@openbsd.org>
Sat, 8 Feb 1997 20:21:33 +0000 (20:21 +0000)
committertholo <tholo@openbsd.org>
Sat, 8 Feb 1997 20:21:33 +0000 (20:21 +0000)
sys/arch/i386/include/npx.h

index 5d23bcf..4938e1d 100644 (file)
@@ -58,6 +58,13 @@ struct       env87 {
        long    en_fos;         /* floating operand segment selector */
 };
 
+#define EN_SW_IE       0x0001  /* invalid operation */
+#define EN_SW_DE       0x0002  /* denormal */
+#define EN_SW_ZE       0x0004  /* divide by zero */
+#define EN_SW_OE       0x0008  /* overflow */
+#define EN_SW_UE       0x0010  /* underflow */
+#define EN_SW_PE       0x0020  /* loss of precision */
+
 /* Contents of each floating point accumulator */
 struct fpacc87 {
 #ifdef dontdef /* too unportable */