diff --git a/src/lookup.cpp b/src/lookup.cpp index 425cec7..0c40a08 100644 --- a/src/lookup.cpp +++ b/src/lookup.cpp @@ -12,7 +12,7 @@ template struct LookupBackend::Impl { void init() { lookup.resize(NR_SAMPLES); for (size_t i = 0; i < NR_SAMPLES; ++i) - lookup[i] = std::sinf(i * (2.0f * float(M_PI) / NR_SAMPLES)); + lookup[i] = sinf(i * (2.0f * float(M_PI) / NR_SAMPLES)); } void compute_sinf(size_t n, const float *x, float *s) const { diff --git a/src/lookup_avx.cpp b/src/lookup_avx.cpp index a3f8df2..81c9d04 100644 --- a/src/lookup_avx.cpp +++ b/src/lookup_avx.cpp @@ -14,7 +14,7 @@ template struct LookupAVXBackend::Impl { void init() { lookup.resize(NR_SAMPLES); for (std::size_t i = 0; i < NR_SAMPLES; ++i) { - lookup[i] = std::sinf(i * (2.0f * float(M_PI) / NR_SAMPLES)); + lookup[i] = sinf(i * (2.0f * float(M_PI) / NR_SAMPLES)); } } diff --git a/src/reference.cpp b/src/reference.cpp index e2ac788..d8be5a1 100644 --- a/src/reference.cpp +++ b/src/reference.cpp @@ -4,20 +4,20 @@ void ReferenceBackend::compute_sinf(size_t n, const float *x, float *s) const { for (size_t i = 0; i < n; ++i) { - s[i] = std::sinf(x[i]); + s[i] = sinf(x[i]); } } void ReferenceBackend::compute_cosf(size_t n, const float *x, float *c) const { for (size_t i = 0; i < n; ++i) { - c[i] = std::cosf(x[i]); + c[i] = cosf(x[i]); } } void ReferenceBackend::compute_sincosf(size_t n, const float *x, float *s, float *c) const { for (size_t i = 0; i < n; ++i) { - s[i] = std::sinf(x[i]); - c[i] = std::cosf(x[i]); + s[i] = sinf(x[i]); + c[i] = cosf(x[i]); } }