Home | History | Annotate | Download | only in utils

Lines Matching full:bits

57     /** Bits is a unsigned integer the same size as the floating point number. */
58 typedef typename SkTypeWithSize<sizeof(RawType) * CHAR_BIT>::UInt Bits;
60 /** # of bits in a number. */
63 /** # of fraction bits in a number. */
66 /** # of exponent bits in a number. */
70 static const Bits kSignBitMask = static_cast<Bits>(1) << (kBitCount - 1);
72 /** The mask for the fraction bits. */
73 static const Bits kFractionBitMask =
74 ~static_cast<Bits>(0) >> (kExponentBitCount + 1);
76 /** The mask for the exponent bits. */
77 static const Bits kExponentBitMask = ~(kSignBitMask | kFractionBitMask);
86 * around may change its bits, although the new value is guaranteed
88 * preserve the bits in x when x is a NAN.
92 /** Returns the exponent bits of this number. */
93 Bits exponent_bits() const { return kExponentBitMask & fU.bits; }
95 /** Returns the fraction bits of this number. */
96 Bits fraction_bits() const { return kFractionBitMask & fU.bits; }
101 // * the exponent bits are all ones
102 // * the fraction bits are not all zero.
117 const Bits dist = DistanceBetweenSignAndMagnitudeNumbers(fU.bits,
118 rhs.fU.bits);
128 /** The bits that represent the number. */
129 Bits bits;
149 static Bits SignAndMagnitudeToBiased(const Bits &sam) {
163 static Bits DistanceBetweenSignAndMagnitudeNumbers(const Bits &sam1,
164 const Bits &sam2) {
165 const Bits biased1 = SignAndMagnitudeToBiased(sam1);
166 const Bits biased2 = SignAndMagnitudeToBiased(sam2);