26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3340
if (
IsNegative
(value))
4029
if (
IsNegative
(value))
4258
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4771
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4788
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4830
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4847
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4891
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4914
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4928
IsNegative
(value) ? uint.MinValue : (uint)value;
4935
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4942
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4949
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4972
if (
IsNegative
(value))
4995
if (
IsNegative
(value))
5041
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
5057
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
5092
if (
IsNegative
(value))
5149
if (
IsNegative
(value))
5172
if (
IsNegative
(value))
5199
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5223
if (
IsNegative
(value))
5246
if (
IsNegative
(value))
5286
if (
IsNegative
(value))
5343
if (
IsNegative
(value))
5366
if (
IsNegative
(value))