diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-04-18 18:36:32 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-05-21 05:12:57 -0400 |
commit | 9e8bad1f9c0370b2635175b34d6151b90a53da5c (patch) | |
tree | 0971254e7d21761a5dec3f946e2f65c9fd43e844 /arch/mips/math-emu/dp_cmp.c | |
parent | bee1653593b39ac85b45a057bb8c22dc1489cf6a (diff) |
MIPS: math-emu: Turn macros into functions where possible.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/math-emu/dp_cmp.c')
-rw-r--r-- | arch/mips/math-emu/dp_cmp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/math-emu/dp_cmp.c b/arch/mips/math-emu/dp_cmp.c index a3b4984d2e83..a8da7257a2e8 100644 --- a/arch/mips/math-emu/dp_cmp.c +++ b/arch/mips/math-emu/dp_cmp.c | |||
@@ -35,15 +35,15 @@ int ieee754dp_cmp(union ieee754dp x, union ieee754dp y, int cmp, int sig) | |||
35 | EXPLODEYDP; | 35 | EXPLODEYDP; |
36 | FLUSHXDP; | 36 | FLUSHXDP; |
37 | FLUSHYDP; | 37 | FLUSHYDP; |
38 | CLEARCX; /* Even clear inexact flag here */ | 38 | ieee754_clearcx(); /* Even clear inexact flag here */ |
39 | 39 | ||
40 | if (ieee754dp_isnan(x) || ieee754dp_isnan(y)) { | 40 | if (ieee754dp_isnan(x) || ieee754dp_isnan(y)) { |
41 | if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN) | 41 | if (sig || xc == IEEE754_CLASS_SNAN || yc == IEEE754_CLASS_SNAN) |
42 | SETCX(IEEE754_INVALID_OPERATION); | 42 | ieee754_setcx(IEEE754_INVALID_OPERATION); |
43 | if (cmp & IEEE754_CUN) | 43 | if (cmp & IEEE754_CUN) |
44 | return 1; | 44 | return 1; |
45 | if (cmp & (IEEE754_CLT | IEEE754_CGT)) { | 45 | if (cmp & (IEEE754_CLT | IEEE754_CGT)) { |
46 | if (sig && SETANDTESTCX(IEEE754_INVALID_OPERATION)) | 46 | if (sig && ieee754_setandtestcx(IEEE754_INVALID_OPERATION)) |
47 | return ieee754si_xcpt(0, "fcmpf", x); | 47 | return ieee754si_xcpt(0, "fcmpf", x); |
48 | } | 48 | } |
49 | return 0; | 49 | return 0; |