D | lwm2m_util.c | 15 #define SHIFT_LEFT(v, o, m) (((v) << (o)) & (m)) argument 16 #define SHIFT_RIGHT(v, o, m) (((v) >> (o)) & (m)) argument 26 int32_t e = -1, v, f = 0; in lwm2m_float_to_b32() local 42 v = abs(val1); in lwm2m_float_to_b32() 45 while (v > 0) { in lwm2m_float_to_b32() 48 if (v & 1) { in lwm2m_float_to_b32() 52 v >>= 1; in lwm2m_float_to_b32() 57 v = abs(val2); in lwm2m_float_to_b32() 61 while (v > 0 && i < 23) { in lwm2m_float_to_b32() 62 v *= 2; in lwm2m_float_to_b32() [all …]
|