26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3859
if (
IsNegative
(value))
4117
return
IsNegative
(x) ? y : x;
4142
return
IsNegative
(x) ? x : y;
4634
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4651
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4687
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4704
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4748
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4771
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4785
IsNegative
(value) ? uint.MinValue : (uint)value;
4792
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4799
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4806
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4829
if (
IsNegative
(value))
4852
if (
IsNegative
(value))
4892
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4908
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4934
if (
IsNegative
(value))
4979
if (
IsNegative
(value))
5010
if (
IsNegative
(value))
5037
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5061
if (
IsNegative
(value))
5084
if (
IsNegative
(value))
5115
if (
IsNegative
(value))
5160
if (
IsNegative
(value))
5191
if (
IsNegative
(value))