Commit aef3fb76 authored by Ralf Baechle's avatar Ralf Baechle

MIPS: math-emu: Nuke alternative names for IEEE-754 rounding modes.

Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 76fbfc31
...@@ -139,7 +139,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x) ...@@ -139,7 +139,7 @@ union ieee754dp ieee754dp_sqrt(union ieee754dp x)
oldcsr.sx |= IEEE754_INEXACT; oldcsr.sx |= IEEE754_INEXACT;
switch (oldcsr.rm) { switch (oldcsr.rm) {
case IEEE754_RP: case IEEE754_RU:
y.bits += 1; y.bits += 1;
/* drop through */ /* drop through */
case IEEE754_RN: case IEEE754_RN:
......
...@@ -133,10 +133,6 @@ enum { ...@@ -133,10 +133,6 @@ enum {
#define IEEE754_RD 2 /* round toward -Infinity */ #define IEEE754_RD 2 /* round toward -Infinity */
#define IEEE754_RU 3 /* round toward +Infinity */ #define IEEE754_RU 3 /* round toward +Infinity */
/* other naming */
#define IEEE754_RM IEEE754_RD
#define IEEE754_RP IEEE754_RU
/* "normal" comparisons /* "normal" comparisons
*/ */
static inline int ieee754sp_eq(union ieee754sp x, union ieee754sp y) static inline int ieee754sp_eq(union ieee754sp x, union ieee754sp y)
......
...@@ -100,7 +100,7 @@ union ieee754sp ieee754sp_sqrt(union ieee754sp x) ...@@ -100,7 +100,7 @@ union ieee754sp ieee754sp_sqrt(union ieee754sp x)
if (ix != 0) { if (ix != 0) {
ieee754_setcx(IEEE754_INEXACT); ieee754_setcx(IEEE754_INEXACT);
switch (ieee754_csr.rm) { switch (ieee754_csr.rm) {
case IEEE754_RP: case IEEE754_RU:
q += 2; q += 2;
break; break;
case IEEE754_RN: case IEEE754_RN:
......
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