aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2014-04-22 11:11:01 -0400
committerRalf Baechle <ralf@linux-mips.org>2014-05-23 09:11:13 -0400
commit1bc3320d954183031bd3dc1dac36858c3c96e0b3 (patch)
tree1098efba360217a18c5799b578933a714f736987 /arch
parent3a33db2321759975dba3e6156459c3eeb3f6c1e2 (diff)
MIPS: math-emu: Remove unused ieee754sp_bestnan() and ieee754dp_bestnan().
Both are unused since lmo commit fdffbafbb38723618626c70ffdc6ff9175cdffa2 [Lots of FPU bug fixes from Kjeld Borch Egevang.] Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/mips/math-emu/ieee754dp.c12
-rw-r--r--arch/mips/math-emu/ieee754dp.h1
-rw-r--r--arch/mips/math-emu/ieee754sp.c12
-rw-r--r--arch/mips/math-emu/ieee754sp.h1
4 files changed, 0 insertions, 26 deletions
diff --git a/arch/mips/math-emu/ieee754dp.c b/arch/mips/math-emu/ieee754dp.c
index 9be2d7836f81..50b1fbf753f4 100644
--- a/arch/mips/math-emu/ieee754dp.c
+++ b/arch/mips/math-emu/ieee754dp.c
@@ -89,18 +89,6 @@ union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp r, const char *op, ...)
89 return ax.rv.dp; 89 return ax.rv.dp;
90} 90}
91 91
92union ieee754dp ieee754dp_bestnan(union ieee754dp x, union ieee754dp y)
93{
94 assert(ieee754dp_isnan(x));
95 assert(ieee754dp_isnan(y));
96
97 if (DPMANT(x) > DPMANT(y))
98 return x;
99 else
100 return y;
101}
102
103
104static u64 get_rounding(int sn, u64 xm) 92static u64 get_rounding(int sn, u64 xm)
105{ 93{
106 /* inexact must round of 3 bits 94 /* inexact must round of 3 bits
diff --git a/arch/mips/math-emu/ieee754dp.h b/arch/mips/math-emu/ieee754dp.h
index c755e1fc855f..830a0d55775b 100644
--- a/arch/mips/math-emu/ieee754dp.h
+++ b/arch/mips/math-emu/ieee754dp.h
@@ -86,7 +86,6 @@ extern int __cold ieee754si_xcpt(int, const char *, ...);
86extern s64 __cold ieee754di_xcpt(s64, const char *, ...); 86extern s64 __cold ieee754di_xcpt(s64, const char *, ...);
87extern union ieee754dp __cold ieee754dp_xcpt(union ieee754dp, const char *, ...); 87extern union ieee754dp __cold ieee754dp_xcpt(union ieee754dp, const char *, ...);
88extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp, const char *, ...); 88extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp, const char *, ...);
89extern union ieee754dp ieee754dp_bestnan(union ieee754dp, union ieee754dp);
90extern union ieee754dp ieee754dp_format(int, int, u64); 89extern union ieee754dp ieee754dp_format(int, int, u64);
91 90
92 91
diff --git a/arch/mips/math-emu/ieee754sp.c b/arch/mips/math-emu/ieee754sp.c
index 5b435ec8ae25..495295cef3d4 100644
--- a/arch/mips/math-emu/ieee754sp.c
+++ b/arch/mips/math-emu/ieee754sp.c
@@ -90,18 +90,6 @@ union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp r, const char *op, ...)
90 return ax.rv.sp; 90 return ax.rv.sp;
91} 91}
92 92
93union ieee754sp ieee754sp_bestnan(union ieee754sp x, union ieee754sp y)
94{
95 assert(ieee754sp_isnan(x));
96 assert(ieee754sp_isnan(y));
97
98 if (SPMANT(x) > SPMANT(y))
99 return x;
100 else
101 return y;
102}
103
104
105static unsigned get_rounding(int sn, unsigned xm) 93static unsigned get_rounding(int sn, unsigned xm)
106{ 94{
107 /* inexact must round of 3 bits 95 /* inexact must round of 3 bits
diff --git a/arch/mips/math-emu/ieee754sp.h b/arch/mips/math-emu/ieee754sp.h
index 45a2de38eb4b..95112052db6d 100644
--- a/arch/mips/math-emu/ieee754sp.h
+++ b/arch/mips/math-emu/ieee754sp.h
@@ -92,7 +92,6 @@ extern int __cold ieee754si_xcpt(int, const char *, ...);
92extern s64 __cold ieee754di_xcpt(s64, const char *, ...); 92extern s64 __cold ieee754di_xcpt(s64, const char *, ...);
93extern union ieee754sp __cold ieee754sp_xcpt(union ieee754sp, const char *, ...); 93extern union ieee754sp __cold ieee754sp_xcpt(union ieee754sp, const char *, ...);
94extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp, const char *, ...); 94extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp, const char *, ...);
95extern union ieee754sp ieee754sp_bestnan(union ieee754sp, union ieee754sp);
96extern union ieee754sp ieee754sp_format(int, int, unsigned); 95extern union ieee754sp ieee754sp_format(int, int, unsigned);
97 96
98 97