compilation speed of the tccboot correction
we use gnu extension "case 0x80 ... 0xFF" for tcc & gcc
and perform test
if(c & 0x80)
for other compilers
This commit is contained in:
4
tccpp.c
4
tccpp.c
@ -2340,8 +2340,11 @@ static inline void next_nomacro1(void)
|
|||||||
p = file->buf_ptr;
|
p = file->buf_ptr;
|
||||||
redo_no_start:
|
redo_no_start:
|
||||||
c = *p;
|
c = *p;
|
||||||
|
#if (__TINYC__ || __GNUC__)
|
||||||
|
#else
|
||||||
if (c & 0x80)
|
if (c & 0x80)
|
||||||
goto parse_ident_fast;
|
goto parse_ident_fast;
|
||||||
|
#endif
|
||||||
switch(c) {
|
switch(c) {
|
||||||
case ' ':
|
case ' ':
|
||||||
case '\t':
|
case '\t':
|
||||||
@ -2451,6 +2454,7 @@ maybe_newline:
|
|||||||
case 'A' ... 'K':
|
case 'A' ... 'K':
|
||||||
case 'M' ... 'Z':
|
case 'M' ... 'Z':
|
||||||
case '_':
|
case '_':
|
||||||
|
case 0x80 ... 0xFF:
|
||||||
#else
|
#else
|
||||||
case 'a': case 'b': case 'c': case 'd':
|
case 'a': case 'b': case 'c': case 'd':
|
||||||
case 'e': case 'f': case 'g': case 'h':
|
case 'e': case 'f': case 'g': case 'h':
|
||||||
|
|||||||
Reference in New Issue
Block a user