Skip to content

Commit

Permalink
Change formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jk-jeon authored and vitaut committed Sep 19, 2020
1 parent 2d9b1dd commit 3b6248f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions include/fmt/format-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -2081,7 +2081,8 @@ template <> struct cache_accessor<double> {
"k is out of range");

#if FMT_USE_FULL_CACHE_DRAGONBOX
return data::dragonbox_pow10_significands_128[k - float_info<double>::min_k];
return data::dragonbox_pow10_significands_128[k -
float_info<double>::min_k];
#else
static const int compression_ratio = 27;

Expand Down Expand Up @@ -2123,8 +2124,8 @@ template <> struct cache_accessor<double> {
// Get error
int error_idx = (k - float_info<double>::min_k) / 16;
uint32_t error = (data::dragonbox_pow10_recovery_errors[error_idx] >>
((k - float_info<double>::min_k) % 16) * 2) &
0x3;
((k - float_info<double>::min_k) % 16) * 2) &
0x3;

// Add the error back
FMT_ASSERT(recovered_cache.low() + error >= recovered_cache.low(), "");
Expand Down

0 comments on commit 3b6248f

Please sign in to comment.