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
+1 -1
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;
}