]> git.ipfire.org Git - thirdparty/glibc.git/commit - ChangeLog
powerpc: POWER7 strncpy optimization for unaligned string
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>
Wed, 28 Jan 2015 13:43:29 +0000 (08:43 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Thu, 12 Feb 2015 18:16:08 +0000 (13:16 -0500)
commit98408b95b155464e760c22dce4842f29499db821
tree6cc1dda44a3a4cf46aa7118b6fafe07d79ecf38e
parent6f7415033813c73fde81da60d209297901f35575
powerpc: POWER7 strncpy optimization for unaligned string

This patch optimizes strncpy for power7 for unaligned source or
destination address. The source or destination address is aligned
to doubleword and data is shifted based on the alignment and
added with the previous loaded data to be written as a doubleword.
For each load, cmpb instruction is used for faster null check.

The new optimization shows 10 to 70% of performance improvement
for longer string though it does not show big difference on string
size less than 16 due to additional checks.Hence this new algorithm
is restricted to string greater than 16.
ChangeLog
sysdeps/powerpc/powerpc64/power7/strncpy.S