Home
last modified time | relevance | path

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

/zcbor-3.5.0-3.4.0/src/
Dzcbor_encode.c596 uint32_t expo = (value32 >> F32_EXPO_OFFS) & F32_EXPO_MSK; local
614 ((value32 << (expo - (F32_BIAS - F16_MIN_EXPO))) & SUBNORM_ROUND_MSK);
630 value16 |= (uint16_t)((expo - (F32_BIAS - F16_BIAS)) << F16_EXPO_OFFS);
633 } else if (expo != F32_EXPO_MSK || !mantissa) {
Dzcbor_decode.c791 uint32_t expo = (value16 >> F16_EXPO_OFFS) & F16_EXPO_MSK; local
794 if ((expo == 0) && (mantissa != 0)) {
799 uint32_t new_expo = (expo == 0 /* zero */) ? 0
800 : (expo == F16_EXPO_MSK /* inf/NaN */) ? F32_EXPO_MSK
801 : (expo + (F32_BIAS - F16_BIAS));