1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

Micro-optimize critical path of strstr, strcase and memmem.

This commit is contained in:
Maxim Kuvyrkov
2012-05-28 22:46:07 -07:00
parent 99677e5755
commit bcca089526
4 changed files with 18 additions and 1 deletions

View File

@ -46,6 +46,7 @@
#define AVAILABLE1(h, h_l, j, n_l) (true)
#define AVAILABLE2(h, h_l, j, n_l) AVAILABLE (h, h_l, j, n_l)
#define RET0_IF_0(a) if (!a) goto ret0
#define AVAILABLE1_USES_J (0)
#define CANON_ELEMENT(c) TOLOWER (c)
#define CMP_FUNC(p1, p2, l) \
__strncasecmp ((const char *) (p1), (const char *) (p2), l)