Home
last modified time | relevance | path

Searched refs:SP_FBITS (Results 1 – 15 of 15) sorted by relevance

/arch/mips/math-emu/
Dieee754sp.c31 qbit = (SPMANT(x) & SP_MBIT(SP_FBITS - 1)) == SP_MBIT(SP_FBITS - 1); in ieee754sp_issnan()
46 SPMANT(r) |= SP_MBIT(SP_FBITS - 1); in ieee754sp_nanxcpt()
48 SPMANT(r) &= ~SP_MBIT(SP_FBITS - 1); in ieee754sp_nanxcpt()
50 SPMANT(r) |= SP_MBIT(SP_FBITS - 2); in ieee754sp_nanxcpt()
91 assert((xm >> (SP_FBITS + 1 + 3)) == 0); /* no excess */ in ieee754sp_format()
120 ieee754sp_get_rounding(sn, xm) >> (SP_FBITS + 1 + 3)) in ieee754sp_format()
149 if (xm >> (SP_FBITS + 1 + 3)) { in ieee754sp_format()
158 assert((xm >> (SP_FBITS + 1)) == 0); /* no excess */ in ieee754sp_format()
191 assert((xm >> (SP_FBITS + 1)) == 0); /* no excess */ in ieee754sp_format()
Dsp_fint.c36 xe = SP_FBITS + 3; in ieee754sp_fint()
38 if (xm >> (SP_FBITS + 1 + 3)) { in ieee754sp_fint()
41 while (xm >> (SP_FBITS + 1 + 3)) { in ieee754sp_fint()
47 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_fint()
Dsp_flong.c36 xe = SP_FBITS + 3; in ieee754sp_flong()
38 if (xm >> (SP_FBITS + 1 + 3)) { in ieee754sp_flong()
41 while (xm >> (SP_FBITS + 1 + 3)) { in ieee754sp_flong()
46 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_flong()
Dsp_tlong.c53 if (xe > SP_FBITS) { in ieee754sp_tlong()
54 xm <<= xe - SP_FBITS; in ieee754sp_tlong()
55 } else if (xe < SP_FBITS) { in ieee754sp_tlong()
62 residue = xm << (32 - SP_FBITS + xe); in ieee754sp_tlong()
65 xm >>= SP_FBITS - xe; in ieee754sp_tlong()
Dieee754sp.h20 #define SP_FBITS 23 macro
24 #define SP_HIDDEN_BIT SP_MBIT(SP_FBITS)
42 ((rs > (SP_FBITS+3))?1:((v) >> (rs)) | ((v) << (32-(rs)) != 0))
55 while ((m >> SP_FBITS) == 0) { m <<= 1; e--; }
67 assert(((m) >> SP_FBITS) == 0); in buildsp()
Dsp_tint.c53 if (xe > SP_FBITS) { in ieee754sp_tint()
54 xm <<= xe - SP_FBITS; in ieee754sp_tint()
66 residue <<= 31 - SP_FBITS; in ieee754sp_tint()
69 xm >>= SP_FBITS - xe; in ieee754sp_tint()
Ddp_fsp.c16 xm << (DP_FBITS - SP_FBITS)); in ieee754dp_nan_fsp()
44 while ((xm >> SP_FBITS) == 0) { in ieee754dp_fsp()
62 (u64) xm << (DP_FBITS - SP_FBITS)); in ieee754dp_fsp()
Dsp_mul.c113 xm <<= 32 - (SP_FBITS + 1); in ieee754sp_mul()
114 ym <<= 32 - (SP_FBITS + 1); in ieee754sp_mul()
145 rm = (rm >> (32 - (SP_FBITS + 1 + 3))) | in ieee754sp_mul()
146 ((rm << (SP_FBITS + 1 + 3)) != 0); in ieee754sp_mul()
149 rm = (rm >> (32 - (SP_FBITS + 1 + 3 + 1))) | in ieee754sp_mul()
150 ((rm << (SP_FBITS + 1 + 3 + 1)) != 0); in ieee754sp_mul()
Dsp_rint.c37 if (xe >= SP_FBITS) in ieee754sp_rint()
47 residue <<= 31 - SP_FBITS; in ieee754sp_rint()
50 xm >>= SP_FBITS - xe; in ieee754sp_rint()
Dsp_fdp.c16 xm >> (DP_FBITS - SP_FBITS)); in ieee754sp_nan_fdp()
70 rm = (xm >> (DP_FBITS - (SP_FBITS + 3))) | in ieee754sp_fdp()
71 ((xm << (64 - (DP_FBITS - (SP_FBITS + 3)))) != 0); in ieee754sp_fdp()
Dieee754d.c73 for (i = SP_FBITS - 1; i >= 0; i--) in ieee754sp_dump()
84 for (i = SP_FBITS - 1; i >= 0; i--) in ieee754sp_dump()
90 for (i = SP_FBITS - 1; i >= 0; i--) in ieee754sp_dump()
Dsp_div.c119 for (bm = SP_MBIT(SP_FBITS + 2); bm; bm >>= 1) { in ieee754sp_div()
137 while ((rm >> (SP_FBITS + 3)) == 0) { in ieee754sp_div()
Dsp_add.c142 if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ in ieee754sp_add()
158 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_add()
Dsp_sub.c144 if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ in ieee754sp_sub()
162 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_sub()
Dieee754int.h61 else if (ieee754_csr.nan2008 ^ !(vm & SP_MBIT(SP_FBITS - 1))) \