diff options
author | Derek Mauro <dmauro@google.com> | 2023-10-26 11:15:42 -0700 |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-10-26 11:16:31 -0700 |
commit | c8087ae8bd1e8b25f4e2f38e903b1360005dc4e1 (patch) | |
tree | 6459f3877e4aa1ab75946529cfafcafe4f02f966 /absl/synchronization/mutex_test.cc | |
parent | d59eabb1219bd7c0585e4e86fe9147473c703f33 (diff) | |
download | abseil-c8087ae8bd1e8b25f4e2f38e903b1360005dc4e1.tar.gz abseil-c8087ae8bd1e8b25f4e2f38e903b1360005dc4e1.tar.bz2 abseil-c8087ae8bd1e8b25f4e2f38e903b1360005dc4e1.zip |
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
__m128i_u is just __m128i with a looser alignment requirement, but
simply calling _mm_loadu_si128() instead of _mm_load_si128() is enough to
tell the compiler when a pointer is unaligned.
Fixes #1552
PiperOrigin-RevId: 576931936
Change-Id: I7c3530001149b360c12a1786c7e1832754d0e35c
Diffstat (limited to 'absl/synchronization/mutex_test.cc')
0 files changed, 0 insertions, 0 deletions