26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3148
if (
IsNegative
(value))
3837
if (
IsNegative
(value))
4066
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4579
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4596
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4638
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4655
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4699
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4722
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4736
IsNegative
(value) ? uint.MinValue : (uint)value;
4743
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4750
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4757
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4780
if (
IsNegative
(value))
4803
if (
IsNegative
(value))
4849
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4865
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4900
if (
IsNegative
(value))
4957
if (
IsNegative
(value))
4980
if (
IsNegative
(value))
5007
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5031
if (
IsNegative
(value))
5054
if (
IsNegative
(value))
5094
if (
IsNegative
(value))
5151
if (
IsNegative
(value))
5174
if (
IsNegative
(value))