• Home
  • Raw
  • Download

Lines Matching refs:sign

88 	static inline Float		construct		(int sign, int exponent, StorageType mantissa);
103 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
113 inline int sign (void) const { return signBit() ? -1 : 1; } in sign() function in tcu::Float
122 static Float zero (int sign);
123 static Float inf (int sign);
184 …ntBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::zero (int sign) in zero() argument
186 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in zero()
187 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
191 …entBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::inf (int sign) in inf() argument
193 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in inf()
194 …return Float(StorageType(((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits)) | (((1ull<<Expo… in inf()
206 (int sign, int exponent, StorageType mantissa) in construct() argument
214 const StorageType s = StorageType(sign < 0 ? 1 : 0) << (ExponentBits+MantissaBits); in construct()
217 DE_ASSERT(sign == +1 || sign == -1); in construct()
227 (int sign, int exponent, StorageType mantissaBits) in constructBits() argument
229 const StorageType signBit = sign < 0 ? 1 : 0; in constructBits()
232 DE_ASSERT(sign == +1 || sign == -1 ); in constructBits()
245 if (!(Flags & FLOAT_HAS_SIGN) && other.sign() < 0) in convert()
252 return inf(other.sign()); in convert()
260 return zero(other.sign()); in convert()
291 return zero(other.sign()); in convert()
323 return inf(other.sign()); in convert()