26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3891
if (
IsNegative
(value))
4149
return
IsNegative
(x) ? y : x;
4174
return
IsNegative
(x) ? x : y;
4666
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4683
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4719
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4736
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4780
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4803
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4817
IsNegative
(value) ? uint.MinValue : (uint)value;
4824
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4831
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4838
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4861
if (
IsNegative
(value))
4884
if (
IsNegative
(value))
4924
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4940
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4966
if (
IsNegative
(value))
5011
if (
IsNegative
(value))
5042
if (
IsNegative
(value))
5069
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5093
if (
IsNegative
(value))
5116
if (
IsNegative
(value))
5147
if (
IsNegative
(value))
5192
if (
IsNegative
(value))
5223
if (
IsNegative
(value))