Commit Graph

5 Commits

Author SHA1 Message Date
d12c0e1206 Use M_PI instead of M_PIl
M_PIl is the double precision constant for pi (3.14...).
This is not defined in all toolchains, resulting in the
following build error:

```
test/testcpp.cc:46:35: error: use of undeclared identifier 'M_PIl'; did you mean 'P_PID'?
     46 |         long double phinc = 2*k0* M_PIl / nfft;
        |                                   ^~~~~
        |                                   P_PID
```

The double precision constants may be a GNU extension. See:
https://www.gnu.org/software/libc/manual/html_node/Mathematical-Constants.html_node

Switching the test to use the single precision M_PI avoids this
error. The test still passes as the added precision of the
double is not required.

This fixes #87.
2024-11-19 11:14:47 -05:00
0dca78f0a5 added missing copyright notice 2018-07-21 11:02:03 -04:00
3a4db1fed7 *** empty log message *** 2009-05-18 03:23:38 +00:00
3a27b71226 *** empty log message *** 2009-05-18 02:30:47 +00:00
2b5477d54c first addition of kissfft.hh the C++ template fft engine 2009-05-17 23:57:26 +00:00