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