about summary refs log tree commit diff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-24 09:43:36 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-24 09:43:36 -0700
commit13fd5ab017a053bbcfc7b73bd18d3b58c9078b8f (patch)
tree61e1217f170cb6a1dc33189310bc627010bfe5ba
parent2a517d91af918aecd9b603b7a09f696d774de3e6 (diff)
downloadglibc-13fd5ab017a053bbcfc7b73bd18d3b58c9078b8f.tar.gz
glibc-13fd5ab017a053bbcfc7b73bd18d3b58c9078b8f.tar.xz
glibc-13fd5ab017a053bbcfc7b73bd18d3b58c9078b8f.zip
Rename PREFETCH_SIZE to CACHELINE_SIZE
-rw-r--r--sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S26
1 files changed, 13 insertions, 13 deletions
diff --git a/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S b/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
index 346d7a4e7d..b5ffa49539 100644
--- a/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
+++ b/sysdeps/x86_64/multiarch/memmove-vec-unaligned-erms.S
@@ -71,33 +71,33 @@
 # define PREFETCH(addr) prefetcht0 addr
 #endif
 
-/* Assume 64-byte prefetch size.  */
-#ifndef PREFETCH_SIZE
-# define PREFETCH_SIZE 64
+/* Assume 64-byte cacheline/prefetch size.  */
+#ifndef CACHELINE_SIZE
+# define CACHELINE_SIZE 64
 #endif
 
 #define PREFETCHED_LOAD_SIZE (VEC_SIZE * 4)
 
-#if PREFETCH_SIZE == 64
-# if PREFETCHED_LOAD_SIZE == PREFETCH_SIZE
+#if CACHELINE_SIZE == 64
+# if PREFETCHED_LOAD_SIZE == CACHELINE_SIZE
 #  define PREFETCH_ONE_SET(dir, base, offset) \
 	PREFETCH ((offset)base)
-# elif PREFETCHED_LOAD_SIZE == 2 * PREFETCH_SIZE
+# elif PREFETCHED_LOAD_SIZE == 2 * CACHELINE_SIZE
 #  define PREFETCH_ONE_SET(dir, base, offset) \
 	PREFETCH ((offset)base); \
-	PREFETCH ((offset + dir * PREFETCH_SIZE)base)
-# elif PREFETCHED_LOAD_SIZE == 4 * PREFETCH_SIZE
+	PREFETCH ((offset + dir * CACHELINE_SIZE)base)
+# elif PREFETCHED_LOAD_SIZE == 4 * CACHELINE_SIZE
 #  define PREFETCH_ONE_SET(dir, base, offset) \
 	PREFETCH ((offset)base); \
-	PREFETCH ((offset + dir * PREFETCH_SIZE)base); \
-	PREFETCH ((offset + dir * PREFETCH_SIZE)base); \
-	PREFETCH ((offset + dir * PREFETCH_SIZE * 2)base); \
-	PREFETCH ((offset + dir * PREFETCH_SIZE * 3)base)
+	PREFETCH ((offset + dir * CACHELINE_SIZE)base); \
+	PREFETCH ((offset + dir * CACHELINE_SIZE)base); \
+	PREFETCH ((offset + dir * CACHELINE_SIZE * 2)base); \
+	PREFETCH ((offset + dir * CACHELINE_SIZE * 3)base)
 # else
 #   error Unsupported PREFETCHED_LOAD_SIZE!
 # endif
 #else
-# error Unsupported PREFETCH_SIZE!
+# error Unsupported CACHELINE_SIZE!
 #endif
 
 #ifndef SECTION