Searched refs:mantissa (Results 1 – 2 of 2) sorted by relevance
946 uint64_t mantissa; in pb_encode_float_as_double() local953 mantissa = in.i & 0x7FFFFF; in pb_encode_float_as_double()962 if (!mantissa) in pb_encode_float_as_double()970 mantissa <<= 1; in pb_encode_float_as_double()971 while (!(mantissa & 0x800000)) in pb_encode_float_as_double()973 mantissa <<= 1; in pb_encode_float_as_double()976 mantissa &= 0x7FFFFF; in pb_encode_float_as_double()981 mantissa <<= 29; in pb_encode_float_as_double()982 mantissa |= (uint64_t)(exponent + 1023) << 52; in pb_encode_float_as_double()983 mantissa |= (uint64_t)sign << 63; in pb_encode_float_as_double()[all …]
1648 uint32_t mantissa; in pb_decode_double_as_float() local1658 mantissa = (value >> 28) & 0xFFFFFF; /* Highest 24 bits */ in pb_decode_double_as_float()1665 mantissa >>= 1; in pb_decode_double_as_float()1673 mantissa = 0; in pb_decode_double_as_float()1679 mantissa = 0; in pb_decode_double_as_float()1684 mantissa |= 0x1000000; in pb_decode_double_as_float()1685 mantissa >>= (-126 - exponent); in pb_decode_double_as_float()1690 mantissa = (mantissa + 1) >> 1; in pb_decode_double_as_float()1693 if (mantissa & 0x800000) in pb_decode_double_as_float()1696 mantissa &= 0x7FFFFF; in pb_decode_double_as_float()[all …]