mborgerding / kissfft

a Fast Fourier Transform (FFT) library that tries to Keep it Simple, Stupid
Other
1.39k stars 278 forks source link

Use std::acos() instead of acos() in C++ version #12

Closed steffen-kiess closed 5 years ago

steffen-kiess commented 5 years ago

Currently the precision of the C++ version for long double is rather low, because it is using acos(-1) for getting pi. acos() however is the C double-precision version. Instead, std::acos() should be used which will be long double if the argument is long double (and also will be float if the argument is float).