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

25 lines
406 B
C++

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