OSDN Git Service

bionic: Add ARM optimized strcmp()
authorJim Huang <jim.huang@linaro.org>
Wed, 20 Apr 2011 07:35:04 +0000 (15:35 +0800)
committerJim Huang <jserv@0xlab.org>
Wed, 20 Apr 2011 07:39:43 +0000 (15:39 +0800)
commitf50e9be5930a08fa825b0c23353c802e11369b14
tree7d0c8e2dac5c6711b267850890e0f0ccea943bc6
parent3ef36b2115d0802e668e325b59af6ef14d999e71
bionic: Add ARM optimized strcmp()

Reference results of the experiments on TI OMAP3430 at 600 MHz

$ bench_strcmp -N "strcmp_1k" -s 1k -I 200

[original C code]
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_1k      1   1     10.38000          102        0    15000     1024

[ARM optimized code]
             prc thr   usecs/call      samples   errors cnt/samp     size
strcmp_1k      1   1      3.08840           88        0    15000     1024

The work was derived from ARM Ltd, contributed to newlib, and reworked
for Android by Linaro.

Change-Id: Ib0d5755e1eb9adb07d80ef0252f57a5c4c57a425
Signed-off-by: Jim Huang <jserv@0xlab.org>
libc/Android.mk
libc/arch-arm/bionic/strcmp.S [new file with mode: 0644]