diff options
Diffstat (limited to 'arch/mips/math-emu/ieee754int.h')
-rw-r--r-- | arch/mips/math-emu/ieee754int.h | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/arch/mips/math-emu/ieee754int.h b/arch/mips/math-emu/ieee754int.h index 4a5a81d6b893..1a846c5425cd 100644 --- a/arch/mips/math-emu/ieee754int.h +++ b/arch/mips/math-emu/ieee754int.h | |||
@@ -55,16 +55,16 @@ | |||
55 | #define DPBEXP(dp) (dp.parts.bexp) | 55 | #define DPBEXP(dp) (dp.parts.bexp) |
56 | #define DPMANT(dp) (dp.parts.mant) | 56 | #define DPMANT(dp) (dp.parts.mant) |
57 | 57 | ||
58 | #define CLPAIR(x,y) ((x)*6+(y)) | 58 | #define CLPAIR(x, y) ((x)*6+(y)) |
59 | 59 | ||
60 | #define CLEARCX \ | 60 | #define CLEARCX \ |
61 | (ieee754_csr.cx = 0) | 61 | (ieee754_csr.cx = 0) |
62 | 62 | ||
63 | #define SETCX(x) \ | 63 | #define SETCX(x) \ |
64 | (ieee754_csr.cx |= (x),ieee754_csr.sx |= (x)) | 64 | (ieee754_csr.cx |= (x), ieee754_csr.sx |= (x)) |
65 | 65 | ||
66 | #define SETANDTESTCX(x) \ | 66 | #define SETANDTESTCX(x) \ |
67 | (SETCX(x),ieee754_csr.mx & (x)) | 67 | (SETCX(x), ieee754_csr.mx & (x)) |
68 | 68 | ||
69 | #define TSTX() \ | 69 | #define TSTX() \ |
70 | (ieee754_csr.cx & ieee754_csr.mx) | 70 | (ieee754_csr.cx & ieee754_csr.mx) |
@@ -76,7 +76,7 @@ | |||
76 | #define COMPYSP \ | 76 | #define COMPYSP \ |
77 | unsigned ym; int ye; int ys; int yc | 77 | unsigned ym; int ye; int ys; int yc |
78 | 78 | ||
79 | #define EXPLODESP(v,vc,vs,ve,vm) \ | 79 | #define EXPLODESP(v, vc, vs, ve, vm) \ |
80 | {\ | 80 | {\ |
81 | vs = SPSIGN(v);\ | 81 | vs = SPSIGN(v);\ |
82 | ve = SPBEXP(v);\ | 82 | ve = SPBEXP(v);\ |
@@ -100,8 +100,8 @@ | |||
100 | vc = IEEE754_CLASS_NORM;\ | 100 | vc = IEEE754_CLASS_NORM;\ |
101 | }\ | 101 | }\ |
102 | } | 102 | } |
103 | #define EXPLODEXSP EXPLODESP(x,xc,xs,xe,xm) | 103 | #define EXPLODEXSP EXPLODESP(x, xc, xs, xe, xm) |
104 | #define EXPLODEYSP EXPLODESP(y,yc,ys,ye,ym) | 104 | #define EXPLODEYSP EXPLODESP(y, yc, ys, ye, ym) |
105 | 105 | ||
106 | 106 | ||
107 | #define COMPXDP \ | 107 | #define COMPXDP \ |
@@ -110,7 +110,7 @@ u64 xm; int xe; int xs; int xc | |||
110 | #define COMPYDP \ | 110 | #define COMPYDP \ |
111 | u64 ym; int ye; int ys; int yc | 111 | u64 ym; int ye; int ys; int yc |
112 | 112 | ||
113 | #define EXPLODEDP(v,vc,vs,ve,vm) \ | 113 | #define EXPLODEDP(v, vc, vs, ve, vm) \ |
114 | {\ | 114 | {\ |
115 | vm = DPMANT(v);\ | 115 | vm = DPMANT(v);\ |
116 | vs = DPSIGN(v);\ | 116 | vs = DPSIGN(v);\ |
@@ -134,10 +134,10 @@ u64 ym; int ye; int ys; int yc | |||
134 | vc = IEEE754_CLASS_NORM;\ | 134 | vc = IEEE754_CLASS_NORM;\ |
135 | }\ | 135 | }\ |
136 | } | 136 | } |
137 | #define EXPLODEXDP EXPLODEDP(x,xc,xs,xe,xm) | 137 | #define EXPLODEXDP EXPLODEDP(x, xc, xs, xe, xm) |
138 | #define EXPLODEYDP EXPLODEDP(y,yc,ys,ye,ym) | 138 | #define EXPLODEYDP EXPLODEDP(y, yc, ys, ye, ym) |
139 | 139 | ||
140 | #define FLUSHDP(v,vc,vs,ve,vm) \ | 140 | #define FLUSHDP(v, vc, vs, ve, vm) \ |
141 | if(vc==IEEE754_CLASS_DNORM) {\ | 141 | if(vc==IEEE754_CLASS_DNORM) {\ |
142 | if(ieee754_csr.nod) {\ | 142 | if(ieee754_csr.nod) {\ |
143 | SETCX(IEEE754_INEXACT);\ | 143 | SETCX(IEEE754_INEXACT);\ |
@@ -148,7 +148,7 @@ u64 ym; int ye; int ys; int yc | |||
148 | }\ | 148 | }\ |
149 | } | 149 | } |
150 | 150 | ||
151 | #define FLUSHSP(v,vc,vs,ve,vm) \ | 151 | #define FLUSHSP(v, vc, vs, ve, vm) \ |
152 | if(vc==IEEE754_CLASS_DNORM) {\ | 152 | if(vc==IEEE754_CLASS_DNORM) {\ |
153 | if(ieee754_csr.nod) {\ | 153 | if(ieee754_csr.nod) {\ |
154 | SETCX(IEEE754_INEXACT);\ | 154 | SETCX(IEEE754_INEXACT);\ |
@@ -159,7 +159,7 @@ u64 ym; int ye; int ys; int yc | |||
159 | }\ | 159 | }\ |
160 | } | 160 | } |
161 | 161 | ||
162 | #define FLUSHXDP FLUSHDP(x,xc,xs,xe,xm) | 162 | #define FLUSHXDP FLUSHDP(x, xc, xs, xe, xm) |
163 | #define FLUSHYDP FLUSHDP(y,yc,ys,ye,ym) | 163 | #define FLUSHYDP FLUSHDP(y, yc, ys, ye, ym) |
164 | #define FLUSHXSP FLUSHSP(x,xc,xs,xe,xm) | 164 | #define FLUSHXSP FLUSHSP(x, xc, xs, xe, xm) |
165 | #define FLUSHYSP FLUSHSP(y,yc,ys,ye,ym) | 165 | #define FLUSHYSP FLUSHSP(y, yc, ys, ye, ym) |