Searched refs:mantissa (Results 1 – 2 of 2) sorted by relevance
959 uint64_t mantissa; in pb_encode_float_as_double() local966 mantissa = in.i & 0x7FFFFF; in pb_encode_float_as_double()975 if (!mantissa) in pb_encode_float_as_double()983 mantissa <<= 1; in pb_encode_float_as_double()984 while (!(mantissa & 0x800000)) in pb_encode_float_as_double()986 mantissa <<= 1; in pb_encode_float_as_double()989 mantissa &= 0x7FFFFF; in pb_encode_float_as_double()994 mantissa <<= 29; in pb_encode_float_as_double()995 mantissa |= (uint64_t)(exponent + 1023) << 52; in pb_encode_float_as_double()996 mantissa |= (uint64_t)sign << 63; in pb_encode_float_as_double()[all …]
1666 uint32_t mantissa; in pb_decode_double_as_float() local1676 mantissa = (value >> 28) & 0xFFFFFF; /* Highest 24 bits */ in pb_decode_double_as_float()1683 mantissa >>= 1; in pb_decode_double_as_float()1691 mantissa = 0; in pb_decode_double_as_float()1697 mantissa = 0; in pb_decode_double_as_float()1702 mantissa |= 0x1000000; in pb_decode_double_as_float()1703 mantissa >>= (-126 - exponent); in pb_decode_double_as_float()1708 mantissa = (mantissa + 1) >> 1; in pb_decode_double_as_float()1711 if (mantissa & 0x800000) in pb_decode_double_as_float()1714 mantissa &= 0x7FFFFF; in pb_decode_double_as_float()[all …]