Skip to content

Commit 758dc51

Browse files
committed
Better comment.
1 parent 0164723 commit 758dc51

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/generic/numberparsing.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ really_inline double compute_float_64(int64_t power, uint64_t i, bool negative,
6767
// We are going to need to do some 64-bit arithmetic to get a more precise product.
6868
// We use a table lookup approach.
6969
components c =
70-
power_of_ten_components[power - FASTFLOAT_SMALLEST_POWER]; // safe because
71-
// power_index
72-
// <= 2*308
70+
power_of_ten_components[power - FASTFLOAT_SMALLEST_POWER];
71+
// safe because
72+
// power >= FASTFLOAT_SMALLEST_POWER
73+
// and power <= FASTFLOAT_LARGEST_POWER
7374
// we recover the mantissa of the power, it has a leading 1. It is always
7475
// rounded down.
7576
uint64_t factor_mantissa = c.mantissa;

0 commit comments

Comments
 (0)