From: TrianglesPCT Date: Fri, 14 May 2021 23:03:30 +0000 (-0600) Subject: Update zstd_lazy.c X-Git-Tag: v1.5.1~1^2~169^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e071214b5721f3415611d07d33469f8026c3bb0;p=thirdparty%2Fzstd.git Update zstd_lazy.c switch to unaligned load as I don't know if buffer will always be aligned to 32 bytes, and compilers aside from MSVC might actually use aligned loads --- diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index bccf2cc11..008b0a6b4 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -928,7 +928,7 @@ typedef struct { static ZSTD_Vec256 ZSTD_Vec256_read(const void* const ptr) { ZSTD_Vec256 v; - v.v = _mm256_load_si256((const __m256i*)ptr); + v.v = _mm256_loadu_si256((const __m256i*)ptr); return v; }