/arch/mips/math-emu/ |
D | sp_tlong.c | 43 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()
|
D | dp_tlong.c | 43 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()
|
D | ieee754dp.c | 87 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 …]
|
D | ieee754sp.c | 87 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 …]
|
D | dp_tint.c | 43 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()
|
D | sp_tint.c | 43 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()
|
D | dp_sub.c | 123 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()
|
D | dp_add.c | 117 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()
|
D | sp_add.c | 117 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()
|
D | sp_sub.c | 121 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()
|
D | dp_fint.c | 15 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()
|
D | sp_fint.c | 15 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()
|
D | sp_flong.c | 15 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()
|
D | dp_flong.c | 15 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()
|
D | dp_rint.c | 37 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()
|
D | sp_rint.c | 37 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()
|
D | dp_sqrt.c | 74 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()
|
D | ieee754int.h | 45 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)
|
D | dp_fmax.c | 120 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()
|
D | sp_fmin.c | 120 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()
|
D | dp_fmin.c | 120 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()
|
D | sp_fmax.c | 120 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()
|
D | dp_fsp.c | 46 xe--; in ieee754dp_fsp() 61 return builddp(xs, xe + DP_EBIAS, in ieee754dp_fsp()
|
D | ieee754dp.h | 41 (xe++, (xm = (xm >> 1) | (xm & 1))) 52 #define DPDNORMX DPDNORMx(xm, xe)
|
D | ieee754sp.h | 48 (xe++, (xm = XSPSRS1(xm))) 56 #define SPDNORMX SPDNORMx(xm, xe)
|