diff options
Diffstat (limited to 'arch/mips/math-emu/sp_simple.c')
-rw-r--r-- | arch/mips/math-emu/sp_simple.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/mips/math-emu/sp_simple.c b/arch/mips/math-emu/sp_simple.c index 633c7a54cf1e..4da597b6a1f7 100644 --- a/arch/mips/math-emu/sp_simple.c +++ b/arch/mips/math-emu/sp_simple.c | |||
@@ -33,7 +33,7 @@ int ieee754sp_finite(union ieee754sp x) | |||
33 | 33 | ||
34 | union ieee754sp ieee754sp_copysign(union ieee754sp x, union ieee754sp y) | 34 | union ieee754sp ieee754sp_copysign(union ieee754sp x, union ieee754sp y) |
35 | { | 35 | { |
36 | CLEARCX; | 36 | ieee754_clearcx(); |
37 | SPSIGN(x) = SPSIGN(y); | 37 | SPSIGN(x) = SPSIGN(y); |
38 | return x; | 38 | return x; |
39 | } | 39 | } |
@@ -44,7 +44,7 @@ union ieee754sp ieee754sp_neg(union ieee754sp x) | |||
44 | COMPXSP; | 44 | COMPXSP; |
45 | 45 | ||
46 | EXPLODEXSP; | 46 | EXPLODEXSP; |
47 | CLEARCX; | 47 | ieee754_clearcx(); |
48 | FLUSHXSP; | 48 | FLUSHXSP; |
49 | 49 | ||
50 | /* | 50 | /* |
@@ -56,7 +56,7 @@ union ieee754sp ieee754sp_neg(union ieee754sp x) | |||
56 | 56 | ||
57 | if (xc == IEEE754_CLASS_SNAN) { | 57 | if (xc == IEEE754_CLASS_SNAN) { |
58 | union ieee754sp y = ieee754sp_indef(); | 58 | union ieee754sp y = ieee754sp_indef(); |
59 | SETCX(IEEE754_INVALID_OPERATION); | 59 | ieee754_setcx(IEEE754_INVALID_OPERATION); |
60 | SPSIGN(y) = SPSIGN(x); | 60 | SPSIGN(y) = SPSIGN(x); |
61 | return ieee754sp_nanxcpt(y, "neg"); | 61 | return ieee754sp_nanxcpt(y, "neg"); |
62 | } | 62 | } |
@@ -70,14 +70,14 @@ union ieee754sp ieee754sp_abs(union ieee754sp x) | |||
70 | COMPXSP; | 70 | COMPXSP; |
71 | 71 | ||
72 | EXPLODEXSP; | 72 | EXPLODEXSP; |
73 | CLEARCX; | 73 | ieee754_clearcx(); |
74 | FLUSHXSP; | 74 | FLUSHXSP; |
75 | 75 | ||
76 | /* Clear sign ALWAYS, irrespective of NaN */ | 76 | /* Clear sign ALWAYS, irrespective of NaN */ |
77 | SPSIGN(x) = 0; | 77 | SPSIGN(x) = 0; |
78 | 78 | ||
79 | if (xc == IEEE754_CLASS_SNAN) { | 79 | if (xc == IEEE754_CLASS_SNAN) { |
80 | SETCX(IEEE754_INVALID_OPERATION); | 80 | ieee754_setcx(IEEE754_INVALID_OPERATION); |
81 | return ieee754sp_nanxcpt(ieee754sp_indef(), "abs"); | 81 | return ieee754sp_nanxcpt(ieee754sp_indef(), "abs"); |
82 | } | 82 | } |
83 | 83 | ||