Commit e06b530b authored by Maciej W. Rozycki's avatar Maciej W. Rozycki Committed by Ralf Baechle

MIPS: math-emu: Make NaN classifiers static

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: default avatarMaciej W. Rozycki <macro@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/9693/Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent b0c2f8fb
...@@ -30,7 +30,7 @@ int ieee754dp_class(union ieee754dp x) ...@@ -30,7 +30,7 @@ int ieee754dp_class(union ieee754dp x)
return xc; return xc;
} }
int ieee754dp_isnan(union ieee754dp x) static inline int ieee754dp_isnan(union ieee754dp x)
{ {
return ieee754_class_nan(ieee754dp_class(x)); return ieee754_class_nan(ieee754dp_class(x));
} }
......
...@@ -77,6 +77,5 @@ static inline union ieee754dp builddp(int s, int bx, u64 m) ...@@ -77,6 +77,5 @@ static inline union ieee754dp builddp(int s, int bx, u64 m)
return r; return r;
} }
extern int ieee754dp_isnan(union ieee754dp);
extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp); extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp);
extern union ieee754dp ieee754dp_format(int, int, u64); extern union ieee754dp ieee754dp_format(int, int, u64);
...@@ -30,7 +30,7 @@ int ieee754sp_class(union ieee754sp x) ...@@ -30,7 +30,7 @@ int ieee754sp_class(union ieee754sp x)
return xc; return xc;
} }
int ieee754sp_isnan(union ieee754sp x) static inline int ieee754sp_isnan(union ieee754sp x)
{ {
return ieee754_class_nan(ieee754sp_class(x)); return ieee754_class_nan(ieee754sp_class(x));
} }
......
...@@ -82,6 +82,5 @@ static inline union ieee754sp buildsp(int s, int bx, unsigned m) ...@@ -82,6 +82,5 @@ static inline union ieee754sp buildsp(int s, int bx, unsigned m)
return r; return r;
} }
extern int ieee754sp_isnan(union ieee754sp);
extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp); extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp);
extern union ieee754sp ieee754sp_format(int, int, unsigned); extern union ieee754sp ieee754sp_format(int, int, unsigned);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment