25 references to IsNegative
System.Runtime.Numerics (25)
System\Numerics\BigInteger.cs (25)
3724
if (
IsNegative
(value))
3986
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4499
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4516
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4558
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4575
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4619
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4642
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4656
IsNegative
(value) ? uint.MinValue : (uint)value;
4663
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4670
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4677
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4700
if (
IsNegative
(value))
4723
if (
IsNegative
(value))
4769
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4785
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4811
if (
IsNegative
(value))
4856
if (
IsNegative
(value))
4887
if (
IsNegative
(value))
4914
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
4938
if (
IsNegative
(value))
4961
if (
IsNegative
(value))
4992
if (
IsNegative
(value))
5037
if (
IsNegative
(value))
5068
if (
IsNegative
(value))