From 2a10cad3dd6d2268abce06fdc06caa470da1e55a Mon Sep 17 00:00:00 2001 From: Bram Veenboer Date: Tue, 2 Sep 2025 16:59:19 +0200 Subject: [PATCH] Fix compilation errors --- benchmarks/benchmark_utils.hpp | 1 + include/trigdx/interface.hpp | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/benchmarks/benchmark_utils.hpp b/benchmarks/benchmark_utils.hpp index 1f0cfd6..bf0c2cd 100644 --- a/benchmarks/benchmark_utils.hpp +++ b/benchmarks/benchmark_utils.hpp @@ -2,6 +2,7 @@ #include #include +#include #include #include diff --git a/include/trigdx/interface.hpp b/include/trigdx/interface.hpp index 414caa6..95a2575 100644 --- a/include/trigdx/interface.hpp +++ b/include/trigdx/interface.hpp @@ -1,6 +1,7 @@ #pragma once #include +#include #include // Base interface for all math backends @@ -15,7 +16,7 @@ public: return static_cast(new uint8_t[bytes]); }; - virtual void free_memory(void *ptr) const { delete[] ptr; }; + virtual void free_memory(void *ptr) const { std::free(ptr); }; // Compute sine for n elements virtual void compute_sinf(size_t n, const float *x, float *s) const = 0;