MIPS: math-emu: Turn macros into functions where possible.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
@ -35,15 +35,15 @@ int ieee754dp_cmp(union ieee754dp x, union ieee754dp y, int cmp, int sig)
|
||||
EXPLODEYDP;
|
||||
FLUSHXDP;
|
||||
FLUSHYDP;
|
||||
CLEARCX; /* Even clear inexact flag here */
|
||||
ieee754_clearcx(); /* Even clear inexact flag here */
|
||||
|
||||
if (ieee754dp_isnan(x) || ieee754dp_isnan(y)) {
|
||||
if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN)
|
||||
SETCX(IEEE754_INVALID_OPERATION);
|
||||
ieee754_setcx(IEEE754_INVALID_OPERATION);
|
||||
if (cmp & IEEE754_CUN)
|
||||
return 1;
|
||||
if (cmp & (IEEE754_CLT | IEEE754_CGT)) {
|
||||
if (sig && SETANDTESTCX(IEEE754_INVALID_OPERATION))
|
||||
if (sig && ieee754_setandtestcx(IEEE754_INVALID_OPERATION))
|
||||
return ieee754si_xcpt(0, "fcmpf", x);
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user