From 51a9ac9795c6500680bae2465e843e887e17e8d4 Mon Sep 17 00:00:00 2001 From: tholo Date: Sat, 8 Feb 1997 20:21:33 +0000 Subject: [PATCH] Add definitions for the exception bits in the status word --- sys/arch/i386/include/npx.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/sys/arch/i386/include/npx.h b/sys/arch/i386/include/npx.h index 5d23bcf7d0d..4938e1d7da1 100644 --- a/sys/arch/i386/include/npx.h +++ b/sys/arch/i386/include/npx.h @@ -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 */ -- 2.20.1