Commit 19a78f65 authored by Yedidya Feldblum's avatar Yedidya Feldblum Committed by Facebook Github Bot

Fix incorrect unaligned load in Range

Summary: [Folly] Fix incorrect unaligned load in `Range`.

Reviewed By: santazhang

Differential Revision: D8597638

fbshipit-source-id: 2c8c0baa0c90fb7a7d5a24f84686d3993ae8455b
parent 3bcbf9d9
...@@ -83,7 +83,7 @@ FOLLY_DISABLE_ADDRESS_SANITIZER static __m128i _mm_load_si128_noasan( ...@@ -83,7 +83,7 @@ FOLLY_DISABLE_ADDRESS_SANITIZER static __m128i _mm_load_si128_noasan(
} }
FOLLY_ALWAYS_INLINE static __m128i _mm_load_si128_unchecked( FOLLY_ALWAYS_INLINE static __m128i _mm_load_si128_unchecked(
__m128i const* const p) { __m128i const* const p) {
return kIsSanitizeAddress ? _mm_load_si128_noasan(p) : _mm_loadu_si128(p); return kIsSanitizeAddress ? _mm_load_si128_noasan(p) : _mm_load_si128(p);
} }
// helper method for case where needles.size() <= 16 // helper method for case where needles.size() <= 16
......
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