diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2016-04-20 23:10:42 +0530 |
---|---|---|
committer | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2016-04-22 19:23:13 +0530 |
commit | e413b14e18ac635b5683ab7bbb1c901f79d1b06b (patch) | |
tree | 8d6b9284ad6bbf500a9bedbd04d972cd8358ffdd /sysdeps/powerpc/locale-defines.sym | |
parent | 146ffc146fe3bf97cd3bc1a649f1ffa8acfa4a0d (diff) | |
download | glibc-e413b14e18ac635b5683ab7bbb1c901f79d1b06b.tar.gz glibc-e413b14e18ac635b5683ab7bbb1c901f79d1b06b.tar.xz glibc-e413b14e18ac635b5683ab7bbb1c901f79d1b06b.zip |
powerpc: strcasestr optmization for power8
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.
Diffstat (limited to 'sysdeps/powerpc/locale-defines.sym')
-rw-r--r-- | sysdeps/powerpc/locale-defines.sym | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sysdeps/powerpc/locale-defines.sym b/sysdeps/powerpc/locale-defines.sym index af64b920a4..5c5379c39f 100644 --- a/sysdeps/powerpc/locale-defines.sym +++ b/sysdeps/powerpc/locale-defines.sym @@ -3,3 +3,7 @@ -- 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]) |