Files
cenet/include/tulip/simd/config.hpp
T

27 lines
433 B
C++

#ifndef TULIP_SIMD_CONFIG_HPP
#define TULIP_SIMD_CONFIG_HPP
#if defined(__AVX__) || defined(__AVX2__)
#include <immintrin.h>
#endif
namespace tulip {
namespace simd {
struct scalar_isa {};
struct avx_isa {};
struct avx2_isa {};
#ifdef __AVX__
#define TULIP_AVX_SUPPORTED
#endif // __AVX__
#ifdef __AVX2__
#define TULIP_AVX2_SUPPORTED
#endif // __AVX2__
} // namespace simd
} // namespace tulip
#endif // TULIP_SIMD_CONFIG_HPP