diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-22 10:33:07 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 09:11:13 -0400 |
commit | b3a7ad2b0c48e046ff8a7934f3aa55fc06c54762 (patch) | |
tree | d1bbd22d16d03ba2e651fa60d08a81857327fabc /arch/mips/math-emu/ieee754d.c | |
parent | 3e160aad0f23cc80743dd44810269c9667e0eb0e (diff) |
MIPS: math-emu: Eleminate duplicate definitions of identical macros.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754d.c')
-rw-r--r-- | arch/mips/math-emu/ieee754d.c | 30 |
1 files changed, 2 insertions, 28 deletions
diff --git a/arch/mips/math-emu/ieee754d.c b/arch/mips/math-emu/ieee754d.c index 6d4dc36a6fdc..ebe34e970b61 100644 --- a/arch/mips/math-emu/ieee754d.c +++ b/arch/mips/math-emu/ieee754d.c | |||
@@ -28,34 +28,8 @@ | |||
28 | #include <linux/types.h> | 28 | #include <linux/types.h> |
29 | #include <linux/printk.h> | 29 | #include <linux/printk.h> |
30 | #include "ieee754.h" | 30 | #include "ieee754.h" |
31 | 31 | #include "ieee754sp.h" | |
32 | #define DP_EBIAS 1023 | 32 | #include "ieee754dp.h" |
33 | #define DP_EMIN (-1022) | ||
34 | #define DP_EMAX 1023 | ||
35 | #define DP_FBITS 52 | ||
36 | |||
37 | #define SP_EBIAS 127 | ||
38 | #define SP_EMIN (-126) | ||
39 | #define SP_EMAX 127 | ||
40 | #define SP_FBITS 23 | ||
41 | |||
42 | #define DP_MBIT(x) ((u64)1 << (x)) | ||
43 | #define DP_HIDDEN_BIT DP_MBIT(DP_FBITS) | ||
44 | #define DP_SIGN_BIT DP_MBIT(63) | ||
45 | |||
46 | |||
47 | #define SP_MBIT(x) ((u32)1 << (x)) | ||
48 | #define SP_HIDDEN_BIT SP_MBIT(SP_FBITS) | ||
49 | #define SP_SIGN_BIT SP_MBIT(31) | ||
50 | |||
51 | |||
52 | #define SPSIGN(sp) (sp.parts.sign) | ||
53 | #define SPBEXP(sp) (sp.parts.bexp) | ||
54 | #define SPMANT(sp) (sp.parts.mant) | ||
55 | |||
56 | #define DPSIGN(dp) (dp.parts.sign) | ||
57 | #define DPBEXP(dp) (dp.parts.bexp) | ||
58 | #define DPMANT(dp) (dp.parts.mant) | ||
59 | 33 | ||
60 | union ieee754dp ieee754dp_dump(char *m, union ieee754dp x) | 34 | union ieee754dp ieee754dp_dump(char *m, union ieee754dp x) |
61 | { | 35 | { |