This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
Hi, This patch fixes a performance bug in strcp. The code dealing with unaligned copies uses mvns to detect whether a register is 0. This is incorrect - the zero flag is only set if the value is -1. As a result the code always does a byte-by-byte copy for the full string rather than doing the word-based copy for the misaligned cases. Fixing this more than doubles performance. OK for commit? ChangeLog: 2014-08-07 Wilco Dijkstra <wdijkstr@arm.com> * sysdeps/arm/armv6/strcpy.S (strcpy): Fix performance issue in misaligned cases.
Attachment:
Fix-performance-issue-in-strcpy.txt
Description: Text document
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |