25 references to IsNegative
System.Runtime.Numerics (25)
System\Numerics\BigInteger.cs (25)
3712
if (
IsNegative
(value))
3974
return compareResult < 0 || (compareResult == 0 &&
IsNegative
(x)) ? x : y;
4487
actualResult =
IsNegative
(value) ? byte.MinValue : byte.MaxValue;
4504
actualResult =
IsNegative
(value) ? char.MinValue : char.MaxValue;
4546
actualResult =
IsNegative
(value) ? short.MinValue : short.MaxValue;
4563
actualResult =
IsNegative
(value) ? int.MinValue : int.MaxValue;
4607
actualResult =
IsNegative
(value) ? sbyte.MinValue : sbyte.MaxValue;
4630
actualResult =
IsNegative
(value) ? ushort.MinValue : ushort.MaxValue;
4644
IsNegative
(value) ? uint.MinValue : (uint)value;
4651
IsNegative
(value) ? ulong.MinValue : (ulong)value;
4658
IsNegative
(value) ? UInt128.MinValue : (UInt128)value;
4665
IsNegative
(value) ? nuint.MinValue : (nuint)value;
4688
if (
IsNegative
(value))
4711
if (
IsNegative
(value))
4757
actualResult =
IsNegative
(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0];
4773
actualResult =
IsNegative
(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0];
4799
if (
IsNegative
(value))
4844
if (
IsNegative
(value))
4875
if (
IsNegative
(value))
4902
actualResult =
IsNegative
(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0];
4926
if (
IsNegative
(value))
4949
if (
IsNegative
(value))
4980
if (
IsNegative
(value))
5025
if (
IsNegative
(value))
5056
if (
IsNegative
(value))