Home
last modified time | relevance | path

Searched refs:xe (Results 1 – 25 of 66) sorted by relevance

123

/arch/mips/math-emu/
Dsp_tlong.c43 if (xe >= 63) { in ieee754sp_tlong()
45 if (xe == 63 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tlong()
53 if (xe > SP_FBITS) { in ieee754sp_tlong()
54 xm <<= xe - SP_FBITS; in ieee754sp_tlong()
55 } else if (xe < SP_FBITS) { in ieee754sp_tlong()
56 if (xe < -1) { in ieee754sp_tlong()
62 residue = xm << (32 - SP_FBITS + xe); in ieee754sp_tlong()
65 xm >>= SP_FBITS - xe; in ieee754sp_tlong()
Ddp_tlong.c43 if (xe >= 63) { in ieee754dp_tlong()
45 if (xe == 63 && xs && xm == DP_HIDDEN_BIT) in ieee754dp_tlong()
53 if (xe > DP_FBITS) { in ieee754dp_tlong()
54 xm <<= xe - DP_FBITS; in ieee754dp_tlong()
55 } else if (xe < DP_FBITS) { in ieee754dp_tlong()
56 if (xe < -1) { in ieee754dp_tlong()
65 residue = xm << (xe + 1); in ieee754dp_tlong()
69 xm >>= DP_FBITS - xe; in ieee754dp_tlong()
Dieee754dp.c87 union ieee754dp ieee754dp_format(int sn, int xe, u64 xm) in ieee754dp_format() argument
94 if (xe < DP_EMIN) { in ieee754dp_format()
96 int es = DP_EMIN - xe; in ieee754dp_format()
119 if (xe == DP_EMIN - 1 && in ieee754dp_format()
128 xe++; in ieee754dp_format()
134 xe += es; in ieee754dp_format()
136 assert(xe == DP_EMIN); in ieee754dp_format()
153 xe++; in ieee754dp_format()
160 assert(xe >= DP_EMIN); in ieee754dp_format()
162 if (xe > DP_EMAX) { in ieee754dp_format()
[all …]
Dieee754sp.c87 union ieee754sp ieee754sp_format(int sn, int xe, unsigned int xm) in ieee754sp_format() argument
94 if (xe < SP_EMIN) { in ieee754sp_format()
96 int es = SP_EMIN - xe; in ieee754sp_format()
119 if (xe == SP_EMIN - 1 && in ieee754sp_format()
128 xe++; in ieee754sp_format()
133 xe += es; in ieee754sp_format()
135 assert(xe == SP_EMIN); in ieee754sp_format()
152 xe++; in ieee754sp_format()
159 assert(xe >= SP_EMIN); in ieee754sp_format()
161 if (xe > SP_EMAX) { in ieee754sp_format()
[all …]
Ddp_tint.c43 if (xe > 31) { in ieee754dp_tint()
50 if (xe > DP_FBITS) { in ieee754dp_tint()
51 xm <<= xe - DP_FBITS; in ieee754dp_tint()
52 } else if (xe < DP_FBITS) { in ieee754dp_tint()
53 if (xe < -1) { in ieee754dp_tint()
59 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_tint()
62 xm >>= DP_FBITS - xe; in ieee754dp_tint()
Dsp_tint.c43 if (xe >= 31) { in ieee754sp_tint()
45 if (xe == 31 && xs && xm == SP_HIDDEN_BIT) in ieee754sp_tint()
53 if (xe > SP_FBITS) { in ieee754sp_tint()
54 xm <<= xe - SP_FBITS; in ieee754sp_tint()
56 if (xe < -1) { in ieee754sp_tint()
65 residue = xm << (xe + 1); in ieee754sp_tint()
69 xm >>= SP_FBITS - xe; in ieee754sp_tint()
Ddp_sub.c123 if (xe > ye) { in ieee754dp_sub()
127 s = xe - ye; in ieee754dp_sub()
130 } else if (ye > xe) { in ieee754dp_sub()
134 s = ye - xe; in ieee754dp_sub()
136 xe += s; in ieee754dp_sub()
138 assert(xe == ye); in ieee754dp_sub()
139 assert(xe <= DP_EMAX); in ieee754dp_sub()
148 xe++; in ieee754dp_sub()
168 xe--; in ieee754dp_sub()
172 return ieee754dp_format(xs, xe, xm); in ieee754dp_sub()
Ddp_add.c117 if (xe > ye) { in ieee754dp_add()
121 s = xe - ye; in ieee754dp_add()
124 } else if (ye > xe) { in ieee754dp_add()
128 s = ye - xe; in ieee754dp_add()
130 xe += s; in ieee754dp_add()
132 assert(xe == ye); in ieee754dp_add()
133 assert(xe <= DP_EMAX); in ieee754dp_add()
144 xe++; in ieee754dp_add()
161 xe--; in ieee754dp_add()
165 return ieee754dp_format(xs, xe, xm); in ieee754dp_add()
Dsp_add.c117 if (xe > ye) { in ieee754sp_add()
121 s = xe - ye; in ieee754sp_add()
124 } else if (ye > xe) { in ieee754sp_add()
128 s = ye - xe; in ieee754sp_add()
130 xe += s; in ieee754sp_add()
132 assert(xe == ye); in ieee754sp_add()
133 assert(xe <= SP_EMAX); in ieee754sp_add()
160 xe--; in ieee754sp_add()
164 return ieee754sp_format(xs, xe, xm); in ieee754sp_add()
Dsp_sub.c121 if (xe > ye) { in ieee754sp_sub()
125 s = xe - ye; in ieee754sp_sub()
128 } else if (ye > xe) { in ieee754sp_sub()
132 s = ye - xe; in ieee754sp_sub()
134 xe += s; in ieee754sp_sub()
136 assert(xe == ye); in ieee754sp_sub()
137 assert(xe <= SP_EMAX); in ieee754sp_sub()
164 xe--; in ieee754sp_sub()
168 return ieee754sp_format(xs, xe, xm); in ieee754sp_sub()
Ddp_fint.c15 int xe; in ieee754dp_fint() local
38 xe = DP_FBITS; in ieee754dp_fint()
41 xe--; in ieee754dp_fint()
43 return builddp(xs, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT); in ieee754dp_fint()
Dsp_fint.c15 int xe; in ieee754sp_fint() local
36 xe = SP_FBITS + 3; in ieee754sp_fint()
49 xe--; in ieee754sp_fint()
52 return ieee754sp_format(xs, xe, xm); in ieee754sp_fint()
Dsp_flong.c15 int xe; in ieee754sp_flong() local
36 xe = SP_FBITS + 3; in ieee754sp_flong()
48 xe--; in ieee754sp_flong()
51 return ieee754sp_format(xs, xe, xm); in ieee754sp_flong()
Ddp_flong.c15 int xe; in ieee754dp_flong() local
38 xe = DP_FBITS + 3; in ieee754dp_flong()
48 xe--; in ieee754dp_flong()
52 return ieee754dp_format(xs, xe, xm); in ieee754dp_flong()
Ddp_rint.c37 if (xe >= DP_FBITS) in ieee754dp_rint()
40 if (xe < -1) { in ieee754dp_rint()
46 residue = xm << (64 - DP_FBITS + xe); in ieee754dp_rint()
49 xm >>= DP_FBITS - xe; in ieee754dp_rint()
Dsp_rint.c37 if (xe >= SP_FBITS) in ieee754sp_rint()
40 if (xe < -1) { in ieee754sp_rint()
46 residue = xm << (xe + 1); in ieee754sp_rint()
50 xm >>= SP_FBITS - xe; in ieee754sp_rint()
Ddp_sqrt.c74 if (xe > 512) { /* x > 2**-512? */ in ieee754dp_sqrt()
75 xe -= 512; /* x = x / 2**512 */ in ieee754dp_sqrt()
77 } else if (xe < -512) { /* x < 2**-512? */ in ieee754dp_sqrt()
78 xe += 512; /* x = x * 2**512 */ in ieee754dp_sqrt()
82 x = builddp(0, xe + DP_EBIAS, xm & ~DP_HIDDEN_BIT); in ieee754dp_sqrt()
Dieee754int.h45 unsigned int xm; int xe; int xs __maybe_unused; int xc
77 #define EXPLODEXSP EXPLODESP(x, xc, xs, xe, xm)
83 u64 xm; int xe; int xs __maybe_unused; int xc
115 #define EXPLODEXDP EXPLODEDP(x, xc, xs, xe, xm)
141 #define FLUSHXDP FLUSHDP(x, xc, xs, xe, xm)
144 #define FLUSHXSP FLUSHSP(x, xc, xs, xe, xm)
Ddp_fmax.c120 if (xe > ye) in ieee754dp_fmax()
122 else if (xe < ye) in ieee754dp_fmax()
126 if (xe > ye) in ieee754dp_fmax()
128 else if (xe < ye) in ieee754dp_fmax()
241 if (xe > ye) in ieee754dp_fmaxa()
243 else if (xe < ye) in ieee754dp_fmaxa()
Dsp_fmin.c120 if (xe > ye) in ieee754sp_fmin()
122 else if (xe < ye) in ieee754sp_fmin()
126 if (xe > ye) in ieee754sp_fmin()
128 else if (xe < ye) in ieee754sp_fmin()
241 if (xe > ye) in ieee754sp_fmina()
243 else if (xe < ye) in ieee754sp_fmina()
Ddp_fmin.c120 if (xe > ye) in ieee754dp_fmin()
122 else if (xe < ye) in ieee754dp_fmin()
126 if (xe > ye) in ieee754dp_fmin()
128 else if (xe < ye) in ieee754dp_fmin()
241 if (xe > ye) in ieee754dp_fmina()
243 else if (xe < ye) in ieee754dp_fmina()
Dsp_fmax.c120 if (xe > ye) in ieee754sp_fmax()
122 else if (xe < ye) in ieee754sp_fmax()
126 if (xe > ye) in ieee754sp_fmax()
128 else if (xe < ye) in ieee754sp_fmax()
241 if (xe > ye) in ieee754sp_fmaxa()
243 else if (xe < ye) in ieee754sp_fmaxa()
Ddp_fsp.c46 xe--; in ieee754dp_fsp()
61 return builddp(xs, xe + DP_EBIAS, in ieee754dp_fsp()
Dieee754dp.h41 (xe++, (xm = (xm >> 1) | (xm & 1)))
52 #define DPDNORMX DPDNORMx(xm, xe)
Dieee754sp.h48 (xe++, (xm = XSPSRS1(xm)))
56 #define SPDNORMX SPDNORMx(xm, xe)

123