diff options
Diffstat (limited to 'arch/mips/math-emu/ieee754int.h')
-rw-r--r-- | arch/mips/math-emu/ieee754int.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h index 39c40d275825..543e8f0b5a97 100644 --- a/arch/mips/math-emu/ieee754int.h +++ b/arch/mips/math-emu/ieee754int.h | |||
@@ -31,19 +31,19 @@ | |||
31 | #define DP_EBIAS 1023 | 31 | #define DP_EBIAS 1023 |
32 | #define DP_EMIN (-1022) | 32 | #define DP_EMIN (-1022) |
33 | #define DP_EMAX 1023 | 33 | #define DP_EMAX 1023 |
34 | #define DP_MBITS 52 | 34 | #define DP_FBITS 52 |
35 | 35 | ||
36 | #define SP_EBIAS 127 | 36 | #define SP_EBIAS 127 |
37 | #define SP_EMIN (-126) | 37 | #define SP_EMIN (-126) |
38 | #define SP_EMAX 127 | 38 | #define SP_EMAX 127 |
39 | #define SP_MBITS 23 | 39 | #define SP_FBITS 23 |
40 | 40 | ||
41 | #define DP_MBIT(x) ((u64)1 << (x)) | 41 | #define DP_MBIT(x) ((u64)1 << (x)) |
42 | #define DP_HIDDEN_BIT DP_MBIT(DP_MBITS) | 42 | #define DP_HIDDEN_BIT DP_MBIT(DP_FBITS) |
43 | #define DP_SIGN_BIT DP_MBIT(63) | 43 | #define DP_SIGN_BIT DP_MBIT(63) |
44 | 44 | ||
45 | #define SP_MBIT(x) ((u32)1 << (x)) | 45 | #define SP_MBIT(x) ((u32)1 << (x)) |
46 | #define SP_HIDDEN_BIT SP_MBIT(SP_MBITS) | 46 | #define SP_HIDDEN_BIT SP_MBIT(SP_FBITS) |
47 | #define SP_SIGN_BIT SP_MBIT(31) | 47 | #define SP_SIGN_BIT SP_MBIT(31) |
48 | 48 | ||
49 | 49 | ||
@@ -94,7 +94,7 @@ static inline int ieee754_tstx(void) | |||
94 | if (ve == SP_EMAX+1+SP_EBIAS) { \ | 94 | if (ve == SP_EMAX+1+SP_EBIAS) { \ |
95 | if (vm == 0) \ | 95 | if (vm == 0) \ |
96 | vc = IEEE754_CLASS_INF; \ | 96 | vc = IEEE754_CLASS_INF; \ |
97 | else if (vm & SP_MBIT(SP_MBITS-1)) \ | 97 | else if (vm & SP_MBIT(SP_FBITS-1)) \ |
98 | vc = IEEE754_CLASS_SNAN; \ | 98 | vc = IEEE754_CLASS_SNAN; \ |
99 | else \ | 99 | else \ |
100 | vc = IEEE754_CLASS_QNAN; \ | 100 | vc = IEEE754_CLASS_QNAN; \ |
@@ -128,7 +128,7 @@ static inline int ieee754_tstx(void) | |||
128 | if (ve == DP_EMAX+1+DP_EBIAS) { \ | 128 | if (ve == DP_EMAX+1+DP_EBIAS) { \ |
129 | if (vm == 0) \ | 129 | if (vm == 0) \ |
130 | vc = IEEE754_CLASS_INF; \ | 130 | vc = IEEE754_CLASS_INF; \ |
131 | else if (vm & DP_MBIT(DP_MBITS-1)) \ | 131 | else if (vm & DP_MBIT(DP_FBITS-1)) \ |
132 | vc = IEEE754_CLASS_SNAN; \ | 132 | vc = IEEE754_CLASS_SNAN; \ |
133 | else \ | 133 | else \ |
134 | vc = IEEE754_CLASS_QNAN; \ | 134 | vc = IEEE754_CLASS_QNAN; \ |