OSDN Git Service

MIPS: math-emu: Make NaN classifiers static
authorMaciej W. Rozycki <macro@linux-mips.org>
Fri, 3 Apr 2015 22:25:57 +0000 (23:25 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 7 Apr 2015 23:09:47 +0000 (01:09 +0200)
The `ieee754sp_isnan' and `ieee754dp_isnan' NaN classifiers are now no
longer externally referred, remove their header prototypes and make them
local to the two only respective places still making use of them.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9693/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/math-emu/ieee754dp.c
arch/mips/math-emu/ieee754dp.h
arch/mips/math-emu/ieee754sp.c
arch/mips/math-emu/ieee754sp.h

index 921535b..522d843 100644 (file)
@@ -30,7 +30,7 @@ int ieee754dp_class(union ieee754dp x)
        return xc;
 }
 
-int ieee754dp_isnan(union ieee754dp x)
+static inline int ieee754dp_isnan(union ieee754dp x)
 {
        return ieee754_class_nan(ieee754dp_class(x));
 }
index 61fd6fd..e2babd9 100644 (file)
@@ -77,6 +77,5 @@ static inline union ieee754dp builddp(int s, int bx, u64 m)
        return r;
 }
 
-extern int ieee754dp_isnan(union ieee754dp);
 extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp);
 extern union ieee754dp ieee754dp_format(int, int, u64);
index e48aaab..ca8e35e 100644 (file)
@@ -30,7 +30,7 @@ int ieee754sp_class(union ieee754sp x)
        return xc;
 }
 
-int ieee754sp_isnan(union ieee754sp x)
+static inline int ieee754sp_isnan(union ieee754sp x)
 {
        return ieee754_class_nan(ieee754sp_class(x));
 }
index ad268e3..374a3f0 100644 (file)
@@ -82,6 +82,5 @@ static inline union ieee754sp buildsp(int s, int bx, unsigned m)
        return r;
 }
 
-extern int ieee754sp_isnan(union ieee754sp);
 extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp);
 extern union ieee754sp ieee754sp_format(int, int, unsigned);