Remove is_integer

This commit is contained in:
John Keiser 2020-07-01 15:04:19 -07:00
parent d848f33c48
commit 22e5b081c4
1 changed files with 0 additions and 6 deletions

View File

@ -228,12 +228,6 @@ static bool parse_float_strtod(const char *ptr, double *outDouble) {
return true;
}
really_inline bool is_integer(char c) {
return (c >= '0' && c <= '9');
// this gets compiled to (uint8_t)(c - '0') <= 9 on all decent compilers
}
// check quickly whether the next 8 chars are made of digits
// at a glance, it looks better than Mula's
// http://0x80.pl/articles/swar-digits-validate.html