Update simple_decimal_conversion.h

This commit is contained in:
Daniel Lemire 2020-10-27 21:39:47 -04:00 committed by GitHub
parent 45745a325d
commit 70bb48c5c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -358,7 +358,7 @@ adjusted_mantissa parse_long_mantissa(const char *first, const char* last) {
// Let us try that.
const uint64_t mantissa = d.to_truncated_mantissa();
const int64_t exponent = d.to_truncated_exponent();
// credit: Nigel Tao who first implemented this fast path (to my knowledge).
// credit: R. Oudompheng who first implemented this fast path (to my knowledge).
// It is rough, but it does the job of accelerating the slow path since most
// long streams of digits are determined after 19 digits.
adjusted_mantissa am1 = compute_float<binary>(exponent, mantissa);
@ -370,10 +370,3 @@ adjusted_mantissa parse_long_mantissa(const char *first, const char* last) {
} // namespace fast_float
#endif
/*
uint32_t num_digits;
int32_t decimal_point;
bool negative;
bool truncated;
uint8_t digits[max_digits];*/