summaryrefslogtreecommitdiffstats
path: root/arch/mips/math-emu/ieee754d.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-22 16:33:07 +0200
committerRalf Baechle <ralf@linux-mips.org>2014-05-23 15:11:13 +0200
commitb3a7ad2b0c48e046ff8a7934f3aa55fc06c54762 (patch)
treed1bbd22d16d03ba2e651fa60d08a81857327fabc /arch/mips/math-emu/ieee754d.c
parentMIPS: math-emu: Use SPSIGN() rather than DPSIGN() in ieee754sp_sub(). (diff)
downloadlinux-b3a7ad2b0c48e046ff8a7934f3aa55fc06c54762.tar.xz
linux-b3a7ad2b0c48e046ff8a7934f3aa55fc06c54762.zip
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.c30
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 @@
#include <linux/types.h>
#include <linux/printk.h>
#include "ieee754.h"
-
-#define DP_EBIAS 1023
-#define DP_EMIN (-1022)
-#define DP_EMAX 1023
-#define DP_FBITS 52
-
-#define SP_EBIAS 127
-#define SP_EMIN (-126)
-#define SP_EMAX 127
-#define SP_FBITS 23
-
-#define DP_MBIT(x) ((u64)1 << (x))
-#define DP_HIDDEN_BIT DP_MBIT(DP_FBITS)
-#define DP_SIGN_BIT DP_MBIT(63)
-
-
-#define SP_MBIT(x) ((u32)1 << (x))
-#define SP_HIDDEN_BIT SP_MBIT(SP_FBITS)
-#define SP_SIGN_BIT SP_MBIT(31)
-
-
-#define SPSIGN(sp) (sp.parts.sign)
-#define SPBEXP(sp) (sp.parts.bexp)
-#define SPMANT(sp) (sp.parts.mant)
-
-#define DPSIGN(dp) (dp.parts.sign)
-#define DPBEXP(dp) (dp.parts.bexp)
-#define DPMANT(dp) (dp.parts.mant)
+#include "ieee754sp.h"
+#include "ieee754dp.h"
union ieee754dp ieee754dp_dump(char *m, union ieee754dp x)
{