diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-25 00:40:42 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-23 15:11:14 +0200 |
commit | f71baa1168ec3440f51e616c107a6615f5d752f8 (patch) | |
tree | d3b73d7516ccd1694a441ac714913b0f685f5a8c /arch/mips/math-emu/ieee754sp.c | |
parent | dfbf42b844a5f307bd66716da65f01be9107bc0b (diff) | |
download | lwn-f71baa1168ec3440f51e616c107a6615f5d752f8.tar.gz lwn-f71baa1168ec3440f51e616c107a6615f5d752f8.zip |
MIPS: math-emu: Inline ieee754sp_issnan and ieee754dp_issnan.
Shaves another 16 bytes off but more importantly avoids function calls.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/ieee754sp.c')
-rw-r--r-- | arch/mips/math-emu/ieee754sp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c index 495295cef3d4..a90837a8cd85 100644 --- a/arch/mips/math-emu/ieee754sp.c +++ b/arch/mips/math-emu/ieee754sp.c @@ -40,7 +40,7 @@ int ieee754sp_isnan(union ieee754sp x) return ieee754sp_class(x) >= IEEE754_CLASS_SNAN; } -int ieee754sp_issnan(union ieee754sp x) +static inline int ieee754sp_issnan(union ieee754sp x) { assert(ieee754sp_isnan(x)); return (SPMANT(x) & SP_MBIT(SP_FBITS-1)); |