Add AVX checks (#20)

Co-authored-by: mancini <mancini@astron.nl>
This commit is contained in:
Bram Veenboer
2025-08-15 10:30:57 +02:00
committed by GitHub
parent e755c1a454
commit 9c17e90c77
6 changed files with 60 additions and 10 deletions

View File

@@ -160,7 +160,6 @@ template <std::size_t NR_SAMPLES> struct LookupAVXBackend<NR_SAMPLES>::Impl {
for (std::size_t i = 0; i < n; ++i) {
std::size_t idx = static_cast<std::size_t>(x[i] * SCALE) & MASK;
std::size_t idx_cos = (idx + NR_SAMPLES / 4) & MASK;
s[i] = lookup[idx];
c[i] = lookup[idx_cos];
}
#endif