3 implementations of IsNegative
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1847
static bool IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.
IsNegative
(UInt128 decimalBits) => IsNegative(new Decimal128(decimalBits));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1815
static bool IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.
IsNegative
(uint decimalBits) => IsNegative(new Decimal32(decimalBits));
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1809
static bool IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.
IsNegative
(ulong decimalBits) => IsNegative(new Decimal64(decimalBits));
55 references to IsNegative
System.Private.CoreLib (55)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (30)
264
return leftInfinity && rightInfinity && (TDecimal.
IsNegative
(leftDecimalBits) == TDecimal.
IsNegative
(rightDecimalBits));
905
if (TDecimal.IsInfinity(right) && (TDecimal.
IsNegative
(left) != TDecimal.
IsNegative
(right)))
912
return TDecimal.
IsNegative
(left) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
917
return TDecimal.
IsNegative
(right) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
1147
bool resultSign = TDecimal.
IsNegative
(left) ^ TDecimal.
IsNegative
(right);
1220
return TDecimal.
IsNegative
(bits) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
1290
bool productSign = TDecimal.
IsNegative
(x) ^ TDecimal.
IsNegative
(y);
1308
if (TDecimal.IsInfinity(z) && (TDecimal.
IsNegative
(z) != productSign))
1319
return TDecimal.
IsNegative
(z) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
1486
bool resultSign = TDecimal.
IsNegative
(left) ^ TDecimal.
IsNegative
(right);
1642
bool resultSign = TDecimal.
IsNegative
(left);
1750
bool resultSign = TDecimal.
IsNegative
(left);
1867
bool sign = TDecimal.
IsNegative
(value);
1951
return TDecimal.
IsNegative
(bits) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
2069
return TDecimal.
IsNegative
(bits) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
2169
return TDecimal.
IsNegative
(x) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
2321
return TDecimal.
IsNegative
(bits)
3230
return TDecimal.
IsNegative
(x) ? y : x;
3250
return TDecimal.
IsNegative
(x) ? x : y;
3270
return TDecimal.
IsNegative
(x) ? y : x;
3290
return TDecimal.
IsNegative
(x) ? x : y;
3319
return TDecimal.
IsNegative
(y) ? x : y;
3341
return TDecimal.
IsNegative
(x) ? x : y;
3372
return TDecimal.
IsNegative
(y) ? x : y;
3389
return TDecimal.
IsNegative
(x) ? x : y;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (20)
36
return TDecimal.
IsNegative
(x) ? TDecimal.Zero : TDecimal.PositiveInfinity;
70
return TDecimal.
IsNegative
(x) ? TDecimal.Zero : TDecimal.PositiveInfinity;
104
return TDecimal.
IsNegative
(x) ? TDecimal.Zero : TDecimal.PositiveInfinity;
138
return TDecimal.
IsNegative
(x)
174
return TDecimal.
IsNegative
(x)
210
return TDecimal.
IsNegative
(x)
291
return TDecimal.
IsNegative
(x) ? TDecimal.NaNMask : TDecimal.PositiveInfinity;
335
bool baseIsOne = !TDecimal.IsInfinity(newBase) && !TDecimal.
IsNegative
(newBase)
344
bool xIsOne = !TDecimal.IsInfinity(x) && !TDecimal.
IsNegative
(x)
347
bool baseIsPositiveInfinity = TDecimal.IsInfinity(newBase) && !TDecimal.
IsNegative
(newBase);
372
return TDecimal.
IsNegative
(x) ? TDecimal.NaNMask : TDecimal.PositiveInfinity;
412
return TDecimal.
IsNegative
(x) ? TDecimal.NaNMask : TDecimal.PositiveInfinity;
483
return TDecimal.
IsNegative
(x) ? TDecimal.NaNMask : TDecimal.PositiveInfinity;
673
bool yNegative = TDecimal.
IsNegative
(y);
715
bool resultNegative = TDecimal.
IsNegative
(x) && yIsOddInteger;
888
bool xNegative = TDecimal.
IsNegative
(x);
1675
return TDecimal.
IsNegative
(x) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
1743
return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(TDecimal.
IsNegative
(x), TValue.One, 0);
1777
return TDecimal.
IsNegative
(x) ? TDecimal.NegativeInfinity : TDecimal.PositiveInfinity;
1811
return TDecimal.
IsNegative
(x) ? TDecimal.NaNMask : TDecimal.PositiveInfinity;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (2)
375
return TDecimal.
IsNegative
(value) ? info.NegativeInfinitySymbol : info.PositiveInfinitySymbol;
379
vlb.Append(TDecimal.
IsNegative
(value) ? info.NegativeInfinitySymbolTChar<TChar>() : info.PositiveInfinitySymbolTChar<TChar>());
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (3)
335
bool xIsNegative = TDecimal.
IsNegative
(xBits);
339
if (xIsNegative != TDecimal.
IsNegative
(yBits))
364
return TDecimal.
IsNegative
(yBits) ? 1 : -1;