Remove std:: prefix for sinf for GCC 12 compatibility

This commit is contained in:
Bram Veenboer
2025-08-01 13:27:24 +00:00
parent b3a73ceb53
commit 404fbd3c02
3 changed files with 6 additions and 6 deletions

View File

@@ -12,7 +12,7 @@ template <size_t NR_SAMPLES> struct LookupBackend<NR_SAMPLES>::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 {

View File

@@ -14,7 +14,7 @@ template <std::size_t NR_SAMPLES> struct LookupAVXBackend<NR_SAMPLES>::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));
}
}

View File

@@ -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]);
}
}