diff options
author | Derek Mauro <dmauro@google.com> | 2022-11-28 13:21:50 -0800 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2022-11-28 13:22:45 -0800 |
commit | 558a0e466c6328b835eeba81e77f2a88a6a90f3c (patch) | |
tree | f005b8de259b835f4e85432fdde305df7e045fef /absl | |
parent | e5a7979d36a84831652abf3138c4d76797c002b5 (diff) |
Avoid using the non-portable type __m128i_u.
According to https://stackoverflow.com/a/68939636 it is safe to use
__m128i instead.
https://learn.microsoft.com/en-us/cpp/intrinsics/x86-intrinsics-list?view=msvc-170 also uses this type instead
Fixes #1330
PiperOrigin-RevId: 491427300
Change-Id: I4a1d44ac4d5e7c1e1ee063ff397935df118254a1
Diffstat (limited to 'absl')
-rw-r--r-- | absl/crc/internal/crc_memcpy_x86_64.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/absl/crc/internal/crc_memcpy_x86_64.cc b/absl/crc/internal/crc_memcpy_x86_64.cc index b2e9cfe6..0e91884e 100644 --- a/absl/crc/internal/crc_memcpy_x86_64.cc +++ b/absl/crc/internal/crc_memcpy_x86_64.cc @@ -98,7 +98,7 @@ inline void LargeTailCopy(crc32c_t* crcs, char** dst, const char** src, int region = i; auto* vsrc = - reinterpret_cast<const __m128i_u*>(*src + region_size * region); + reinterpret_cast<const __m128i*>(*src + region_size * region); auto* vdst = reinterpret_cast<__m128i*>(*dst + region_size * region); // Load the blocks, unaligned @@ -272,8 +272,8 @@ crc32c_t AcceleratedCrcMemcpyEngine<vec_regions, int_regions>::Compute( // slots by using the integer registers. int region = (j + i) % kRegions; - auto* src = reinterpret_cast<const __m128i_u*>(src_bytes + - region_size * region); + auto* src = + reinterpret_cast<const __m128i*>(src_bytes + region_size * region); auto* dst = reinterpret_cast<__m128i*>(dst_bytes + region_size * region); |