Remove std:: prefix for sinf for GCC 12 compatibility
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user