Skip to content

Commit

Permalink
MIPS: math-emu: Remove #if 1 and dead code from its #else branch.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed May 23, 2014
1 parent e812a73 commit 08f1faa
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions arch/mips/math-emu/dp_fint.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,23 +51,13 @@ union ieee754dp ieee754dp_fint(int x)
xm = x;
}

#if 1
/* normalize - result can never be inexact or overflow */
xe = DP_MBITS;
while ((xm >> DP_MBITS) == 0) {
xm <<= 1;
xe--;
}
return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT);
#else
/* normalize */
xe = DP_MBITS + 3;
while ((xm >> (DP_MBITS + 3)) == 0) {
xm <<= 1;
xe--;
}
DPNORMRET1(xs, xe, xm, "fint", x);
#endif
}

union ieee754dp ieee754dp_funs(unsigned int u)
Expand Down

0 comments on commit 08f1faa

Please sign in to comment.