Remove is_integer
This commit is contained in:
parent
d848f33c48
commit
22e5b081c4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue