Merge pull request #13 from lemire/dlemire/issue7

Fixing issue 7 (renaming fallback)
This commit is contained in:
Daniel Lemire 2020-10-27 16:12:56 -04:00 committed by GitHub
commit 459f5db42c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 6 deletions

View File

@ -2,7 +2,7 @@
#define FASTFLOAT_PARSE_NUMBER_H #define FASTFLOAT_PARSE_NUMBER_H
#include "ascii_number.h" #include "ascii_number.h"
#include "decimal_to_binary.h" #include "decimal_to_binary.h"
#include "thompson_tao.h" #include "simple_decimal_conversion.h"
#include <cassert> #include <cassert>
#include <cmath> #include <cmath>

View File

@ -4,13 +4,14 @@
/** /**
* This code is meant to handle the case where we have more than 19 digits. * This code is meant to handle the case where we have more than 19 digits.
* *
* Based on work by Nigel Tao (at https://github.com/google/wuffs/) * It is based on work by Nigel Tao (at https://github.com/google/wuffs/)
* who credits Ken Thompson for the design (via a reference to the Go source * who credits Ken Thompson for the design (via a reference to the Go source
* code). See * code).
* https://github.com/google/wuffs/blob/aa46859ea40c72516deffa1b146121952d6dfd3b/internal/cgen/base/floatconv-submodule-data.c *
* https://github.com/google/wuffs/blob/46cd8105f47ca07ae2ba8e6a7818ef9c0df6c152/internal/cgen/base/floatconv-submodule-code.c * Rob Pike suggested that this algorithm be called "Simple Decimal Conversion".
*
* It is probably not very fast but it is a fallback that should almost never * It is probably not very fast but it is a fallback that should almost never
* be used in real life. * be used in real life. Though it is not fast, it is "easily" understood and debugged.
**/ **/
#include "ascii_number.h" #include "ascii_number.h"
#include "decimal_to_binary.h" #include "decimal_to_binary.h"