std::acosl was introduced in c++11, std::acos(long double) overload appears more robust

This commit is contained in:
Mark Borgerding
2025-11-26 10:41:21 -05:00
parent 1b08316582
commit 5899ee71c5

View File

@ -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;