This is the mail archive of the libc-ports@sources.redhat.com mailing list for the libc-ports 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: [ARM] Optimised strchr and strlen


On 12/23/2011 12:31 PM, David Gilbert wrote:
> Sure; it's pretty much the same trick as my strlen routine.
...
> OK, so I gave that a go - and the results are:

I can't help but wonder if just the one branch in the first loop is best.

Also, it appears one can use uqadd8 and do the aligned two words in parallel
rather than having everything serialize on the GT flags and SEL.

I've run this through glibc's test-strchr, but havn't gotten around to
benchmarking it at all.  Since you've already got that set up, perhaps
you could give it a whirl.


r~

Attachment: strchr.S
Description: Text document


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