mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-11 13:50:06 +00:00
e413b14e18
This patch optimizes strcasestr function for power >= 8 systems. The average improvement of this optimization is ~40% and compares 16 bytes at a time using vector instructions. This patch is tested on powerpc64 and powerpc64le.
10 lines
327 B
Plaintext
10 lines
327 B
Plaintext
#include <locale/localeinfo.h>
|
|
|
|
--
|
|
|
|
LOCALE_CTYPE_TOLOWER offsetof (struct __locale_struct, __ctype_tolower)
|
|
LOCALE_CTYPE_TOUPPER offsetof (struct __locale_struct, __ctype_toupper)
|
|
_NL_CTYPE_NONASCII_CASE
|
|
LOCALE_DATA_VALUES offsetof (struct __locale_data, values)
|
|
SIZEOF_VALUES sizeof (((struct __locale_data *) 0)->values[0])
|