diff options
author | Prachee Ramsinghani <pracheer@codeaurora.org> | 2011-06-21 12:40:21 +0530 |
---|---|---|
committer | Prachee Ramsinghani <pracheer@codeaurora.org> | 2011-06-23 17:25:27 +0530 |
commit | a2b1c3a37e9b8b48d383946fc6d1e1f9c841f4e3 (patch) | |
tree | d0074e4d1447dbfe2baac5a9d823134093873c2b | |
parent | e666d69d604d727dda461a1b810063bf655f1fe4 (diff) | |
download | bionic-a2b1c3a37e9b8b48d383946fc6d1e1f9c841f4e3.zip bionic-a2b1c3a37e9b8b48d383946fc6d1e1f9c841f4e3.tar.gz bionic-a2b1c3a37e9b8b48d383946fc6d1e1f9c841f4e3.tar.bz2 |
msm7x27A: Enable 7x27A specific memset routineM8960AAAAANLYA100530M8960AAAAANLYA100510M8960AAAAANLYA1005M76XXUSNEKNLYA1095M76XXUSNEKNLYA1090M76XXUSNEKNLYA1081M76XXUSNEKNLYA1080M76XXUSNEKNLYA1070
Exisiting memset routine gives sub-optimal performance for 7x27A.
Experimentally, scorpion memset routine has been found to give
better performance on 7x27A. Hence, the scorpion memset routine
is enabled for MSM7x27A using CORTEX_CACHE_LINE_32, which is enabled
by defining TARGET_CORTEX_CACHE_LINE_32 in BoardConfig.mk.
Change-Id: Ife9b21458074b403772cf8fd8078c8812d99c91e
-rw-r--r-- | libc/arch-arm/bionic/memset.S | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/arch-arm/bionic/memset.S b/libc/arch-arm/bionic/memset.S index 8ecd80c..1c80b18 100644 --- a/libc/arch-arm/bionic/memset.S +++ b/libc/arch-arm/bionic/memset.S @@ -29,7 +29,7 @@ */ #include <machine/cpu-features.h> -#if defined(SCORPION_NEON_OPTIMIZATION) +#if defined(SCORPION_NEON_OPTIMIZATION) || defined(CORTEX_CACHE_LINE_32) .code 32 .align 8 .global memset @@ -110,7 +110,7 @@ memset: bx lr .end -#else /* !SCORPION_NEON_OPTIMIZATION */ +#else /* !(SCORPION_NEON_OPTIMIZATION || CORTEX_CACHE_LINE_32) */ .text .global memset @@ -201,4 +201,4 @@ memset: bx lr .fnend -#endif /* SCORPION_NEON_OPTIMIZATION */ +#endif /* SCORPION_NEON_OPTIMIZATION || CORTEX_CACHE_LINE_32 */ |