diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-22 16:52:01 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 15:11:13 +0200 |
commit | 3a33db2321759975dba3e6156459c3eeb3f6c1e2 (patch) | |
tree | 43d693b331d9d8b2bb29bb4809b25bece7af60d3 /arch/mips/math-emu/ieee754dp.h | |
parent | MIPS: math-emu: Eleminate duplicate definitions of identical macros. (diff) | |
download | linux-3a33db2321759975dba3e6156459c3eeb3f6c1e2.tar.xz linux-3a33db2321759975dba3e6156459c3eeb3f6c1e2.zip |
MIPS: math-emu: Inline ieee754dp_finite and ieee754dp_finite().
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754dp.h')
-rw-r--r-- | arch/mips/math-emu/ieee754dp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/math-emu/ieee754dp.h b/arch/mips/math-emu/ieee754dp.h index 216bab308dc5..c755e1fc855f 100644 --- a/arch/mips/math-emu/ieee754dp.h +++ b/arch/mips/math-emu/ieee754dp.h @@ -44,6 +44,11 @@ #define DPBEXP(dp) (dp.parts.bexp) #define DPMANT(dp) (dp.parts.mant) +static inline int ieee754dp_finite(union ieee754dp x) +{ + return DPBEXP(x) != DP_EMAX + 1 + DP_EBIAS; +} + /* 3bit extended double precision sticky right shift */ #define XDPSRS(v,rs) \ ((rs > (DP_FBITS+3))?1:((v) >> (rs)) | ((v) << (64-(rs)) != 0)) |