diff options
author | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2014-12-23 05:59:44 -0600 |
---|---|---|
committer | Adhemerval Zanella <azanella@linux.vnet.ibm.com> | 2015-01-14 07:58:00 -0500 |
commit | a9728856f02f74b60a546499c5bd8492d1726f98 (patch) | |
tree | 2bfe647bc23435efe2614ea391077f563d092136 /elf/multiload.c | |
parent | b53db929e654aaf97a2a239e17a87b04c768b854 (diff) | |
download | glibc-a9728856f02f74b60a546499c5bd8492d1726f98.zip glibc-a9728856f02f74b60a546499c5bd8492d1726f98.tar.gz glibc-a9728856f02f74b60a546499c5bd8492d1726f98.tar.bz2 |
powerpc: Optimized st{r,p}cpy for POWER8/PPC64
This patch adds an optimized POWER8 strcpy using unaligned accesses.
For strings up to 16 bytes the implementation first calculate the
string size, like strlen, and issues a memcpy. For larger strings,
source is first aligned to 16 bytes and then tested over a loop that
reads 16 bytes am combine the cmpb results for speedup. Special case is
added for page cross reads.
It shows 30%-60% improvement over the optimized POWER7 one that uses
only aligned accesses.
Diffstat (limited to 'elf/multiload.c')
0 files changed, 0 insertions, 0 deletions