feat(tulip): implement some more SIMD

This commit is contained in:
2026-11-22 16:41:55 +01:00
parent f98615fea4
commit a8b00b32d2
15 changed files with 333 additions and 18 deletions
+5 -5
View File
@@ -1,7 +1,7 @@
#ifndef TULIP_SIMD_CONFIG_HPP
#define TULIP_SIMD_CONFIG_HPP
#if defined(__AVX__) || defined(__AVX2__)
#if !defined(TULIP_DISABLE_SIMD) && (defined(__AVX__) || defined(__AVX2__))
#include <immintrin.h>
#endif
@@ -12,13 +12,13 @@ struct scalar_isa {};
struct avx_isa {};
struct avx2_isa {};
#ifdef __AVX__
#if defined(__AVX__) && !defined(TULIP_DISABLE_SIMD)
#define TULIP_AVX_SUPPORTED
#endif // __AVX__
#endif
#ifdef __AVX2__
#if defined(__AVX2__) && !defined(TULIP_DISABLE_SIMD)
#define TULIP_AVX2_SUPPORTED
#endif // __AVX2__
#endif
} // namespace simd
} // namespace tulip