Modify include files according to the processors capabilities

This commit is contained in:
Youenn Lebras 2021-08-31 14:04:15 +02:00 committed by youenn lebras
parent a3c08acac3
commit 13878d2618
No known key found for this signature in database
GPG Key ID: E1DF98A69CABD2A5

View File

@ -4,8 +4,12 @@
#include "Slices.h"
#include "sliceEqualElements.h"
#if defined(__AVX2__) || defined(__SSE4_2__)
#include <immintrin.h>
#if defined(__SSE4_2__)
#include <emmintrin.h>
#include <nmmintrin.h>
#endif
#if defined(__AVX2__)
#include <immintrin.h>
#endif
namespace DB::GatherUtils
@ -124,7 +128,7 @@ inline ALWAYS_INLINE bool hasAllIntegralLoopRemainder(
#endif
#if defined(__AVX2__)
// AVX2 Int specialization
// AVX2 Int specialization of sliceHasImplAnyAll
template <>
inline ALWAYS_INLINE bool sliceHasImplAnyAll<ArraySearchType::All, NumericArraySlice<int>, NumericArraySlice<int>, sliceEqualElements<int,int> >(
const NumericArraySlice<int> & first, const NumericArraySlice<int> & second, const UInt8 * first_null_map, const UInt8 * second_null_map)