Skip to content

Commit

Permalink
MIPS: math-emu: Remove unused ieee754sp_bestnan() and ieee754dp_bestn…
Browse files Browse the repository at this point in the history
…an().

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>
  • Loading branch information
Ralf Baechle committed May 23, 2014
1 parent 3a33db2 commit 1bc3320
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 26 deletions.
12 changes: 0 additions & 12 deletions arch/mips/math-emu/ieee754dp.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,6 @@ union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp r, const char *op, ...)
return ax.rv.dp;
}

union ieee754dp ieee754dp_bestnan(union ieee754dp x, union ieee754dp y)
{
assert(ieee754dp_isnan(x));
assert(ieee754dp_isnan(y));

if (DPMANT(x) > DPMANT(y))
return x;
else
return y;
}


static u64 get_rounding(int sn, u64 xm)
{
/* inexact must round of 3 bits
Expand Down
1 change: 0 additions & 1 deletion arch/mips/math-emu/ieee754dp.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ extern int __cold ieee754si_xcpt(int, const char *, ...);
extern s64 __cold ieee754di_xcpt(s64, const char *, ...);
extern union ieee754dp __cold ieee754dp_xcpt(union ieee754dp, const char *, ...);
extern union ieee754dp __cold ieee754dp_nanxcpt(union ieee754dp, const char *, ...);
extern union ieee754dp ieee754dp_bestnan(union ieee754dp, union ieee754dp);
extern union ieee754dp ieee754dp_format(int, int, u64);


Expand Down
12 changes: 0 additions & 12 deletions arch/mips/math-emu/ieee754sp.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,18 +90,6 @@ union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp r, const char *op, ...)
return ax.rv.sp;
}

union ieee754sp ieee754sp_bestnan(union ieee754sp x, union ieee754sp y)
{
assert(ieee754sp_isnan(x));
assert(ieee754sp_isnan(y));

if (SPMANT(x) > SPMANT(y))
return x;
else
return y;
}


static unsigned get_rounding(int sn, unsigned xm)
{
/* inexact must round of 3 bits
Expand Down
1 change: 0 additions & 1 deletion arch/mips/math-emu/ieee754sp.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ extern int __cold ieee754si_xcpt(int, const char *, ...);
extern s64 __cold ieee754di_xcpt(s64, const char *, ...);
extern union ieee754sp __cold ieee754sp_xcpt(union ieee754sp, const char *, ...);
extern union ieee754sp __cold ieee754sp_nanxcpt(union ieee754sp, const char *, ...);
extern union ieee754sp ieee754sp_bestnan(union ieee754sp, union ieee754sp);
extern union ieee754sp ieee754sp_format(int, int, unsigned);


Expand Down

0 comments on commit 1bc3320

Please sign in to comment.