This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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] |
This patch adds a hand-optimized assembly routine for strchr. It makes heavy use of Neon, permitting strings to be searched in chunks of 32 bytes at a time. Benchmarking on Cortex-A57 suggests that this is very rarely slower than a 'good' C implementation, but can be up to 3.5 times as fast. Because we use LD1 for fetching bytes from memory, there's no difference between big-endian and little-endian code. 2014-06-10 Richard Earnshaw <rearnsha@arm.com> * libc/machine/aarch64/strchr.S: New file * libc/machine/aarch64/strchr-stub.c: New file * libc/machine/aarch64/Makefile.am: Add them to build list. * libc/machine/aarch64/Makefile.in: Regenerated. Committed. R.
Attachment:
strchr.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |