Lines Matching refs:exp
32 uint64_t r, exp, mant, sig; in float32_to_f() local
37 exp = (a.l >> 23) & 0xff; in float32_to_f()
40 if (exp == 255) { in float32_to_f()
43 } else if (exp == 0) { in float32_to_f()
49 r = sig | ((exp + 1) << 52) | mant; in float32_to_f()
52 if (exp >= 253) { in float32_to_f()
56 r = sig | ((exp + 2) << 52); in float32_to_f()
65 uint32_t exp, mant_sig; in f_to_float32() local
68 exp = ((a >> 55) & 0x80) | ((a >> 52) & 0x7f); in f_to_float32()
71 if (unlikely(!exp && mant_sig)) { in f_to_float32()
76 if (exp < 3) { in f_to_float32()
80 r.l = ((exp - 2) << 23) | mant_sig; in f_to_float32()
163 uint64_t r, exp, mant, sig; in float64_to_g() local
168 exp = (a.ll >> 52) & 0x7ff; in float64_to_g()
171 if (exp == 2047) { in float64_to_g()
174 } else if (exp == 0) { in float64_to_g()
180 r = sig | ((exp + 1) << 52) | mant; in float64_to_g()
183 if (exp >= 2045) { in float64_to_g()
187 r = sig | ((exp + 2) << 52); in float64_to_g()
196 uint64_t exp, mant_sig; in g_to_float64() local
199 exp = (a >> 52) & 0x7ff; in g_to_float64()
202 if (!exp && mant_sig) { in g_to_float64()
207 if (exp < 3) { in g_to_float64()
211 r.ll = ((exp - 2) << 52) | mant_sig; in g_to_float64()