diff options
Diffstat (limited to 'arch/x86/math-emu/exception.h')
-rw-r--r-- | arch/x86/math-emu/exception.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/x86/math-emu/exception.h b/arch/x86/math-emu/exception.h index b463f21a811e..67f43a4683d5 100644 --- a/arch/x86/math-emu/exception.h +++ b/arch/x86/math-emu/exception.h | |||
@@ -9,7 +9,6 @@ | |||
9 | #ifndef _EXCEPTION_H_ | 9 | #ifndef _EXCEPTION_H_ |
10 | #define _EXCEPTION_H_ | 10 | #define _EXCEPTION_H_ |
11 | 11 | ||
12 | |||
13 | #ifdef __ASSEMBLY__ | 12 | #ifdef __ASSEMBLY__ |
14 | #define Const_(x) $##x | 13 | #define Const_(x) $##x |
15 | #else | 14 | #else |
@@ -20,8 +19,8 @@ | |||
20 | #include "fpu_emu.h" | 19 | #include "fpu_emu.h" |
21 | #endif /* SW_C1 */ | 20 | #endif /* SW_C1 */ |
22 | 21 | ||
23 | #define FPU_BUSY Const_(0x8000) /* FPU busy bit (8087 compatibility) */ | 22 | #define FPU_BUSY Const_(0x8000) /* FPU busy bit (8087 compatibility) */ |
24 | #define EX_ErrorSummary Const_(0x0080) /* Error summary status */ | 23 | #define EX_ErrorSummary Const_(0x0080) /* Error summary status */ |
25 | /* Special exceptions: */ | 24 | /* Special exceptions: */ |
26 | #define EX_INTERNAL Const_(0x8000) /* Internal error in wm-FPU-emu */ | 25 | #define EX_INTERNAL Const_(0x8000) /* Internal error in wm-FPU-emu */ |
27 | #define EX_StackOver Const_(0x0041|SW_C1) /* stack overflow */ | 26 | #define EX_StackOver Const_(0x0041|SW_C1) /* stack overflow */ |
@@ -34,11 +33,9 @@ | |||
34 | #define EX_Denormal Const_(0x0002) /* denormalized operand */ | 33 | #define EX_Denormal Const_(0x0002) /* denormalized operand */ |
35 | #define EX_Invalid Const_(0x0001) /* invalid operation */ | 34 | #define EX_Invalid Const_(0x0001) /* invalid operation */ |
36 | 35 | ||
37 | |||
38 | #define PRECISION_LOST_UP Const_((EX_Precision | SW_C1)) | 36 | #define PRECISION_LOST_UP Const_((EX_Precision | SW_C1)) |
39 | #define PRECISION_LOST_DOWN Const_(EX_Precision) | 37 | #define PRECISION_LOST_DOWN Const_(EX_Precision) |
40 | 38 | ||
41 | |||
42 | #ifndef __ASSEMBLY__ | 39 | #ifndef __ASSEMBLY__ |
43 | 40 | ||
44 | #ifdef DEBUG | 41 | #ifdef DEBUG |
@@ -48,6 +45,6 @@ | |||
48 | #define EXCEPTION(x) FPU_exception(x) | 45 | #define EXCEPTION(x) FPU_exception(x) |
49 | #endif | 46 | #endif |
50 | 47 | ||
51 | #endif /* __ASSEMBLY__ */ | 48 | #endif /* __ASSEMBLY__ */ |
52 | 49 | ||
53 | #endif /* _EXCEPTION_H_ */ | 50 | #endif /* _EXCEPTION_H_ */ |