Commit cdad8cd9 by Abseil Team Committed by Copybara-Service

`PrefetchToLocalCacheForWrite` should use `__builtin_prefetch(<addr>, 1, 3)` not…

`PrefetchToLocalCacheForWrite` should use `__builtin_prefetch(<addr>, 1, 3)` not `__builtin_prefetch<addr>, 1, 0)`

PiperOrigin-RevId: 507015724
Change-Id: I99f44fe819c27e6dcc0bb7b36f1a37015c6f1987
parent 3020b58f
...@@ -132,7 +132,7 @@ void PrefetchToLocalCacheNta(const void* addr); ...@@ -132,7 +132,7 @@ void PrefetchToLocalCacheNta(const void* addr);
// return ptr; // return ptr;
// } // }
// //
void PrefetchToLocalCacheforWrite(const void* addr); void PrefetchToLocalCacheForWrite(const void* addr);
#if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__) #if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__)
...@@ -157,7 +157,7 @@ inline void PrefetchToLocalCacheForWrite(const void* addr) { ...@@ -157,7 +157,7 @@ inline void PrefetchToLocalCacheForWrite(const void* addr) {
#if defined(__x86_64__) #if defined(__x86_64__)
asm("prefetchw (%0)" : : "r"(addr)); asm("prefetchw (%0)" : : "r"(addr));
#else #else
__builtin_prefetch(addr, 1, 0); __builtin_prefetch(addr, 1, 3);
#endif #endif
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment