feat(tulip): introduce basic SIMD abstraction
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user