Lines Matching refs:f

26 	int32_t e = -1, v, f = 0;  in lwm2m_float_to_b32()  local
46 f >>= 1; in lwm2m_float_to_b32()
49 f |= (1 << 23); in lwm2m_float_to_b32()
63 if (!f && e < 0 && v < PRECISION32) { in lwm2m_float_to_b32()
69 f |= 1 << (22 - i); in lwm2m_float_to_b32()
97 b32[1] |= (f >> 16) & 0x7F; in lwm2m_float_to_b32()
98 b32[2] = (f >> 8) & 0xFF; in lwm2m_float_to_b32()
99 b32[3] = f & 0xFF; in lwm2m_float_to_b32()
107 int64_t v, f = 0; in lwm2m_float_to_b64() local
128 f >>= 1; in lwm2m_float_to_b64()
131 f |= ((int64_t)1 << 52); in lwm2m_float_to_b64()
145 if (!f && e < 0 && v < PRECISION64) { in lwm2m_float_to_b64()
151 f |= (int64_t)1 << (51 - i); in lwm2m_float_to_b64()
179 b64[1] |= ((f >> 48) & 0xF); in lwm2m_float_to_b64()
180 b64[2] = (f >> 40) & 0xFF; in lwm2m_float_to_b64()
181 b64[3] = (f >> 32) & 0xFF; in lwm2m_float_to_b64()
182 b64[4] = (f >> 24) & 0xFF; in lwm2m_float_to_b64()
183 b64[5] = (f >> 16) & 0xFF; in lwm2m_float_to_b64()
184 b64[6] = (f >> 8) & 0xFF; in lwm2m_float_to_b64()
185 b64[7] = f & 0xFF; in lwm2m_float_to_b64()
193 int32_t f, k, i, e; in lwm2m_b32_to_float() local
214 f = ((int32_t)1 << 23); in lwm2m_b32_to_float()
216 f += ((int32_t)(b32[1] & 0x7F) << 16); in lwm2m_b32_to_float()
217 f += ((int32_t)b32[2] << 8); in lwm2m_b32_to_float()
218 f += b32[3]; in lwm2m_b32_to_float()
227 val1 = (f >> (23 - e)) * (sign ? -1 : 1); in lwm2m_b32_to_float()
241 if (f & (1 << i)) { in lwm2m_b32_to_float()
259 int64_t f, k; in lwm2m_b64_to_float() local
281 f = ((int64_t)1 << 52); in lwm2m_b64_to_float()
283 f += ((int64_t)(b64[1] & 0xF) << 48); in lwm2m_b64_to_float()
284 f += ((int64_t)b64[2] << 40); in lwm2m_b64_to_float()
285 f += ((int64_t)b64[3] << 32); in lwm2m_b64_to_float()
286 f += ((int64_t)b64[4] << 24); in lwm2m_b64_to_float()
287 f += ((int64_t)b64[5] << 16); in lwm2m_b64_to_float()
288 f += ((int64_t)b64[6] << 8); in lwm2m_b64_to_float()
289 f += b64[7]; in lwm2m_b64_to_float()
298 val1 = (f >> (52 - e)) * (sign ? -1 : 1); in lwm2m_b64_to_float()
312 if (f & ((int64_t)1 << i)) { in lwm2m_b64_to_float()