26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3918
if (
IsNegative
(value))
4176
return
IsNegative
(x) ? y : x;
4201
return
IsNegative
(x) ? x : y;
4693
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4710
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4746
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4763
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4807
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4830
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4844
IsNegative
(value) ? uint.MinValue : (uint)value;
4851
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4858
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4865
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4888
if (
IsNegative
(value))
4911
if (
IsNegative
(value))
4951
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4967
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4993
if (
IsNegative
(value))
5038
if (
IsNegative
(value))
5069
if (
IsNegative
(value))
5096
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5120
if (
IsNegative
(value))
5143
if (
IsNegative
(value))
5174
if (
IsNegative
(value))
5219
if (
IsNegative
(value))
5250
if (
IsNegative
(value))