diff options
-rw-r--r-- | CMakeLists.txt | 6 | ||||
-rw-r--r-- | README.md | 19 |
2 files changed, 17 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3dc5120..75f787c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -10,8 +10,10 @@ option(USE_KISS "use KissFFT in fft benchmark? - if exists in subdir" ON) option(USE_ASAN "use GCC's address sanitizer?" OFF) -set(CMAKE_C_STANDARD 90) -set(CMAKE_C_EXTENSIONS ON) # required for gcc function attribures (inline) +# C90 requires the gcc extensions for function attributes like always_inline +# C99 provides the function attributes: no gcc extensions required +set(CMAKE_C_STANDARD 99) +set(CMAKE_C_EXTENSIONS OFF) set(CMAKE_CXX_STANDARD 98) set(CMAKE_CXX_STANDARD_REQUIRED ON) @@ -67,23 +67,30 @@ more code than I planned.. ## The code: -Good old C: -FFT API is very very simple, just make sure that you read the comments in `pffft.h`. -Fast convolution API is also very simple, just make sure that you read the comments +### Good old C: +The FFT API is very very simple, just make sure that you read the comments in `pffft.h`. + +The Fast convolution's API is also very simple, just make sure that you read the comments in `pffastconv.h`. +### C++: +A simple C++ wrapper is available in `pffft.hpp`. -C++: a simple C++ wrapper is available in `pffft.hpp`. +### Git: This archive's source can be downloaded with git including the submodules: - ``` -git clone --recursive https://github.com/hayguen/pffft.git` +git clone --recursive https://github.com/hayguen/pffft.git ``` With `--recursive` the submodules for Green and Kiss-FFT are also fetched, to use them in the benchmark. You can omit the `--recursive`-option. +For retrieving the submodules later: +``` +git submodule update --init +``` + ## CMake: There's now CMake support to build the static libraries `libPFFFT.a` |