diff options
author | Rajalakshmi Srinivasaraghavan <raji@linux.vnet.ibm.com> | 2015-01-28 08:43:29 -0500 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-02-12 13:16:08 -0500 |
commit | 98408b95b155464e760c22dce4842f29499db821 (patch) | |
tree | 6cc1dda44a3a4cf46aa7118b6fafe07d79ecf38e /sysdeps/x86_64/fpu/e_exp2l.S | |
parent | 6f7415033813c73fde81da60d209297901f35575 (diff) | |
download | glibc-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 'sysdeps/x86_64/fpu/e_exp2l.S')
0 files changed, 0 insertions, 0 deletions