26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3939
if (
IsNegative
(value))
4631
if (
IsNegative
(value))
4860
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
5373
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
5390
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
5432
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
5449
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
5493
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
5516
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
5530
IsNegative
(value) ? uint.MinValue : (uint)value;
5537
IsNegative
(value) ? ulong.MinValue : (ulong)value;
5544
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
5551
IsNegative
(value) ? nuint.MinValue : (nuint)value;
5574
if (
IsNegative
(value))
5597
if (
IsNegative
(value))
5643
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
5659
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
5694
if (
IsNegative
(value))
5751
if (
IsNegative
(value))
5774
if (
IsNegative
(value))
5801
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5825
if (
IsNegative
(value))
5848
if (
IsNegative
(value))
5888
if (
IsNegative
(value))
5945
if (
IsNegative
(value))
5968
if (
IsNegative
(value))