26 references to IsNegative
System.Runtime.Numerics (26)
System\Numerics\BigInteger.cs (26)
3148if (IsNegative(value)) 3837if (IsNegative(value)) 4066return compareResult < 0 || (compareResult == 0 && IsNegative(x)) ? x : y; 4579actualResult = IsNegative(value) ? byte.MinValue : byte.MaxValue; 4596actualResult = IsNegative(value) ? char.MinValue : char.MaxValue; 4638actualResult = IsNegative(value) ? short.MinValue : short.MaxValue; 4655actualResult = IsNegative(value) ? int.MinValue : int.MaxValue; 4699actualResult = IsNegative(value) ? sbyte.MinValue : sbyte.MaxValue; 4722actualResult = IsNegative(value) ? ushort.MinValue : ushort.MaxValue; 4736IsNegative(value) ? uint.MinValue : (uint)value; 4743IsNegative(value) ? ulong.MinValue : (ulong)value; 4750IsNegative(value) ? UInt128.MinValue : (UInt128)value; 4757IsNegative(value) ? nuint.MinValue : (nuint)value; 4780if (IsNegative(value)) 4803if (IsNegative(value)) 4849actualResult = IsNegative(value) ? (short)(~value._bits[0] + 1) : (short)value._bits[0]; 4865actualResult = IsNegative(value) ? (int)(~value._bits[0] + 1) : (int)value._bits[0]; 4900if (IsNegative(value)) 4957if (IsNegative(value)) 4980if (IsNegative(value)) 5007actualResult = IsNegative(value) ? (sbyte)(~value._bits[0] + 1) : (sbyte)value._bits[0]; 5031if (IsNegative(value)) 5054if (IsNegative(value)) 5094if (IsNegative(value)) 5151if (IsNegative(value)) 5174if (IsNegative(value))