diff options
author | Abseil Team <absl-team@google.com> | 2023-02-03 16:00:19 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-02-03 16:01:20 -0800 |
commit | cdad8cd96ee9bfe11056997dc960eb2e52c6b00e (patch) | |
tree | b673ad4db8f6e3e23a541af79bd77877b314adde | |
parent | 3020b58f0d987073b8adab204426f82c3f60b283 (diff) |
`PrefetchToLocalCacheForWrite` should use `__builtin_prefetch(<addr>, 1, 3)` not `__builtin_prefetch<addr>, 1, 0)`
PiperOrigin-RevId: 507015724
Change-Id: I99f44fe819c27e6dcc0bb7b36f1a37015c6f1987
-rw-r--r-- | absl/base/prefetch.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/absl/base/prefetch.h b/absl/base/prefetch.h index 6bc98637..a0b1efe6 100644 --- a/absl/base/prefetch.h +++ b/absl/base/prefetch.h @@ -132,7 +132,7 @@ void PrefetchToLocalCacheNta(const void* addr); // return ptr; // } // -void PrefetchToLocalCacheforWrite(const void* addr); +void PrefetchToLocalCacheForWrite(const void* addr); #if ABSL_HAVE_BUILTIN(__builtin_prefetch) || defined(__GNUC__) @@ -157,7 +157,7 @@ inline void PrefetchToLocalCacheForWrite(const void* addr) { #if defined(__x86_64__) asm("prefetchw (%0)" : : "r"(addr)); #else - __builtin_prefetch(addr, 1, 0); + __builtin_prefetch(addr, 1, 3); #endif } |