MIPS: math-emu: Eleminate duplicate definitions of identical macros.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
Ralf Baechle
2014-04-22 16:33:07 +02:00
parent 3e160aad0f
commit b3a7ad2b0c
8 changed files with 33 additions and 63 deletions

View File

@@ -30,6 +30,20 @@
#define assert(expr) ((void)0)
#define SP_EBIAS 127
#define SP_EMIN (-126)
#define SP_EMAX 127
#define SP_FBITS 23
#define SP_MBITS 23
#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)
/* 3bit extended single precision sticky right shift */
#define SPXSRSXn(rs) \
(xe += rs, \