Commit bcc29b8c by Copybara-Service

Merge pull request #1338 from MBkkt:patch-5

PiperOrigin-RevId: 493386604
Change-Id: I289cb38b4a3da5760ab7ef3976d402d165d7e10f
parents a99a183c 21be1daa
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
#include <algorithm> #include <algorithm>
#include <cassert> #include <cassert>
#include <cstdint>
#include <cstring> #include <cstring>
#include <iostream>
#include "absl/base/config.h" #include "absl/base/config.h"
#include "absl/base/optimization.h" #include "absl/base/optimization.h"
...@@ -60,7 +60,7 @@ constexpr size_t kCacheLineSize = ABSL_CACHELINE_SIZE; ...@@ -60,7 +60,7 @@ constexpr size_t kCacheLineSize = ABSL_CACHELINE_SIZE;
// If the objects overlap, the behavior is undefined. // If the objects overlap, the behavior is undefined.
inline void *non_temporal_store_memcpy(void *__restrict dst, inline void *non_temporal_store_memcpy(void *__restrict dst,
const void *__restrict src, size_t len) { const void *__restrict src, size_t len) {
#if defined(__SSE3__) || defined(__aarch64__) || \ #if defined(__SSE3__) || defined(__aarch64__) || \
(defined(_MSC_VER) && defined(__AVX__)) (defined(_MSC_VER) && defined(__AVX__))
// This implementation requires SSE3. // This implementation requires SSE3.
// MSVC cannot target SSE3 directly, but when MSVC targets AVX, // MSVC cannot target SSE3 directly, but when MSVC targets AVX,
......
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