Skip to content

Commit 22e5b08

Browse files
committed
Remove is_integer
1 parent d848f33 commit 22e5b08

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/generic/stage2/numberparsing.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -228,12 +228,6 @@ static bool parse_float_strtod(const char *ptr, double *outDouble) {
228228
return true;
229229
}
230230

231-
really_inline bool is_integer(char c) {
232-
return (c >= '0' && c <= '9');
233-
// this gets compiled to (uint8_t)(c - '0') <= 9 on all decent compilers
234-
}
235-
236-
237231
// check quickly whether the next 8 chars are made of digits
238232
// at a glance, it looks better than Mula's
239233
// http://0x80.pl/articles/swar-digits-validate.html

0 commit comments

Comments
 (0)