summaryrefslogtreecommitdiff
path: root/arch/mips/math-emu/ieee754dp.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-25 02:40:42 +0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-23 17:11:14 +0400
commitf71baa1168ec3440f51e616c107a6615f5d752f8 (patch)
treed3b73d7516ccd1694a441ac714913b0f685f5a8c /arch/mips/math-emu/ieee754dp.c
parentdfbf42b844a5f307bd66716da65f01be9107bc0b (diff)
downloadlinux-f71baa1168ec3440f51e616c107a6615f5d752f8.tar.xz
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/ieee754dp.c')
-rw-r--r--arch/mips/math-emu/ieee754dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c
index 50b1fbf753f4..d9ceb6bd3536 100644
--- a/arch/mips/math-emu/ieee754dp.c
+++ b/arch/mips/math-emu/ieee754dp.c
@@ -40,7 +40,7 @@ int ieee754dp_isnan(union ieee754dp x)
return ieee754dp_class(x) >= IEEE754_CLASS_SNAN;
}
-int ieee754dp_issnan(union ieee754dp x)
+static inline int ieee754dp_issnan(union ieee754dp x)
{
assert(ieee754dp_isnan(x));
return ((DPMANT(x) & DP_MBIT(DP_FBITS-1)) == DP_MBIT(DP_FBITS-1));