Add XSIMD implementation

This commit is contained in:
mancini
2025-08-07 14:30:28 +02:00
parent b7c13be6c0
commit b55f456178
8 changed files with 255 additions and 0 deletions

View File

@@ -16,3 +16,8 @@ if(USE_GPU)
add_executable(benchmark_gpu benchmark_gpu.cpp)
target_link_libraries(benchmark_gpu PRIVATE trigdx gpu)
endif()
if(USE_XSIMD)
add_executable(benchmark_lookup_xsimd benchmark_lookup_xsimd.cpp)
target_link_libraries(benchmark_lookup_xsimd PRIVATE trigdx)
endif()

View File

@@ -0,0 +1,13 @@
#include <trigdx/lookup_xsimd.hpp>
#include "benchmark_utils.hpp"
int main() {
benchmark_sinf<LookupXSIMDBackend<16384>>();
benchmark_cosf<LookupXSIMDBackend<16384>>();
benchmark_sincosf<LookupXSIMDBackend<16384>>();
benchmark_sinf<LookupXSIMDBackend<32768>>();
benchmark_cosf<LookupXSIMDBackend<32768>>();
benchmark_sincosf<LookupXSIMDBackend<32768>>();
}