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
This commit is contained in:
TrianglesPCT 2021-05-14 17:03:30 -06:00 committed by GitHub
parent 69ac124b12
commit 0e071214b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}