glibc/sysdeps/powerpc/powerpc32/power7
Alan Modra db9b4570c5 PowerPC LE strlen
http://sourceware.org/ml/libc-alpha/2013-08/msg00097.html

This is the first of nine patches adding little-endian support to the
existing optimised string and memory functions.  I did spend some
time with a power7 simulator looking at cycle by cycle behaviour for
memchr, but most of these patches have not been run on cpu simulators
to check that we are going as fast as possible.  I'm sure PowerPC can
do better.  However, the little-endian support mostly leaves main
loops unchanged, so I'm banking on previous authors having done a
good job on big-endian..  As with most code you stare at long enough,
I found some improvements for big-endian too.

Little-endian support for strlen.  Like most of the string functions,
I leave the main word or multiple-word loops substantially unchanged,
just needing to modify the tail.

Removing the branch in the power7 functions is just a tidy.  .align
produces a branch anyway.  Modifying regs in the non-power7 functions
is to suit the new little-endian tail.

	* sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
	support.  Don't branch over align.
	* sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
	* sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian support.
	Rearrange tmp reg use to suit.  Comment.
	* sysdeps/powerpc/powerpc32/strlen.S: Likewise.
2013-10-04 10:39:32 +09:30
..
fpu PowerPC floating point little-endian [12 of 15] 2013-10-04 10:35:43 +09:30
Implies powerpc: Re-work the Implies structure 2010-06-30 09:57:38 -07:00
Makefile Optimized strcasecmp for Power7 2011-12-17 20:32:59 -05:00
memchr.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
memcmp.S Fix typos. 2013-08-21 19:48:48 +02:00
memcpy.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
mempcpy.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
memrchr.S PowerPC: fix POWER7 memrchr for some large inputs 2013-09-05 09:32:56 -05:00
memset.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
rawmemchr.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
strcasecmp_l.S Optimized strcasecmp for Power7 2011-12-17 20:32:59 -05:00
strcasecmp.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
strchr.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
strchrnul.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00
strlen.S PowerPC LE strlen 2013-10-04 10:39:32 +09:30
strncmp.S Remove powerpc32 strncmp comments about bounded pointers. 2013-03-04 23:53:05 +00:00
strnlen.S Remove powerpc32 bounded-pointers code. 2013-02-28 21:23:47 +00:00