Merge pull request #25 from lemire/dlemire/revert_micro_optimization

Reverting a microoptimization.
This commit is contained in:
Daniel Lemire 2020-11-09 18:36:29 -05:00 committed by GitHub
commit 8ea46c6155
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,9 @@
namespace fast_float {
fastfloat_really_inline bool is_integer(char c) noexcept { return (c & 0x30) == 0x30; }
// Next function can be micro-optimized, but compilers are entirely
// able to optimize it well.
fastfloat_really_inline bool is_integer(char c) noexcept { return c >= '0' && c <= '9'; }
// credit: https://johnnylee-sde.github.io/Fast-numeric-string-to-int/