Fixed MSan report

This commit is contained in:
Alexey Milovidov 2019-07-25 01:31:39 +03:00
parent 4d36b0018f
commit 5755c93d5c

View File

@ -3,7 +3,13 @@
#include <cstdint>
#include <algorithm>
#ifdef __SSE2__
#include <Core/Defines.h>
/// We can process uninitialized memory in the functions below.
/// Results don't depend on the values inside uninitialized memory but Memory Sanitizer cannot see it.
/// Disable optimized functions if compile with Memory Sanitizer.
#if defined(__SSE2__) && !defined(MEMORY_SANITIZER)
#include <emmintrin.h>