Lines Matching refs:e

26 	int32_t e = -1, v, f = 0;  in lwm2m_float_to_b32()  local
53 e++; in lwm2m_float_to_b32()
60 i = e; in lwm2m_float_to_b32()
63 if (!f && e < 0 && v < PRECISION32) { in lwm2m_float_to_b32()
65 e--; in lwm2m_float_to_b32()
80 e += 127; in lwm2m_float_to_b32()
92 b32[0] |= e >> 1; in lwm2m_float_to_b32()
93 b32[1] = (e & 1) << 7; in lwm2m_float_to_b32()
108 int32_t e = -1; in lwm2m_float_to_b64() local
135 e++; in lwm2m_float_to_b64()
142 i = e; in lwm2m_float_to_b64()
145 if (!f && e < 0 && v < PRECISION64) { in lwm2m_float_to_b64()
147 e--; in lwm2m_float_to_b64()
162 e += 1023; in lwm2m_float_to_b64()
174 b64[0] |= (e >> 4); in lwm2m_float_to_b64()
175 b64[1] = ((e & 0xF) << 4); in lwm2m_float_to_b64()
193 int32_t f, k, i, e; in lwm2m_b32_to_float() local
208 e = SHIFT_LEFT(b32[0], 1, 0xFF); in lwm2m_b32_to_float()
209 e += SHIFT_RIGHT(b32[1], 7, 0x1); in lwm2m_b32_to_float()
211 e -= 127; in lwm2m_b32_to_float()
221 if (e > -1) { in lwm2m_b32_to_float()
223 if (e > 23) { in lwm2m_b32_to_float()
224 e = 23; in lwm2m_b32_to_float()
227 val1 = (f >> (23 - e)) * (sign ? -1 : 1); in lwm2m_b32_to_float()
234 while (e < -1) { in lwm2m_b32_to_float()
236 e++; in lwm2m_b32_to_float()
239 for (i = 22 - e; i >= 0; i--) { in lwm2m_b32_to_float()
260 int i, e; in lwm2m_b64_to_float() local
275 e = SHIFT_LEFT((uint16_t)b64[0], 4, 0x7F0); in lwm2m_b64_to_float()
276 e += SHIFT_RIGHT(b64[1], 4, 0xF); in lwm2m_b64_to_float()
278 e -= 1023; in lwm2m_b64_to_float()
292 if (e > -1) { in lwm2m_b64_to_float()
294 if (e > 52) { in lwm2m_b64_to_float()
295 e = 52; in lwm2m_b64_to_float()
298 val1 = (f >> (52 - e)) * (sign ? -1 : 1); in lwm2m_b64_to_float()
305 while (e < -1) { in lwm2m_b64_to_float()
307 e++; in lwm2m_b64_to_float()
310 for (i = 51 - e; i >= 0; i--) { in lwm2m_b64_to_float()