android_bionic/libc/arch-arm
Christopher Ferris 0aa9b52efa Add new optimized strlen for arm.
This optimized version is primarily targeted at cortex-a15.

Tested on all nexus devices using the system/extras/libc_test strlen test.
Tested alignments from 1 to 32 that are powers of 2.
Tested that strlen does not cross page boundaries at all alignments.

Speed improvements listed below:

cortex-a15
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~250% improvement.

cortex-a9
- Sizes >= 32 bytes, ~75% improvement.
- Sizes >= 1024 bytes, ~85% improvement.

krait
- Sizes >= 32 bytes, ~95% improvement.
- Sizes >= 1024 bytes, ~160% improvement.

Merge from internal master.

(cherry-picked from 2fc0717977)

Change-Id: I1ceceb4e745fd68e9d946f96d1d42e0cdaff6ccf
2013-07-16 16:47:37 -07:00
..
bionic Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
cortex-a8 libc/arm: add cortex-a8 cpu variant 2013-05-15 20:13:28 -07:00
cortex-a9 Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
cortex-a15 Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
generic Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
include/machine
krait Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
syscalls libc: add swapon and swapoff syscalls 2013-06-25 13:18:03 -07:00
arm.mk Add new optimized strlen for arm. 2013-07-16 16:47:37 -07:00
syscalls.mk libc: add swapon and swapoff syscalls 2013-06-25 13:18:03 -07:00