Home
last modified time | relevance | path

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

/openbmc/linux/arch/mips/math-emu/
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A 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()
H A Dsp_mul.c112 xm <<= 32 - (SP_FBITS + 1); in ieee754sp_mul()
113 ym <<= 32 - (SP_FBITS + 1); in ieee754sp_mul()
144 rm = (rm >> (32 - (SP_FBITS + 1 + 3))) | in ieee754sp_mul()
145 ((rm << (SP_FBITS + 1 + 3)) != 0); in ieee754sp_mul()
148 rm = (rm >> (32 - (SP_FBITS + 1 + 3 + 1))) | in ieee754sp_mul()
149 ((rm << (SP_FBITS + 1 + 3 + 1)) != 0); in ieee754sp_mul()
H A 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()
H A 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()
H A Dsp_fdp.c16 xm >> (DP_FBITS - SP_FBITS)); in ieee754sp_nan_fdp()
69 rm = (xm >> (DP_FBITS - (SP_FBITS + 3))) | in ieee754sp_fdp()
70 ((xm << (64 - (DP_FBITS - (SP_FBITS + 3)))) != 0); in ieee754sp_fdp()
H A 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()
H A Dsp_div.c118 for (bm = SP_MBIT(SP_FBITS + 2); bm; bm >>= 1) { in ieee754sp_div()
136 while ((rm >> (SP_FBITS + 3)) == 0) { in ieee754sp_div()
H A Dsp_add.c141 if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ in ieee754sp_add()
157 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_add()
H A Dsp_sub.c143 if (xm >> (SP_FBITS + 1 + 3)) { /* carry out */ in ieee754sp_sub()
161 while ((xm >> (SP_FBITS + 3)) == 0) { in ieee754sp_sub()
H A Dieee754int.h62 else if (ieee754_csr.nan2008 ^ !(vm & SP_MBIT(SP_FBITS - 1))) \