Add LookupAVXBackend
This commit is contained in:
22
include/trigdx/lookup_avx.hpp
Normal file
22
include/trigdx/lookup_avx.hpp
Normal 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;
|
||||
};
|
||||
Reference in New Issue
Block a user