22 references to One
System.Private.CoreLib (22)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Decimal.DecCalc.cs (7)
1782ulong roundBits = (ulong)(quotient & ((UInt128.One << drop) - 1)); 1839if ((shift == 128) && (value > (UInt128.One << 127))) 1840return UInt128.One; 1845UInt128 remainder = value & ((UInt128.One << shift) - UInt128.One); 1846UInt128 half = UInt128.One << (shift - 1); 1848if ((remainder > half) || ((remainder == half) && ((quotient & UInt128.One) != UInt128.Zero)))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (3)
2722UInt128 scale = UInt128.One; 3384UInt128 minMagnitude = isUnsigned ? UInt128.Zero : maxMagnitude + UInt128.One; 3475UInt128 magnitude = isNegative ? (~bits) + UInt128.One : bits;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (3)
160UInt128 remainder = fraction & ((UInt128.One << shift) - UInt128.One); 161UInt128 half = UInt128.One << (shift - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128DecimalReduce.cs (1)
129UInt128 result = UInt128.One;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128PiTrig.cs (2)
97UInt128 fractionBits = significand & ((UInt128.One << shift) - UInt128.One);
src\runtime\src\libraries\System.Private.CoreLib\src\System\UInt128.cs (6)
783? (One, left._lower - right._lower) 1310public static UInt128 operator --(UInt128 value) => value - One; 1313public static UInt128 operator checked --(UInt128 value) => checked(value - One); 1341public static UInt128 operator ++(UInt128 value) => value + One; 1344public static UInt128 operator checked ++(UInt128 value) => checked(value + One); 1369static UInt128 IMultiplicativeIdentity<UInt128, UInt128>.MultiplicativeIdentity => One;