File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -883,8 +883,8 @@ static floating_point_t pow10_of_int(int floored_exp10)
883
883
}
884
884
// Compute 10^(floored_exp10) but (try to) make sure that doesn't overflow
885
885
floating_point_with_bit_access dwba ;
886
- int exp2 = bastardized_floor (( floating_point_t ) ( floored_exp10 * 3.321928094887362 + 0.5 ) );
887
- const floating_point_t z = ( floating_point_t ) ( floored_exp10 * 2.302585092994046 - exp2 * 0.6931471805599453 ) ;
886
+ int exp2 = bastardized_floor (floored_exp10 * ( floating_point_t ) 3.321928094887362 + ( floating_point_t ) 0.5 );
887
+ const floating_point_t z = floored_exp10 * ( floating_point_t ) 2.302585092994046 - exp2 * ( floating_point_t ) 0.6931471805599453 ;
888
888
const floating_point_t z2 = z * z ;
889
889
dwba .U = ((printf_fp_uint_t )(exp2 ) + FP_TYPE_BASE_EXPONENT ) << FP_TYPE_STORED_MANTISSA_BITS ;
890
890
// compute exp(z) using continued fractions,
You can’t perform that action at this time.
0 commit comments