diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-22 18:52:01 +0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 17:11:13 +0400 |
commit | 3a33db2321759975dba3e6156459c3eeb3f6c1e2 (patch) | |
tree | 43d693b331d9d8b2bb29bb4809b25bece7af60d3 /arch/mips/math-emu/ieee754sp.h | |
parent | b3a7ad2b0c48e046ff8a7934f3aa55fc06c54762 (diff) | |
download | linux-3a33db2321759975dba3e6156459c3eeb3f6c1e2.tar.xz |
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/ieee754sp.h')
-rw-r--r-- | arch/mips/math-emu/ieee754sp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/mips/math-emu/ieee754sp.h b/arch/mips/math-emu/ieee754sp.h index a28ced853f27..45a2de38eb4b 100644 --- a/arch/mips/math-emu/ieee754sp.h +++ b/arch/mips/math-emu/ieee754sp.h @@ -44,6 +44,11 @@ #define SPBEXP(sp) (sp.parts.bexp) #define SPMANT(sp) (sp.parts.mant) +static inline int ieee754sp_finite(union ieee754sp x) +{ + return SPBEXP(x) != SP_EMAX + 1 + SP_EBIAS; +} + /* 3bit extended single precision sticky right shift */ #define SPXSRSXn(rs) \ (xe += rs, \ |