Home
last modified time | relevance | path

Searched refs:logical_exp (Results 1 – 1 of 1) sorted by relevance

/freebsd/contrib/libcbor/src/cbor/
H A Dencoding.c153 int8_t logical_exp = (int8_t)(exp - 127); in cbor_encode_half() local
154 CBOR_ASSERT(logical_exp == exp - 127); in cbor_encode_half()
157 if (logical_exp < -24) { in cbor_encode_half()
162 } else if (logical_exp < -14) { in cbor_encode_half()
167 ((uint16_t)(1u << (24u + logical_exp)) + in cbor_encode_half()
168 (uint16_t)(((mant >> (-logical_exp - 2)) + 1) >> in cbor_encode_half()
172 ((((uint8_t)logical_exp) + 15u) << 10u) | in cbor_encode_half()