1 write to UnbiasedExponent
System.Private.CoreLib (1)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (1)
56UnbiasedExponent = unbiasedExponent;
142 references to UnbiasedExponent
System.Private.CoreLib (142)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.cs (83)
33int exponent = decoded.UnbiasedExponent - numberZeroDigits; 36return HashCode.Combine(decoded.Signed, decoded.Significand, decoded.UnbiasedExponent); 177if (current.UnbiasedExponent == other.UnbiasedExponent && current.Significand == other.Significand) 182if (current.UnbiasedExponent < other.UnbiasedExponent) 192int diffExponent = current.UnbiasedExponent - other.UnbiasedExponent; 284if (left.UnbiasedExponent == right.UnbiasedExponent) 290if (left.UnbiasedExponent < right.UnbiasedExponent) 295int diffExponent = left.UnbiasedExponent - right.UnbiasedExponent; 552uint biasedExponent = (uint)(decoded.UnbiasedExponent + TDecimal.ExponentBias); 931int zeroExponent = Math.Min(a.UnbiasedExponent, b.UnbiasedExponent); 943int zeroExponent = aZero ? a.UnbiasedExponent : b.UnbiasedExponent; 945if (zeroExponent >= nonZero.UnbiasedExponent) 951int pad = Math.Min(nonZero.UnbiasedExponent - zeroExponent, TDecimal.Precision - nonZeroDigits); 953return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(nonZero.Signed, paddedSignificand, nonZero.UnbiasedExponent - pad); 963if (a.UnbiasedExponent >= b.UnbiasedExponent) 974int exponentDifference = hi.UnbiasedExponent - lo.UnbiasedExponent; 978int commonExponent = hi.UnbiasedExponent - effectiveDifference; 1173int productExponent = a.UnbiasedExponent + b.UnbiasedExponent; 1231return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(value.Signed, TValue.Zero, value.UnbiasedExponent + constantExponent); 1246return NumberToDecimalIeee754BitsFromWide<TDecimal, TValue>(value.Signed, high, low, value.UnbiasedExponent + constantExponent + precision, sticky); 1326int productExponent = dx.UnbiasedExponent + dy.UnbiasedExponent; 1330int addendExponent = dz.UnbiasedExponent; 1532return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(resultSign, TValue.Zero, a.UnbiasedExponent - b.UnbiasedExponent); 1543int quotientExponent = a.UnbiasedExponent - b.UnbiasedExponent - shift; 1592int idealExponent = a.UnbiasedExponent - b.UnbiasedExponent; 1655return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(resultSign, a.Significand, a.UnbiasedExponent); 1667int resultExponent = Math.Min(a.UnbiasedExponent, b.UnbiasedExponent); 1677if (a.UnbiasedExponent >= b.UnbiasedExponent) 1697for (int gap = a.UnbiasedExponent - b.UnbiasedExponent; (gap > 0) && !TValue.IsZero(remainder); gap -= chunk) 1707int gap = b.UnbiasedExponent - a.UnbiasedExponent; 1763return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(resultSign, a.Significand, a.UnbiasedExponent); 1775int resultExponent = Math.Min(a.UnbiasedExponent, b.UnbiasedExponent); 1789if (a.UnbiasedExponent >= b.UnbiasedExponent) 1808for (int gap = a.UnbiasedExponent - b.UnbiasedExponent; (gap > 0) && !TValue.IsZero(remainder); gap -= chunk) 1823int gap = b.UnbiasedExponent - a.UnbiasedExponent; 1878int idealExponent = a.UnbiasedExponent >> 1; 1896if ((a.UnbiasedExponent & 1) != 0) 1957if (a.UnbiasedExponent >= targetExponent) 1961return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(a.Signed, a.Significand, a.UnbiasedExponent); 1964int drop = targetExponent - a.UnbiasedExponent; 2042return a.UnbiasedExponent + TDecimal.CountDigits(a.Significand) - 1; 2073long exponent = (long)a.UnbiasedExponent + n; 2177int targetExponent = UnpackDecimalIeee754<TDecimal, TValue>(y).UnbiasedExponent; 2187if (targetExponent <= a.UnbiasedExponent) 2191int shift = a.UnbiasedExponent - targetExponent; 2204int drop = targetExponent - a.UnbiasedExponent; 2268return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(signed: false, TValue.One, a.UnbiasedExponent); 2296return UnpackDecimalIeee754<TDecimal, TValue>(x).UnbiasedExponent == UnpackDecimalIeee754<TDecimal, TValue>(y).UnbiasedExponent; 2334int exponent = a.UnbiasedExponent; 3055int exponent = decoded.UnbiasedExponent; 3184int adjustedExponent = decoded.UnbiasedExponent + TDecimal.CountDigits(decoded.Significand) - 1; 3208int adjustedExponent = decoded.UnbiasedExponent + TDecimal.CountDigits(decoded.Significand) - 1; 3463int exponent = decoded.UnbiasedExponent; 3702return DecimalIeee754FiniteNumberBinaryEncoding<TTargetDecimal, TTargetValue>(decoded.Signed, TTargetValue.Zero, decoded.UnbiasedExponent); 3706return DecimalIeee754FromMagnitude<TTargetDecimal, TTargetValue>(decoded.Signed, magnitude, decoded.UnbiasedExponent); 3744int exponent = decoded.UnbiasedExponent; 3778number.Scale = digitsCount + decoded.UnbiasedExponent; 3895return new decimal(0, 0, 0, decoded.Signed, (byte)Math.Clamp(-decoded.UnbiasedExponent, 0, 28)); 3904number.Scale = digitsCount + decoded.UnbiasedExponent;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.DiyFp128PiTrig.cs (1)
36int exponent = decoded.UnbiasedExponent;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.DecimalIeee754.Transcendental.cs (45)
38int scale = -decoded.UnbiasedExponent; 103DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 137DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 171DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 207DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 243DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 279DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 371DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 402&& DecimalIeee754MagnitudeIsOne<TDecimal, TValue>(decodedBase.UnbiasedExponent, decodedBase.Significand); 416&& DecimalIeee754MagnitudeIsOne<TDecimal, TValue>(decodedX.UnbiasedExponent, decodedX.Significand); 475DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 524DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 613DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 767&& DecimalIeee754MagnitudeIsOne<TDecimal, TValue>(dx.UnbiasedExponent, dx.Significand)) 788yIsInteger = DecimalIeee754IsInteger<TDecimal, TValue>(dy.UnbiasedExponent, dy.Significand, out yIsOddInteger); 806cmp = DecimalIeee754CompareMagnitudeToOne<TDecimal, TValue>(dx.UnbiasedExponent, dx.Significand); 872DiyFp128 baseValue = DecimalToDiyFp128<TDecimal, TValue>(signed: false, dx.UnbiasedExponent, dx.Significand); 873DiyFp128 exponentValue = DecimalToDiyFp128<TDecimal, TValue>(dy.Signed, dy.UnbiasedExponent, dy.Significand); 918DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 952return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(signed: false, dx.Significand, dx.UnbiasedExponent); 957return DecimalIeee754FiniteNumberBinaryEncoding<TDecimal, TValue>(signed: false, dy.Significand, dy.UnbiasedExponent); 968DiyFp128 xMagnitude = DecimalToDiyFp128<TDecimal, TValue>(signed: false, dx.UnbiasedExponent, dx.Significand); 969DiyFp128 yMagnitude = DecimalToDiyFp128<TDecimal, TValue>(signed: false, dy.UnbiasedExponent, dy.Significand); 1044int padding = int.Min(TDecimal.Precision - TDecimal.CountDigits(dx.Significand), dx.UnbiasedExponent - TDecimal.MinAdjustedExponent); 1046dx.Signed, dx.Significand * TDecimal.Power10(padding), dx.UnbiasedExponent - padding); 1068DiyFp128 baseValue = DecimalToDiyFp128<TDecimal, TValue>(signed: false, dx.UnbiasedExponent, dx.Significand); 1089DiyFp128 value = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1092bool useDecimal = (value._exponent >= 1) && !DiyFp128DecimalReduceExact(coefficient, decoded.UnbiasedExponent); 1093return new DiyFp128TrigReduceArg(value, coefficient, decoded.UnbiasedExponent, sign, useDecimal); 1277DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1313DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1361DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1433DiyFp128 argumentY = DecimalToDiyFp128<TDecimal, TValue>(decodedY.Signed, decodedY.UnbiasedExponent, decodedY.Significand); 1434DiyFp128 argumentX = DecimalToDiyFp128<TDecimal, TValue>(decodedX.Signed, decodedX.UnbiasedExponent, decodedX.Significand); 1633DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1670DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1719DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1793DiyFp128 argumentY = DecimalToDiyFp128<TDecimal, TValue>(decodedY.Signed, decodedY.UnbiasedExponent, decodedY.Significand); 1794DiyFp128 argumentX = DecimalToDiyFp128<TDecimal, TValue>(decodedX.Signed, decodedX.UnbiasedExponent, decodedX.Significand); 1829DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1863DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1897DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1931DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 1967DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand); 2011DiyFp128 argument = DecimalToDiyFp128<TDecimal, TValue>(decoded.Signed, decoded.UnbiasedExponent, decoded.Significand);
src\runtime\src\libraries\System.Private.CoreLib\src\System\Number.Formatting.cs (2)
541number.Scale = unpackDecimal.UnbiasedExponent; 557number.Scale = significand.Length + unpackDecimal.UnbiasedExponent;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal128.cs (3)
851int exponent = Number.UnpackDecimalIeee754<Decimal128, UInt128>(new UInt128(_upper, _lower)).UnbiasedExponent; 872if (BinaryPrimitives.TryWriteInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new UInt128(_upper, _lower)).UnbiasedExponent)) 885if (BinaryPrimitives.TryWriteInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal128, UInt128>(new UInt128(_upper, _lower)).UnbiasedExponent))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal32.cs (3)
862int exponent = Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent; 883if (BinaryPrimitives.TryWriteInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent)) 896if (BinaryPrimitives.TryWriteInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal32, uint>(_value).UnbiasedExponent))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\Decimal64.cs (3)
855int exponent = Number.UnpackDecimalIeee754<Decimal64, ulong>(_value).UnbiasedExponent; 876if (BinaryPrimitives.TryWriteInt32BigEndian(destination, Number.UnpackDecimalIeee754<Decimal64, ulong>(_value).UnbiasedExponent)) 889if (BinaryPrimitives.TryWriteInt32LittleEndian(destination, Number.UnpackDecimalIeee754<Decimal64, ulong>(_value).UnbiasedExponent))
src\runtime\src\libraries\System.Private.CoreLib\src\System\Numerics\TotalOrderIeee754Comparer.cs (2)
387int exponentComparison = x.UnbiasedExponent.CompareTo(y.UnbiasedExponent);