mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-12-01 23:12:49 -05:00
std::acosl was introduced in c++11, std::acos(long double) overload appears more robust
This commit is contained in:
@ -45,7 +45,7 @@ void dotest(int nfft)
|
|||||||
|
|
||||||
// Create long double constant for pi because M_PIl is not defined by
|
// Create long double constant for pi because M_PIl is not defined by
|
||||||
// all toolchains.
|
// all toolchains.
|
||||||
const long double pi = std::acosl(-1);
|
const long double pi = std::acos(static_cast<long double>(-1));
|
||||||
|
|
||||||
for (int k0=0;k0<nfft;++k0) {
|
for (int k0=0;k0<nfft;++k0) {
|
||||||
complex<long double> acc = 0;
|
complex<long double> acc = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user