Lines Matching refs:val2
28 int32_t val2 = (*in - (int32_t)*in) * PRECISION32; in lwm2m_float_to_b32() local
36 if (val1 == 0 && val2 == 0) { in lwm2m_float_to_b32()
57 v = abs(val2); in lwm2m_float_to_b32()
86 b32[0] = val2 < 0 ? 0x80 : 0; in lwm2m_float_to_b32()
110 int64_t val2 = (*in - (int64_t)*in) * PRECISION64; in lwm2m_float_to_b64() local
118 if (val1 == 0 && val2 == 0) { in lwm2m_float_to_b64()
139 v = llabs(val2); in lwm2m_float_to_b64()
168 b64[0] = val2 < 0 ? 0x80 : 0; in lwm2m_float_to_b64()
195 int32_t val1, val2; in lwm2m_b32_to_float() local
202 val2 = 0; in lwm2m_b32_to_float()
242 val2 += k; in lwm2m_b32_to_float()
248 *out = (double)val1 - (double)val2 / PRECISION32; in lwm2m_b32_to_float()
250 *out = (double)val1 + (double)val2 / PRECISION32; in lwm2m_b32_to_float()
262 int64_t val1, val2; in lwm2m_b64_to_float() local
269 val2 = 0LL; in lwm2m_b64_to_float()
313 val2 += k; in lwm2m_b64_to_float()
319 *out = (double)val1 - (double)val2 / PRECISION64; in lwm2m_b64_to_float()
321 *out = (double)val1 + (double)val2 / PRECISION64; in lwm2m_b64_to_float()
332 int64_t val1, val2; in lwm2m_atof() local
357 val2 = 0; in lwm2m_atof()
365 val2 = val2 * 10 + (*pos - '0'); in lwm2m_atof()
369 val2 *= sign * base; in lwm2m_atof()
371 *out = (double)val1 + (double)val2 / PRECISION64; in lwm2m_atof()
381 int64_t val2 = (*input - (int64_t)*input) * PRECISION64; in lwm2m_ftoa() local
384 (long long)llabs(val2)); in lwm2m_ftoa()
424 (val1 == 0 && val2 < 0) ? "-" : "", (long long)val1, buf); in lwm2m_ftoa()