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]

Re: [PATCH] ARM: Fix performance issue in strcpy


On Thu, 7 Aug 2014, Wilco Dijkstra wrote:

> 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?

OK if this has passed a full glibc testsuite run for at least one 
configuration using this code.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]