26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3231
if (
IsNegative
(value))
3920
if (
IsNegative
(value))
4149
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4662
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4679
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4721
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4738
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4782
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4805
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4819
IsNegative
(value) ? uint.MinValue : (uint)value;
4826
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4833
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4840
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4863
if (
IsNegative
(value))
4886
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];
4983
if (
IsNegative
(value))
5040
if (
IsNegative
(value))
5063
if (
IsNegative
(value))
5090
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
5114
if (
IsNegative
(value))
5137
if (
IsNegative
(value))
5177
if (
IsNegative
(value))
5234
if (
IsNegative
(value))
5257
if (
IsNegative
(value))