glibc/sysdeps
Chris Metcalf c86f7b80f4 tilegx: provide optimized strnlen, strstr, and strcasestr
strnlen() is based on the existing tile strlen() with length
checking added.  It speeds up by up to 5x, but on average across
the benchtest corpus by around 35%.  No regressions are seen.

strstr() does 8-byte aligned loads and compares using a 2-byte
filter on the first two bytes of the needle and then testing
the remaining bytes in needle using memcmp().  It speeds up
about 5x in the best case (for "found" needles), about 2x looking
at benchtest as a whole, with some slowdowns as much as 45%.
on a few cases (including the "fail" case for 128KB search).

strcasestr() is based on strstr() but uses a SIMD tolower
routine to convert 8-bytes to lower case in 5 instructions.
It also uses a 2-byte filter and then strncasecmp() for the
remaining bytes.  strncasecmp() is not optimized for SIMD, so
there is futher room for improvement.  However, it is still up
to 16x faster for "found" needles, averaging 2x faster on the
whole corpus of benchtests.  It does slow down by up to 35%
on a few cases, similarly to strstr().
2014-10-06 11:19:18 -04:00
..
aarch64 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
alpha Require autoconf 2.69 2014-09-29 07:53:36 -07:00
arm Require autoconf 2.69 2014-09-29 07:53:36 -07:00
generic Add __safe_fatal and use it in __pthread_unwind forwarder fallback. 2014-07-31 14:00:33 -07:00
gnu Add new Linux 3.16 constants to netinet/udp.h. 2014-09-12 12:13:08 +00:00
hppa Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
i386 i386 TLS_INIT_TP might produce bogus asm changing stack pointer [BZ #17319] 2014-08-28 09:53:08 +02:00
ia64 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
ieee754 Fix missing <math_private.h> in ldbl-96 fma 2014-08-04 10:20:20 +02:00
init_array Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
m68k Remove configuration name patterns from shlib-versions. 2014-09-12 12:28:47 +00:00
mach Require autoconf 2.69 2014-09-29 07:53:36 -07:00
microblaze Move architecture shlib-versions files to Linux-specific directories. 2014-07-17 14:31:12 +00:00
mips Remove extra whitespace from end of line. 2014-10-01 13:46:51 -07:00
nptl Check value of futex before updating in __lll_timedlock 2014-08-12 12:57:27 +01:00
posix Remove _POSIX_REGEX_VERSION 2014-09-15 10:16:14 +05:30
powerpc PowerPC: memset optimization for POWER8/PPC64 2014-09-10 07:39:46 -04:00
pthread Restore subdir conditional for tst-timer dependency. 2014-07-03 18:52:51 -07:00
s390 Require autoconf 2.69 2014-09-29 07:53:36 -07:00
sh Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30
sparc Get rid of sparc specific NPTL internaltypes.h header. 2014-07-09 22:19:09 -07:00
tile tilegx: provide optimized strnlen, strstr, and strcasestr 2014-10-06 11:19:18 -04:00
unix Move execve to syscalls.list (bug 14138). 2014-10-01 20:58:20 +00:00
wordsize-32 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
wordsize-64 Update copyright notices with scripts/update-copyrights 2014-01-01 22:00:23 +10:00
x86 Run tst-ld-sse-use.sh with bash. 2014-09-29 23:24:37 +00:00
x86_64 Remove unnecessary uses of NOT_IN_libc 2014-08-21 10:26:46 +05:30