summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Steuer <bsteuer@codeaurora.org>2009-12-16 21:17:40 -0800
committerLinux Build Service Account <lnxbuild@localhost>2011-01-14 02:57:31 -0700
commit80f4dde02580e827cc80becb99d6c9f99a8a2288 (patch)
tree30a7b83ef87488d68a02d895ec20261d1752b35f
parente8ecfc3662d1396380d94524a686d0459e5bc92a (diff)
downloadbionic-M76XXTSNCJNLYA6120.zip
bionic-M76XXTSNCJNLYA6120.tar.gz
bionic-M76XXTSNCJNLYA6120.tar.bz2
Setting the cache line size to 32 for cache readahead purposes improves performance for most memcpy sizes. Change-Id: I923649c7bfca352d0d520c9d017c820eb6f6b005
-rw-r--r--libc/arch-arm/bionic/memcpy.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/arch-arm/bionic/memcpy.S b/libc/arch-arm/bionic/memcpy.S
index ace7cc5..b8d1007 100644
--- a/libc/arch-arm/bionic/memcpy.S
+++ b/libc/arch-arm/bionic/memcpy.S
@@ -38,7 +38,7 @@
.align 4
/* a prefetch distance of 4 cache-lines works best experimentally */
-#define CACHE_LINE_SIZE 64
+#define CACHE_LINE_SIZE 32
#define PREFETCH_DISTANCE (CACHE_LINE_SIZE*4)
memcpy: