Add LookupAVXBackend

This commit is contained in:
Bram Veenboer
2025-08-01 14:53:36 +02:00
parent 92679639a3
commit b3a73ceb53
7 changed files with 264 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
#pragma once
#include <cstddef>
#include <memory>
#include "interface.hpp"
template <std::size_t NR_SAMPLES> class LookupAVXBackend : public Backend {
public:
LookupAVXBackend();
~LookupAVXBackend() override;
void init() override;
void compute_sinf(std::size_t n, const float *x, float *s) const override;
void compute_cosf(std::size_t n, const float *x, float *c) const override;
void compute_sincosf(std::size_t n, const float *x, float *s,
float *c) const override;
private:
struct Impl;
std::unique_ptr<Impl> impl;
};