Removed explicit loop unrolling in xx_strchr as that is the job of the compiler.
Этот коммит содержится в:
родитель
2399a1604f
Коммит
29010bfdd1
@ -255,19 +255,12 @@ compare_word_to_right (WEdit *edit, long i, const char *text,
|
|||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
#define XXX \
|
static inline const char *xx_strchr (const unsigned char *s, int c)
|
||||||
if (*s < '\005' || *s == (unsigned char) c) \
|
|
||||||
goto done; \
|
|
||||||
s++;
|
|
||||||
|
|
||||||
static inline char *xx_strchr (const unsigned char *s, int c)
|
|
||||||
{
|
{
|
||||||
repeat:
|
while (*s >= '\005' && *s != (unsigned char) c) {
|
||||||
XXX XXX XXX XXX XXX XXX XXX XXX;
|
s++;
|
||||||
XXX XXX XXX XXX XXX XXX XXX XXX;
|
}
|
||||||
goto repeat;
|
return (const char *) s;
|
||||||
done:
|
|
||||||
return (char *) s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i, struct syntax_rule rule)
|
static inline struct syntax_rule apply_rules_going_right (WEdit * edit, long i, struct syntax_rule rule)
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user