feat(tulip): introduce basic SIMD abstraction

This commit is contained in:
2026-11-22 14:19:26 +01:00
parent dea973ddd6
commit 3a27df500e
4 changed files with 144 additions and 0 deletions
+24
View File
@@ -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