Lines Matching refs:sign
96 static inline Float construct (int sign, int exponent, StorageType mantissa);
111 static Float constructBits (int sign, int exponent, StorageType mantissaBits);
121 inline int sign (void) const { return signBit() ? -1 : 1; } in sign() function in tcu::Float
132 static Float zero (int sign);
133 static Float inf (int sign);
136 static Float largestNormal (int sign);
137 static Float smallestNormal (int sign);
199 …ntBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::zero (int sign) in zero() argument
201 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in zero()
202 return Float(StorageType((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits))); in zero()
206 …entBias, Flags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::inf (int sign) in inf() argument
208 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in inf()
209 …return Float(StorageType(((sign > 0 ? 0ull : 1ull) << (ExponentBits+MantissaBits)) | (((1ull<<Expo… in inf()
219 …lags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::largestNormal (int sign) in largestNormal() argument
221 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in largestNormal()
222 …return Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct(sign, Expone… in largestNormal()
226 …ags> Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::smallestNormal (int sign) in smallestNormal() argument
228 DE_ASSERT(sign == 1 || ((Flags & FLOAT_HAS_SIGN) && sign == -1)); in smallestNormal()
229 …return Float<StorageType, ExponentBits, MantissaBits, ExponentBias, Flags>::construct(sign, 1 - Ex… in smallestNormal()
235 (int sign, int exponent, StorageType mantissa) in construct() argument
243 …const StorageType s = StorageType((StorageType(sign < 0 ? 1 : 0)) << (StorageType(ExponentBits+… in construct()
246 DE_ASSERT(sign == +1 || sign == -1); in construct()
256 (int sign, int exponent, StorageType mantissaBits) in constructBits() argument
258 const StorageType signBit = static_cast<StorageType>(sign < 0 ? 1 : 0); in constructBits()
261 DE_ASSERT(sign == +1 || sign == -1 ); in constructBits()
274 if (!(Flags & FLOAT_HAS_SIGN) && other.sign() < 0) in convert()
282 return inf(other.sign()); in convert()
292 return zero(other.sign()); in convert()
328 if (lastBits != 0ull && other.sign() < 0) in convert()
336 if (lastBits != 0ull && other.sign() > 0) in convert()
351 return zero(other.sign()); in convert()
374 if (lastBits != 0ull && other.sign() < 0) in convert()
382 if (lastBits != 0ull && other.sign() > 0) in convert()
413 …urn (((other.sign() < 0 && rd == ROUND_UPWARD) || (other.sign() > 0 && rd == ROUND_DOWNWARD)) ? la… in convert()