#ifndef TULIP_SIMD_CONFIG_HPP #define TULIP_SIMD_CONFIG_HPP #if !defined(TULIP_DISABLE_SIMD) && (defined(__AVX__) || defined(__AVX2__)) #include #endif namespace tulip { namespace simd { struct scalar_isa {}; struct avx_isa {}; struct avx2_isa {}; #if defined(__AVX__) && !defined(TULIP_DISABLE_SIMD) #define TULIP_AVX_SUPPORTED #endif #if defined(__AVX2__) && !defined(TULIP_DISABLE_SIMD) #define TULIP_AVX2_SUPPORTED #endif } // namespace simd } // namespace tulip #endif // TULIP_SIMD_CONFIG_HPP