25 references to IsNegative
System.Runtime.Numerics (25)
System\Numerics\BigInteger.cs (25)
3596
if (
IsNegative
(value))
3825
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4338
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4355
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4397
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4414
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4458
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4481
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4495
IsNegative
(value) ? uint.MinValue : (uint)value;
4502
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4509
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4516
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4539
if (
IsNegative
(value))
4562
if (
IsNegative
(value))
4608
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4624
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4659
if (
IsNegative
(value))
4716
if (
IsNegative
(value))
4739
if (
IsNegative
(value))
4766
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
4790
if (
IsNegative
(value))
4813
if (
IsNegative
(value))
4853
if (
IsNegative
(value))
4910
if (
IsNegative
(value))
4933
if (
IsNegative
(value))