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