25 references to IsNegative
System.Runtime.Numerics (25)
System\Numerics\BigInteger.cs (25)
3724if (IsNegative(value)) 3986return compareResult < 0 || (compareResult == 0 && IsNegative(x)) ? x : y; 4499actualResult = IsNegative(value) ? byte.MinValue : byte.MaxValue; 4516actualResult = IsNegative(value) ? char.MinValue : char.MaxValue; 4558actualResult = IsNegative(value) ? short.MinValue : short.MaxValue; 4575actualResult = IsNegative(value) ? int.MinValue : int.MaxValue; 4619actualResult = IsNegative(value) ? sbyte.MinValue : sbyte.MaxValue; 4642actualResult = IsNegative(value) ? ushort.MinValue : ushort.MaxValue; 4656IsNegative(value) ? uint.MinValue : (uint)value; 4663IsNegative(value) ? ulong.MinValue : (ulong)value; 4670IsNegative(value) ? UInt128.MinValue : (UInt128)value; 4677IsNegative(value) ? nuint.MinValue : (nuint)value; 4700if (IsNegative(value)) 4723if (IsNegative(value)) 4769actualResult = IsNegative(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0]; 4785actualResult = IsNegative(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0]; 4811if (IsNegative(value)) 4856if (IsNegative(value)) 4887if (IsNegative(value)) 4914actualResult = IsNegative(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0]; 4938if (IsNegative(value)) 4961if (IsNegative(value)) 4992if (IsNegative(value)) 5037if (IsNegative(value)) 5068if (IsNegative(value))