summaryrefslogtreecommitdiffstats
path: root/libc/arch-arm/bionic/memset.S
diff options
context:
space:
mode:
authorPrachee Ramsinghani <pracheer@codeaurora.org>2011-06-21 12:40:21 +0530
committerPrachee Ramsinghani <pracheer@codeaurora.org>2011-06-23 17:25:27 +0530
commita2b1c3a37e9b8b48d383946fc6d1e1f9c841f4e3 (patch)
treed0074e4d1447dbfe2baac5a9d823134093873c2b /libc/arch-arm/bionic/memset.S
parente666d69d604d727dda461a1b810063bf655f1fe4 (diff)
downloadbionic-fb81e3dcc3938c4bdd90a5d34611f7a7f22f53b3.zip
bionic-fb81e3dcc3938c4bdd90a5d34611f7a7f22f53b3.tar.gz
bionic-fb81e3dcc3938c4bdd90a5d34611f7a7f22f53b3.tar.bz2
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
Diffstat (limited to 'libc/arch-arm/bionic/memset.S')
-rw-r--r--libc/arch-arm/bionic/memset.S6
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 */