Home
last modified time | relevance | path

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

/zcbor-3.7.0/src/
Dzcbor_common.c322 #define F32_EXPO_OFFS 23 /* Bit offset of the exponent. */ macro
328 #define SUBNORM_ROUND_MSK (F32_MANTISSA_MSK | (1 << F32_EXPO_OFFS)) /* mantissa + lsb of expo for
330 #define SUBNORM_ROUND_BIT_MSK (1 << (F32_EXPO_OFFS - 1)) /* msb of mantissa (0x400000) */
334 #define NORM_ROUND_BIT_MSK (1 << (F32_EXPO_OFFS - F16_EXPO_OFFS - 1)) /* bit 12 (0x1000) */
351 uint32_t value32 = (sign << F32_SIGN_OFFS) | (new_expo << F32_EXPO_OFFS) in zcbor_float16_to_32()
352 | (mantissa << (F32_EXPO_OFFS - F16_EXPO_OFFS)); in zcbor_float16_to_32()
363 uint32_t expo = (value32 >> F32_EXPO_OFFS) & F32_EXPO_MSK; in zcbor_float32_to_16()
398 value16 |= (uint16_t)(mantissa >> (F32_EXPO_OFFS - F16_EXPO_OFFS)); in zcbor_float32_to_16()
406 uint16_t new_mantissa = (uint16_t)(mantissa >> (F32_EXPO_OFFS - F16_EXPO_OFFS)); in zcbor_float32_to_16()