25 references to IsNegative
System.Runtime.Numerics (25)
System\Numerics\BigInteger.cs (25)
3923
if (
IsNegative
(value))
4185
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4674
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4691
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4727
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4744
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4788
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4811
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4825
IsNegative
(value) ? uint.MinValue : (uint)value;
4832
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4839
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4846
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4869
if (
IsNegative
(value))
4892
if (
IsNegative
(value))
4932
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4948
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4974
if (
IsNegative
(value))
5019
if (
IsNegative
(value))
5050
if (
IsNegative
(value))
5077
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5101
if (
IsNegative
(value))
5124
if (
IsNegative
(value))
5155
if (
IsNegative
(value))
5200
if (
IsNegative
(value))
5231
if (
IsNegative
(value))