3 implementations of Power10
System.Private.CoreLib (3)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (1)
1789static UInt128 IDecimalIeee754ParseAndFormatInfo<Decimal128, UInt128>.Power10(int exponent) => UInt128Powers10[exponent];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (1)
1762static uint IDecimalIeee754ParseAndFormatInfo<Decimal32, uint>.Power10(int exponent) => UInt32Powers10[exponent];
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (1)
1755static ulong IDecimalIeee754ParseAndFormatInfo<Decimal64, ulong>.Power10(int exponent) => UInt64Powers10[exponent];
45 references to Power10
System.Private.CoreLib (45)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (40)
32TValue significand = decoded.Significand * TDecimal.Power10(numberZeroDigits); 195TValue factor = TDecimal.Power10(diffExponent); 301(TValue quotient, TValue remainder) = TValue.DivRem(right.Significand, TDecimal.Power10(diffExponent)); 543if (payload >= TDecimal.Power10(TDecimal.Precision - 1)) 554TValue scale = TDecimal.Power10(TDecimal.Precision - 1); 620TValue significand = (TValue.CreateTruncating(msd) * TDecimal.Power10(TDecimal.Precision - 1)) + UnpackDeclets(dpdBits & payloadMask, declets); 819significand = TDecimal.Power10(TDecimal.Precision - 1); 855if (payload >= TDecimal.Power10(TDecimal.Precision - 1)) 952TValue paddedSignificand = nonZero.Significand * TDecimal.Power10(pad); 1010(loRetained, TValue remainder) = TValue.DivRem(lo.Significand, TDecimal.Power10(droppedDigits)); 1355return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(addendSign, addendSignificand * TDecimal.Power10(pad), addendExponent - pad); 1579TValue pow = TDecimal.Power10(k); 1692while ((chunk < TDecimal.Precision - 1) && (TDecimal.Power10(chunk + 1) <= chunkLimit)) 1700remainder = (remainder * TDecimal.Power10(step)) % b.Significand; 1715remainder = a.Significand % (b.Significand * TDecimal.Power10(gap)); 1803while ((chunk < TDecimal.Precision - 1) && (TDecimal.Power10(chunk + 1) <= chunkLimit)) 1811TValue scaled = remainder * TDecimal.Power10(step); 1832divisor = (b.Significand * TDecimal.Power10(gap - 1)) * TDecimal.Power10(1); 1898coefficient *= TDecimal.Power10(1); 1987TValue half = five * TDecimal.Power10(coefficientDigits - 1); 1994TValue divisor = TDecimal.Power10(drop); 1998TValue half = five * TDecimal.Power10(drop - 1); 2089TValue significand = a.Significand * TDecimal.Power10((int)surplus); 2116TValue half = five * TDecimal.Power10(coefficientDigits - 1); 2121TValue divisor = TDecimal.Power10((int)drop); 2124TValue half = five * TDecimal.Power10((int)drop - 1); 2198TValue significand = a.Significand * TDecimal.Power10(shift); 2220TValue half = five * TDecimal.Power10(coefficientDigits - 1); 2226TValue divisor = TDecimal.Power10(drop); 2230TValue half = five * TDecimal.Power10(drop - 1); 2355significand *= TDecimal.Power10(padding); 2366significand = TDecimal.Power10(TDecimal.Precision - 1); 2375if ((significand == (TDecimal.Power10(TDecimal.Precision - 1) - TValue.One)) && (exponent != TDecimal.MinAdjustedExponent)) 2410TValue largest = TDecimal.Power10(highestTableExponent); 2419return result * TDecimal.Power10(exponent); 2514WideMultiplyByLimb(ref high, ref low, TDecimal.Power10(chunk)); 2814(TValue rd, TValue rest) = TValue.DivRem(removed, TDecimal.Power10(dropCount - 1)); 2924TValue paddedSignificand = low * TDecimal.Power10(numberZeroDigits); 3000significand = TDecimal.Power10(TDecimal.Precision - 1);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128Conversions.cs (2)
57DiyFp128 pow = DiyFp128FromUInt128(UInt128.CreateTruncating(TDecimal.Power10(chunk)), 0); 119UInt128 pow10Pm1 = UInt128.CreateTruncating(TDecimal.Power10(precision - 1)); // 10^(P-1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (3)
275return significand == TDecimal.Power10(k); 576(TValue quotient, TValue remainder) = TValue.DivRem(significand, TDecimal.Power10(k)); 616TValue power = TDecimal.Power10(k);