about summary refs log tree commit diff
path: root/math/auto-libm-test-in
diff options
context:
space:
mode:
authorRajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com>2015-01-28 08:43:29 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2015-02-12 13:16:08 -0500
commit98408b95b155464e760c22dce4842f29499db821 (patch)
tree6cc1dda44a3a4cf46aa7118b6fafe07d79ecf38e /math/auto-libm-test-in
parent6f7415033813c73fde81da60d209297901f35575 (diff)
downloadglibc-98408b95b155464e760c22dce4842f29499db821.tar.gz
glibc-98408b95b155464e760c22dce4842f29499db821.tar.xz
glibc-98408b95b155464e760c22dce4842f29499db821.zip
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.
Diffstat (limited to 'math/auto-libm-test-in')
0 files changed, 0 insertions, 0 deletions