Lines Matching full:mantissa
810 int32 mantissa = halfValue & 0x000003ff;
815 if (mantissa == 0)
829 while (!(mantissa & 0x00000400))
831 mantissa <<= 1;
836 mantissa &= ~0x00000400;
845 if (mantissa == 0)
868 mantissa <<= 13;
870 // Assemble sign, exponent and mantissa.
872 return (uint32) ((sign << 31) | (exponent << 23) | mantissa);
883 int32 mantissa = i & 0x007fffff;
899 mantissa = (mantissa | 0x00800000) >> (1 - exponent);
908 if (mantissa & 0x00001000)
909 mantissa += 0x00002000;
911 // Assemble the half from sign, exponent (zero) and mantissa.
913 return (uint16)(sign | (mantissa >> 13));
920 if (mantissa == 0)
937 mantissa >> 13));
948 if (mantissa & 0x00001000)
951 mantissa += 0x00002000;
953 if (mantissa & 0x00800000)
955 mantissa = 0; // overflow in significand,
968 // Assemble the half from sign, exponent and mantissa.
970 return (uint16)(sign | (exponent << 10) | (mantissa >> 13));
981 int32 mantissa = (((int32) input [1]) << 8) | input[2];
986 if (mantissa == 0)
1000 while (!(mantissa & 0x00010000))
1002 mantissa <<= 1;
1007 mantissa &= ~0x00010000;
1016 if (mantissa == 0)
1039 mantissa <<= 7;
1041 // Assemble sign, exponent and mantissa.
1043 return (uint32) ((sign << 31) | (exponent << 23) | mantissa);
1053 int32 mantissa = input & 0x007FFFFF;
1060 if (mantissa != 0x007FFFFF && ((mantissa >> 7) == 0xFFFF))
1063 mantissa &= 0x003FFFFF; // knock out msb to make it a NaN
1073 mantissa = 0x007FFFFF;
1082 mantissa = (mantissa | 0x00800000) >> (-63 - exponent);
1087 mantissa = 0;
1096 output [1] = (mantissa >> 15) & 0x00FF;
1097 output [2] = (mantissa >> 7) & 0x00FF;