diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index e9d3739..66db675 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -56,7 +56,11 @@ jobs: new_plugin_ver=$tag-API$plugin_api mkdir shared cp -r $build_dir/*.so shared - cp -r libs/linux/bin/* shared + fftw_runtime_dir=$(cat Build/fftw-runtime-path.txt) + cp -r "$fftw_runtime_dir"/* shared + fftw_notices_dir=$(cat Build/fftw-notices-path.txt) + mkdir -p licenses + cp -r "$fftw_notices_dir" licenses/fftw zipfile=${package}_${new_plugin_ver}.zip - zip -r -X $zipfile shared + zip -r -X $zipfile shared licenses curl --fail --show-error --retry 3 -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN" -T "$zipfile" "https://openephys.jfrog.io/artifactory/OpenEphysFFTW-plugin/linux/$zipfile" diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index bbc2af1..f45819d 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -61,7 +61,11 @@ jobs: mkdir shared cp -r $build_dir/*.dylib shared - cp -r libs/macos/bin/* shared + fftw_runtime_dir=$(cat Build/fftw-runtime-path.txt) + cp -r "$fftw_runtime_dir"/* shared + fftw_notices_dir=$(cat Build/fftw-notices-path.txt) + mkdir -p licenses + cp -r "$fftw_notices_dir" licenses/fftw # Turn our base64-encoded certificate back to a regular .p12 file printf '%s' "$MACOS_CERTIFICATE" | base64 --decode > certificate.p12 @@ -75,10 +79,11 @@ jobs: security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_CI_KEYCHAIN_PWD build.keychain /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v shared/libOpenEphysFFTW.dylib --deep --strict --timestamp --options=runtime - /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v shared/libfftw3.3.6.9.dylib --deep --strict --timestamp --options=runtime + /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v shared/libfftw3.3.dylib --deep --strict --timestamp --options=runtime + /usr/bin/codesign --force -s "$MACOS_CERTIFICATE_NAME" -v shared/libfftw3f.3.dylib --deep --strict --timestamp --options=runtime /usr/bin/codesign -dv --verbose=4 shared/libOpenEphysFFTW.dylib zipfile=${package}_${new_plugin_ver}.zip - zip -r -X $zipfile shared + zip -r -X $zipfile shared licenses curl --fail --show-error --retry 3 -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN" -T "$zipfile" "https://openephys.jfrog.io/artifactory/OpenEphysFFTW-plugin/mac/$zipfile" diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index ee60ce0..08da191 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -65,11 +65,12 @@ jobs: new_plugin_ver=$tag-API$plugin_api mkdir shared cp -v $build_dir/*.dll shared - if [ -d "libs" ] - then - cp -v libs/windows/bin/x64/*.dll shared - fi + fftw_runtime_dir=$(cat Build/fftw-runtime-path.txt) + cp -v "$fftw_runtime_dir"/*.dll shared + fftw_notices_dir=$(cat Build/fftw-notices-path.txt) + mkdir -p licenses + cp -r "$fftw_notices_dir" licenses/fftw zipfile=${package}_${new_plugin_ver}.zip - powershell Compress-Archive -Path "shared" -DestinationPath ${zipfile} + powershell Compress-Archive -Path "shared","licenses" -DestinationPath ${zipfile} curl --fail --show-error --retry 3 -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN" -T "$zipfile" "https://openephys.jfrog.io/artifactory/OpenEphysFFTW-plugin/windows/$zipfile" shell: bash diff --git a/CMakeLists.txt b/CMakeLists.txt index b40da8e..efc92f8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,6 +36,9 @@ file(GLOB_RECURSE HEADER_FILES LIST_DIRECTORIES false "${SOURCE_PATH}/*.h") list(APPEND SRC_FILES ${HEADER_FILES}) set(GUI_COMMONLIB_DIR ${GUI_BASE_DIR}/installed_libs) +include(${CMAKE_CURRENT_SOURCE_DIR}/cmake/AcquireFFTW.cmake) +openephys_acquire_fftw(FFTW_BUNDLE_ROOT) + list(APPEND CMAKE_PREFIX_PATH ${GUI_COMMONLIB_DIR} ${GUI_COMMONLIB_DIR}/$ @@ -67,6 +70,8 @@ install(TARGETS ${COMMONLIB_NAME} RUNTIME DESTINATION ${GUI_COMMONLIB_DIR}/$/bin/${CMAKE_LIBRARY_ARCHITECTURE} # .dll files ) install(FILES ${HEADER_FILES} DESTINATION ${GUI_COMMONLIB_DIR}/include) +install(DIRECTORY ${FFTW_BUNDLE_ROOT}/share/fftw + DESTINATION ${GUI_COMMONLIB_DIR}/share) #Libraries and compiler options if(MSVC) @@ -75,8 +80,6 @@ if(MSVC) install(TARGETS ${COMMONLIB_NAME} RUNTIME DESTINATION ${GUI_BIN_DIR}/shared) - list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs/windows) - elseif(LINUX) target_link_libraries(${COMMONLIB_NAME} GL X11 Xext Xinerama asound dl freetype pthread rt) set_property(TARGET ${COMMONLIB_NAME} APPEND_STRING PROPERTY LINK_FLAGS @@ -86,8 +89,6 @@ elseif(LINUX) install(TARGETS ${COMMONLIB_NAME} LIBRARY DESTINATION ${GUI_BIN_DIR}/shared) - list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs/linux) - elseif(APPLE) set_target_properties(${COMMONLIB_NAME} PROPERTIES BUNDLE FALSE) set_property(TARGET ${COMMONLIB_NAME} APPEND_STRING PROPERTY LINK_FLAGS @@ -97,7 +98,6 @@ elseif(APPLE) XCODE_ATTRIBUTE_CODE_SIGNING_ALLOWED NO) install(TARGETS ${COMMONLIB_NAME} DESTINATION $ENV{HOME}/Library/Application\ Support/open-ephys/shared-api10) - list(APPEND CMAKE_PREFIX_PATH ${CMAKE_CURRENT_SOURCE_DIR}/libs/macos) endif() #create filters for vs and xcode @@ -111,8 +111,15 @@ endforeach() #additional libraries -find_library(FFTW_LIBRARY NAMES libfftw3-3 fftw3 fftw3-3) -find_path(FFTW_INCLUDE_DIRS fftw3.h) +unset(FFTW_LIBRARY CACHE) +unset(FFTWF_LIBRARY CACHE) +unset(FFTW_INCLUDE_DIRS CACHE) +find_library(FFTW_LIBRARY NAMES libfftw3-3 fftw3 fftw3-3 + PATHS "${FFTW_BUNDLE_ROOT}/lib" NO_DEFAULT_PATH) +find_library(FFTWF_LIBRARY NAMES libfftw3f-3 fftw3f fftw3f-3 + PATHS "${FFTW_BUNDLE_ROOT}/lib" NO_DEFAULT_PATH) +find_path(FFTW_INCLUDE_DIRS fftw3.h + PATHS "${FFTW_BUNDLE_ROOT}/include" NO_DEFAULT_PATH) if (NOT FFTW_LIBRARY) message(FATAL_ERROR "FFTW library not found") @@ -120,18 +127,27 @@ else() message(STATUS "FFTW library: ${FFTW_LIBRARY}") endif() +if (NOT FFTWF_LIBRARY) + message(FATAL_ERROR "Single-precision FFTW library not found") +else() + message(STATUS "Single-precision FFTW library: ${FFTWF_LIBRARY}") +endif() + if (NOT FFTW_INCLUDE_DIRS) message(FATAL_ERROR "FFTW header not found") endif() if (MSVC) - install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs/windows/bin/${CMAKE_LIBRARY_ARCHITECTURE}/ DESTINATION ${GUI_BIN_DIR}/shared CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES}) + install(DIRECTORY ${FFTW_BUNDLE_ROOT}/bin/ DESTINATION ${GUI_BIN_DIR}/shared CONFIGURATIONS ${CMAKE_CONFIGURATION_TYPES}) elseif(LINUX) - install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs/linux/bin/ DESTINATION ${GUI_BIN_DIR}/shared) + install(DIRECTORY ${FFTW_BUNDLE_ROOT}/bin/ DESTINATION ${GUI_BIN_DIR}/shared) elseif(APPLE) - install(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/libs/macos/bin/ DESTINATION $ENV{HOME}/Library/Application\ Support/open-ephys/shared-api10) + install(DIRECTORY ${FFTW_BUNDLE_ROOT}/bin/ DESTINATION $ENV{HOME}/Library/Application\ Support/open-ephys/shared-api10) endif() -target_link_libraries(${COMMONLIB_NAME} ${FFTW_LIBRARY}) +file(WRITE "${CMAKE_BINARY_DIR}/fftw-runtime-path.txt" "${FFTW_BUNDLE_ROOT}/bin\n") +file(WRITE "${CMAKE_BINARY_DIR}/fftw-notices-path.txt" "${FFTW_BUNDLE_ROOT}/share/fftw\n") + +target_link_libraries(${COMMONLIB_NAME} ${FFTW_LIBRARY} ${FFTWF_LIBRARY}) target_include_directories(${COMMONLIB_NAME} PRIVATE ${FFTW_INCLUDE_DIRS}) diff --git a/README.md b/README.md index c79055e..211761d 100644 --- a/README.md +++ b/README.md @@ -36,4 +36,16 @@ after the immutable release exists. This library should be built outside of the main GUI file tree using CMake. In order to do so, it must be in a sibling directory (e.g. OEPlugins) to `plugin-GUI` and the GUI must have already been compiled. +By default, CMake downloads the platform bundle from the immutable +`fftw-dependencies-3.3.11-1` release and verifies its published checksum. For +offline builds, set `FFTW_ROOT` to an extracted bundle: + +```bash +cmake -S . -B Build -DFFTW_ROOT=/path/to/fftw-3.3.11-linux-x86_64 +``` + +To exercise the normal extraction path offline, set `FFTW_ARCHIVE` to a local +archive and place its release checksum sidecar at `.sha256`, or set +`FFTW_CHECKSUM_FILE` explicitly. + See the wiki page [here](https://open-ephys.github.io/gui-docs/Developer-Guide/Compiling-plugins.html) for build instructions. diff --git a/cmake/AcquireFFTW.cmake b/cmake/AcquireFFTW.cmake new file mode 100644 index 0000000..794dcda --- /dev/null +++ b/cmake/AcquireFFTW.cmake @@ -0,0 +1,98 @@ +include(FetchContent) + +function(openephys_acquire_fftw OUT_ROOT) + set(FFTW_DEPENDENCY_VERSION "3.3.11") + set(FFTW_DEPENDENCY_TAG "fftw-dependencies-3.3.11-1" CACHE STRING + "Immutable OpenEphysFFTW dependency release tag") + set(FFTW_RELEASE_BASE_URL + "https://github.com/open-ephys-plugins/OpenEphysFFTW/releases/download" + CACHE STRING "Base URL for OpenEphysFFTW dependency releases") + set(FFTW_ROOT "" CACHE PATH "Existing extracted FFTW dependency bundle") + set(FFTW_ARCHIVE "" CACHE FILEPATH "Local FFTW bundle archive for offline builds") + set(FFTW_CHECKSUM_FILE "" CACHE FILEPATH + "SHA-256 sidecar for FFTW_ARCHIVE; defaults to .sha256") + + if(FFTW_ROOT) + get_filename_component(bundle_root "${FFTW_ROOT}" ABSOLUTE) + else() + if(CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_SIZEOF_VOID_P EQUAL 8) + set(bundle_name "fftw-${FFTW_DEPENDENCY_VERSION}-linux-x86_64") + elseif(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_SIZEOF_VOID_P EQUAL 8) + set(bundle_name "fftw-${FFTW_DEPENDENCY_VERSION}-windows-x86_64") + elseif(CMAKE_SYSTEM_NAME STREQUAL "Darwin") + set(bundle_name "fftw-${FFTW_DEPENDENCY_VERSION}-macos-universal") + else() + message(FATAL_ERROR + "No released FFTW bundle supports ${CMAKE_SYSTEM_NAME}/${CMAKE_SIZEOF_VOID_P}-byte pointers. " + "Set FFTW_ROOT to a compatible extracted bundle.") + endif() + set(archive_name "${bundle_name}.tar.gz") + + if(FFTW_ARCHIVE) + get_filename_component(archive_url "${FFTW_ARCHIVE}" ABSOLUTE) + if(FFTW_CHECKSUM_FILE) + get_filename_component(checksum_file "${FFTW_CHECKSUM_FILE}" ABSOLUTE) + else() + set(checksum_file "${archive_url}.sha256") + endif() + if(NOT EXISTS "${archive_url}" OR NOT EXISTS "${checksum_file}") + message(FATAL_ERROR + "FFTW_ARCHIVE and its checksum sidecar must both exist") + endif() + else() + set(release_url + "${FFTW_RELEASE_BASE_URL}/${FFTW_DEPENDENCY_TAG}") + set(archive_url "${release_url}/${archive_name}") + set(checksum_dir + "${CMAKE_BINARY_DIR}/_deps/openephys-fftw-checksums/${FFTW_DEPENDENCY_TAG}") + set(checksum_file "${checksum_dir}/${archive_name}.sha256") + if(NOT EXISTS "${checksum_file}") + file(MAKE_DIRECTORY "${checksum_dir}") + set(checksum_download "${checksum_file}.download") + file(REMOVE "${checksum_download}") + file(DOWNLOAD "${archive_url}.sha256" "${checksum_download}" + TLS_VERIFY ON STATUS checksum_status) + list(GET checksum_status 0 checksum_status_code) + if(NOT checksum_status_code EQUAL 0) + file(REMOVE "${checksum_download}") + list(GET checksum_status 1 checksum_status_message) + message(FATAL_ERROR + "Could not download FFTW checksum: ${checksum_status_message}") + endif() + file(RENAME "${checksum_download}" "${checksum_file}") + endif() + endif() + + file(STRINGS "${checksum_file}" checksum_line LIMIT_COUNT 1) + string(REGEX MATCH "^([0-9A-Fa-f]+)[ \t]+\\*?([^ \t\r\n]+)$" + checksum_match "${checksum_line}") + set(expected_sha256 "${CMAKE_MATCH_1}") + set(checksum_archive_name "${CMAKE_MATCH_2}") + string(LENGTH "${expected_sha256}" checksum_length) + if(NOT checksum_match OR NOT checksum_length EQUAL 64 OR + NOT checksum_archive_name STREQUAL archive_name) + message(FATAL_ERROR + "Invalid FFTW checksum sidecar: ${checksum_file}") + endif() + + if(POLICY CMP0135) + cmake_policy(SET CMP0135 NEW) + endif() + FetchContent_Declare(OpenEphysFFTWDependency + URL "${archive_url}" + URL_HASH "SHA256=${expected_sha256}" + TLS_VERIFY ON) + FetchContent_MakeAvailable(OpenEphysFFTWDependency) + FetchContent_GetProperties(OpenEphysFFTWDependency + SOURCE_DIR bundle_root) + endif() + + if(NOT EXISTS "${bundle_root}/include/fftw3.h" OR + NOT IS_DIRECTORY "${bundle_root}/lib" OR + NOT IS_DIRECTORY "${bundle_root}/bin" OR + NOT EXISTS "${bundle_root}/share/fftw/COPYING") + message(FATAL_ERROR "FFTW_ROOT is not a complete dependency bundle: ${bundle_root}") + endif() + + set(${OUT_ROOT} "${bundle_root}" PARENT_SCOPE) +endfunction() diff --git a/libs/linux/bin/libfftw3.so.3 b/libs/linux/bin/libfftw3.so.3 deleted file mode 100644 index c850b14..0000000 Binary files a/libs/linux/bin/libfftw3.so.3 and /dev/null differ diff --git a/libs/linux/include/fftw3.h b/libs/linux/include/fftw3.h deleted file mode 100644 index 7bd4c6e..0000000 --- a/libs/linux/include/fftw3.h +++ /dev/null @@ -1,514 +0,0 @@ -/* - * Copyright (c) 2003, 2007-14 Matteo Frigo - * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology - * - * The following statement of license applies *only* to this header file, - * and *not* to the other files distributed with FFTW or derived therefrom: - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/***************************** NOTE TO USERS ********************************* - * - * THIS IS A HEADER FILE, NOT A MANUAL - * - * If you want to know how to use FFTW, please read the manual, - * online at http://www.fftw.org/doc/ and also included with FFTW. - * For a quick start, see the manual's tutorial section. - * - * (Reading header files to learn how to use a library is a habit - * stemming from code lacking a proper manual. Arguably, it's a - * *bad* habit in most cases, because header files can contain - * interfaces that are not part of the public, stable API.) - * - ****************************************************************************/ - -#ifndef FFTW3_H -#define FFTW3_H - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ - -/* If is included, use the C99 complex type. Otherwise - define a type bit-compatible with C99 complex */ -#if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -# define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C -#else -# define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2] -#endif - -#define FFTW_CONCAT(prefix, name) prefix ## name -#define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name) -#define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name) -#define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name) -#define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name) - -/* IMPORTANT: for Windows compilers, you should add a line - #define FFTW_DLL - here and in kernel/ifftw.h if you are compiling/using FFTW as a - DLL, in order to do the proper importing/exporting, or - alternatively compile with -DFFTW_DLL or the equivalent - command-line flag. This is not necessary under MinGW/Cygwin, where - libtool does the imports/exports automatically. */ -#if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__)) - /* annoying Windows syntax for shared-library declarations */ -# if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */ -# define FFTW_EXTERN extern __declspec(dllexport) -# else /* user is calling FFTW; import symbol */ -# define FFTW_EXTERN extern __declspec(dllimport) -# endif -#else -# define FFTW_EXTERN extern -#endif - -/* specify calling convention (Windows only) */ -#if defined(_WIN32) || defined(__WIN32__) -# define FFTW_CDECL __cdecl -#else -# define FFTW_CDECL -#endif - -enum fftw_r2r_kind_do_not_use_me { - FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, - FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, - FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 -}; - -struct fftw_iodim_do_not_use_me { - int n; /* dimension size */ - int is; /* input stride */ - int os; /* output stride */ -}; - -#include /* for ptrdiff_t */ -struct fftw_iodim64_do_not_use_me { - ptrdiff_t n; /* dimension size */ - ptrdiff_t is; /* input stride */ - ptrdiff_t os; /* output stride */ -}; - -typedef void (FFTW_CDECL *fftw_write_char_func_do_not_use_me)(char c, void *); -typedef int (FFTW_CDECL *fftw_read_char_func_do_not_use_me)(void *); - -/* - huge second-order macro that defines prototypes for all API - functions. We expand this macro for each supported precision - - X: name-mangling macro - R: real data type - C: complex data type -*/ - -#define FFTW_DEFINE_API(X, R, C) \ - \ -FFTW_DEFINE_COMPLEX(R, C); \ - \ -typedef struct X(plan_s) *X(plan); \ - \ -typedef struct fftw_iodim_do_not_use_me X(iodim); \ -typedef struct fftw_iodim64_do_not_use_me X(iodim64); \ - \ -typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \ - \ -typedef fftw_write_char_func_do_not_use_me X(write_char_func); \ -typedef fftw_read_char_func_do_not_use_me X(read_char_func); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute)(const X(plan) p); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft)(int rank, const int *n, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_1d)(int n, C *in, C *out, int sign, \ - unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_2d)(int n0, int n1, \ - C *in, C *out, int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_3d)(int n0, int n1, int n2, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft)(const X(plan) p, C *in, C *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \ - R *ro, R *io); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft_r2c)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c)(int rank, const int *n, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_2d)(int n0, int n1, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_3d)(int n0, int n1, \ - int n2, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft_c2r)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r)(int rank, const int *n, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_2d)(int n0, int n1, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_3d)(int n0, int n1, \ - int n2, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft_r2c)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft_c2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft_r2c)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft_c2r)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft_r2c)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft_c2r)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft_r2c)(const X(plan) p, \ - R *in, R *ro, R *io); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft_c2r)(const X(plan) p, \ - R *ri, R *ii, R *out); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_r2r)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r)(int rank, const int *n, R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_1d)(int n, R *in, R *out, \ - X(r2r_kind) kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \ - X(r2r_kind) kind0, X(r2r_kind) kind1, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_3d)(int n0, int n1, int n2, \ - R *in, R *out, X(r2r_kind) kind0, \ - X(r2r_kind) kind1, X(r2r_kind) kind2, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_r2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_r2r)(const X(plan) p, R *in, R *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(destroy_plan)(X(plan) p); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(forget_wisdom)(void); \ -FFTW_EXTERN void \ -FFTW_CDECL X(cleanup)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(set_timelimit)(double t); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(plan_with_nthreads)(int nthreads); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(init_threads)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(cleanup_threads)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(make_planner_thread_safe)(void); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(export_wisdom_to_filename)(const char *filename); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(export_wisdom_to_file)(FILE *output_file); \ - \ -FFTW_EXTERN char * \ -FFTW_CDECL X(export_wisdom_to_string)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(export_wisdom)(X(write_char_func) write_char, \ - void *data); \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_system_wisdom)(void); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_filename)(const char *filename); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_file)(FILE *input_file); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_string)(const char *input_string); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom)(X(read_char_func) read_char, void *data); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(fprint_plan)(const X(plan) p, FILE *output_file); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(print_plan)(const X(plan) p); \ - \ -FFTW_EXTERN char * \ -FFTW_CDECL X(sprint_plan)(const X(plan) p); \ - \ -FFTW_EXTERN void * \ -FFTW_CDECL X(malloc)(size_t n); \ - \ -FFTW_EXTERN R * \ -FFTW_CDECL X(alloc_real)(size_t n); \ -FFTW_EXTERN C * \ -FFTW_CDECL X(alloc_complex)(size_t n); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(free)(void *p); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(flops)(const X(plan) p, \ - double *add, double *mul, double *fmas); \ -FFTW_EXTERN double \ -FFTW_CDECL X(estimate_cost)(const X(plan) p); \ - \ -FFTW_EXTERN double \ -FFTW_CDECL X(cost)(const X(plan) p); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(alignment_of)(R *p); \ - \ -FFTW_EXTERN const char X(version)[]; \ -FFTW_EXTERN const char X(cc)[]; \ -FFTW_EXTERN const char X(codelet_optim)[]; - - -/* end of FFTW_DEFINE_API macro */ - -FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex) -FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex) -FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex) - -/* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64 - for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \ - && !(defined(__ICC) || defined(__INTEL_COMPILER) || defined(__CUDACC__) || defined(__PGI)) \ - && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__)) -# if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -/* note: __float128 is a typedef, which is not supported with the _Complex - keyword in gcc, so instead we use this ugly __attribute__ version. - However, we can't simply pass the __attribute__ version to - FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer - types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */ -# undef FFTW_DEFINE_COMPLEX -# define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C -# endif -FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex) -#endif - -#define FFTW_FORWARD (-1) -#define FFTW_BACKWARD (+1) - -#define FFTW_NO_TIMELIMIT (-1.0) - -/* documented flags */ -#define FFTW_MEASURE (0U) -#define FFTW_DESTROY_INPUT (1U << 0) -#define FFTW_UNALIGNED (1U << 1) -#define FFTW_CONSERVE_MEMORY (1U << 2) -#define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */ -#define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */ -#define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */ -#define FFTW_ESTIMATE (1U << 6) -#define FFTW_WISDOM_ONLY (1U << 21) - -/* undocumented beyond-guru flags */ -#define FFTW_ESTIMATE_PATIENT (1U << 7) -#define FFTW_BELIEVE_PCOST (1U << 8) -#define FFTW_NO_DFT_R2HC (1U << 9) -#define FFTW_NO_NONTHREADED (1U << 10) -#define FFTW_NO_BUFFERING (1U << 11) -#define FFTW_NO_INDIRECT_OP (1U << 12) -#define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */ -#define FFTW_NO_RANK_SPLITS (1U << 14) -#define FFTW_NO_VRANK_SPLITS (1U << 15) -#define FFTW_NO_VRECURSE (1U << 16) -#define FFTW_NO_SIMD (1U << 17) -#define FFTW_NO_SLOW (1U << 18) -#define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19) -#define FFTW_ALLOW_PRUNING (1U << 20) - -#ifdef __cplusplus -} /* extern "C" */ -#endif /* __cplusplus */ - -#endif /* FFTW3_H */ diff --git a/libs/linux/lib/libfftw3.so b/libs/linux/lib/libfftw3.so deleted file mode 100644 index c850b14..0000000 Binary files a/libs/linux/lib/libfftw3.so and /dev/null differ diff --git a/libs/macos/bin/libfftw3.3.6.9.dylib b/libs/macos/bin/libfftw3.3.6.9.dylib deleted file mode 100755 index dbd5f2a..0000000 Binary files a/libs/macos/bin/libfftw3.3.6.9.dylib and /dev/null differ diff --git a/libs/macos/include/fftw3.h b/libs/macos/include/fftw3.h deleted file mode 100644 index 65f8b89..0000000 --- a/libs/macos/include/fftw3.h +++ /dev/null @@ -1,522 +0,0 @@ -/* - * Copyright (c) 2003, 2007-14 Matteo Frigo - * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology - * - * The following statement of license applies *only* to this header file, - * and *not* to the other files distributed with FFTW or derived therefrom: - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/***************************** NOTE TO USERS ********************************* - * - * THIS IS A HEADER FILE, NOT A MANUAL - * - * If you want to know how to use FFTW, please read the manual, - * online at http://www.fftw.org/doc/ and also included with FFTW. - * For a quick start, see the manual's tutorial section. - * - * (Reading header files to learn how to use a library is a habit - * stemming from code lacking a proper manual. Arguably, it's a - * *bad* habit in most cases, because header files can contain - * interfaces that are not part of the public, stable API.) - * - ****************************************************************************/ - -#ifndef FFTW3_H -#define FFTW3_H - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ - -/* If is included, use the C99 complex type. Otherwise - define a type bit-compatible with C99 complex */ -#if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -# define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C -#else -# define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2] -#endif - -#define FFTW_CONCAT(prefix, name) prefix ## name -#define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name) -#define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name) -#define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name) -#define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name) - -/* IMPORTANT: for Windows compilers, you should add a line - #define FFTW_DLL - here and in kernel/ifftw.h if you are compiling/using FFTW as a - DLL, in order to do the proper importing/exporting, or - alternatively compile with -DFFTW_DLL or the equivalent - command-line flag. This is not necessary under MinGW/Cygwin, where - libtool does the imports/exports automatically. */ -#if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__)) - /* annoying Windows syntax for shared-library declarations */ -# if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */ -# define FFTW_EXTERN extern __declspec(dllexport) -# else /* user is calling FFTW; import symbol */ -# define FFTW_EXTERN extern __declspec(dllimport) -# endif -#else -# define FFTW_EXTERN extern -#endif - -/* specify calling convention (Windows only) */ -#if defined(_WIN32) || defined(__WIN32__) -# define FFTW_CDECL __cdecl -#else -# define FFTW_CDECL -#endif - -enum fftw_r2r_kind_do_not_use_me { - FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, - FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, - FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 -}; - -struct fftw_iodim_do_not_use_me { - int n; /* dimension size */ - int is; /* input stride */ - int os; /* output stride */ -}; - -#include /* for ptrdiff_t */ -struct fftw_iodim64_do_not_use_me { - ptrdiff_t n; /* dimension size */ - ptrdiff_t is; /* input stride */ - ptrdiff_t os; /* output stride */ -}; - -typedef void (FFTW_CDECL *fftw_write_char_func_do_not_use_me)(char c, void *); -typedef int (FFTW_CDECL *fftw_read_char_func_do_not_use_me)(void *); - -/* - huge second-order macro that defines prototypes for all API - functions. We expand this macro for each supported precision - - X: name-mangling macro - R: real data type - C: complex data type -*/ - -#define FFTW_DEFINE_API(X, R, C) \ - \ -FFTW_DEFINE_COMPLEX(R, C); \ - \ -typedef struct X(plan_s) *X(plan); \ - \ -typedef struct fftw_iodim_do_not_use_me X(iodim); \ -typedef struct fftw_iodim64_do_not_use_me X(iodim64); \ - \ -typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \ - \ -typedef fftw_write_char_func_do_not_use_me X(write_char_func); \ -typedef fftw_read_char_func_do_not_use_me X(read_char_func); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute)(const X(plan) p); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft)(int rank, const int *n, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_1d)(int n, C *in, C *out, int sign, \ - unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_2d)(int n0, int n1, \ - C *in, C *out, int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_3d)(int n0, int n1, int n2, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft)(const X(plan) p, C *in, C *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \ - R *ro, R *io); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft_r2c)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c)(int rank, const int *n, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_2d)(int n0, int n1, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_r2c_3d)(int n0, int n1, \ - int n2, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_dft_c2r)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r)(int rank, const int *n, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_2d)(int n0, int n1, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_dft_c2r_3d)(int n0, int n1, \ - int n2, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft_r2c)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_split_dft_c2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft_r2c)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_dft_c2r)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft_r2c)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_split_dft_c2r)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft_r2c)(const X(plan) p, \ - R *in, R *ro, R *io); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_split_dft_c2r)(const X(plan) p, \ - R *ri, R *ii, R *out); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_many_r2r)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r)(int rank, const int *n, R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_1d)(int n, R *in, R *out, \ - X(r2r_kind) kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \ - X(r2r_kind) kind0, X(r2r_kind) kind1, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_r2r_3d)(int n0, int n1, int n2, \ - R *in, R *out, X(r2r_kind) kind0, \ - X(r2r_kind) kind1, X(r2r_kind) kind2, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru_r2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) \ -FFTW_CDECL X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(execute_r2r)(const X(plan) p, R *in, R *out); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(destroy_plan)(X(plan) p); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(forget_wisdom)(void); \ -FFTW_EXTERN void \ -FFTW_CDECL X(cleanup)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(set_timelimit)(double t); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(plan_with_nthreads)(int nthreads); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(planner_nthreads)(void); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(init_threads)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(cleanup_threads)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(threads_set_callback)( \ - void (*parallel_loop)(void *(*work)(char *), \ - char *jobdata, size_t elsize, int njobs, void *data), void *data); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(make_planner_thread_safe)(void); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(export_wisdom_to_filename)(const char *filename); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(export_wisdom_to_file)(FILE *output_file); \ - \ -FFTW_EXTERN char * \ -FFTW_CDECL X(export_wisdom_to_string)(void); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(export_wisdom)(X(write_char_func) write_char, \ - void *data); \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_system_wisdom)(void); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_filename)(const char *filename); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_file)(FILE *input_file); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom_from_string)(const char *input_string); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(import_wisdom)(X(read_char_func) read_char, void *data); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(fprint_plan)(const X(plan) p, FILE *output_file); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(print_plan)(const X(plan) p); \ - \ -FFTW_EXTERN char * \ -FFTW_CDECL X(sprint_plan)(const X(plan) p); \ - \ -FFTW_EXTERN void * \ -FFTW_CDECL X(malloc)(size_t n); \ - \ -FFTW_EXTERN R * \ -FFTW_CDECL X(alloc_real)(size_t n); \ -FFTW_EXTERN C * \ -FFTW_CDECL X(alloc_complex)(size_t n); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(free)(void *p); \ - \ -FFTW_EXTERN void \ -FFTW_CDECL X(flops)(const X(plan) p, \ - double *add, double *mul, double *fmas); \ -FFTW_EXTERN double \ -FFTW_CDECL X(estimate_cost)(const X(plan) p); \ - \ -FFTW_EXTERN double \ -FFTW_CDECL X(cost)(const X(plan) p); \ - \ -FFTW_EXTERN int \ -FFTW_CDECL X(alignment_of)(R *p); \ - \ -FFTW_EXTERN const char X(version)[]; \ -FFTW_EXTERN const char X(cc)[]; \ -FFTW_EXTERN const char X(codelet_optim)[]; - - -/* end of FFTW_DEFINE_API macro */ - -FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex) -FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex) -FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex) - -/* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64 - for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \ - && !(defined(__ICC) || defined(__INTEL_COMPILER) || defined(__CUDACC__) || defined(__PGI)) \ - && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__)) -# if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -/* note: __float128 is a typedef, which is not supported with the _Complex - keyword in gcc, so instead we use this ugly __attribute__ version. - However, we can't simply pass the __attribute__ version to - FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer - types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */ -# undef FFTW_DEFINE_COMPLEX -# define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C -# endif -FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex) -#endif - -#define FFTW_FORWARD (-1) -#define FFTW_BACKWARD (+1) - -#define FFTW_NO_TIMELIMIT (-1.0) - -/* documented flags */ -#define FFTW_MEASURE (0U) -#define FFTW_DESTROY_INPUT (1U << 0) -#define FFTW_UNALIGNED (1U << 1) -#define FFTW_CONSERVE_MEMORY (1U << 2) -#define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */ -#define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */ -#define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */ -#define FFTW_ESTIMATE (1U << 6) -#define FFTW_WISDOM_ONLY (1U << 21) - -/* undocumented beyond-guru flags */ -#define FFTW_ESTIMATE_PATIENT (1U << 7) -#define FFTW_BELIEVE_PCOST (1U << 8) -#define FFTW_NO_DFT_R2HC (1U << 9) -#define FFTW_NO_NONTHREADED (1U << 10) -#define FFTW_NO_BUFFERING (1U << 11) -#define FFTW_NO_INDIRECT_OP (1U << 12) -#define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */ -#define FFTW_NO_RANK_SPLITS (1U << 14) -#define FFTW_NO_VRANK_SPLITS (1U << 15) -#define FFTW_NO_VRECURSE (1U << 16) -#define FFTW_NO_SIMD (1U << 17) -#define FFTW_NO_SLOW (1U << 18) -#define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19) -#define FFTW_ALLOW_PRUNING (1U << 20) - -#ifdef __cplusplus -} /* extern "C" */ -#endif /* __cplusplus */ - -#endif /* FFTW3_H */ diff --git a/libs/macos/lib/libfftw3.dylib b/libs/macos/lib/libfftw3.dylib deleted file mode 100755 index dbd5f2a..0000000 Binary files a/libs/macos/lib/libfftw3.dylib and /dev/null differ diff --git a/libs/windows/bin/x64/libfftw3-3.dll b/libs/windows/bin/x64/libfftw3-3.dll deleted file mode 100644 index 520dbf0..0000000 Binary files a/libs/windows/bin/x64/libfftw3-3.dll and /dev/null differ diff --git a/libs/windows/bin/x86/libfftw3-3.dll b/libs/windows/bin/x86/libfftw3-3.dll deleted file mode 100644 index e8a067f..0000000 Binary files a/libs/windows/bin/x86/libfftw3-3.dll and /dev/null differ diff --git a/libs/windows/include/fftw3.h b/libs/windows/include/fftw3.h deleted file mode 100644 index 4326eae..0000000 --- a/libs/windows/include/fftw3.h +++ /dev/null @@ -1,414 +0,0 @@ -/* - * Copyright (c) 2003, 2007-14 Matteo Frigo - * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology - * - * The following statement of license applies *only* to this header file, - * and *not* to the other files distributed with FFTW or derived therefrom: - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS - * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED - * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY - * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE - * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, - * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING - * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS - * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - */ - -/***************************** NOTE TO USERS ********************************* - * - * THIS IS A HEADER FILE, NOT A MANUAL - * - * If you want to know how to use FFTW, please read the manual, - * online at http://www.fftw.org/doc/ and also included with FFTW. - * For a quick start, see the manual's tutorial section. - * - * (Reading header files to learn how to use a library is a habit - * stemming from code lacking a proper manual. Arguably, it's a - * *bad* habit in most cases, because header files can contain - * interfaces that are not part of the public, stable API.) - * - ****************************************************************************/ - -#ifndef FFTW3_H -#define FFTW3_H - -#include - -#ifdef __cplusplus -extern "C" -{ -#endif /* __cplusplus */ - -/* If is included, use the C99 complex type. Otherwise - define a type bit-compatible with C99 complex */ -#if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -# define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C -#else -# define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2] -#endif - -#define FFTW_CONCAT(prefix, name) prefix ## name -#define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name) -#define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name) -#define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name) -#define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name) - -/* IMPORTANT: for Windows compilers, you should add a line -*/ -#define FFTW_DLL -/* - here and in kernel/ifftw.h if you are compiling/using FFTW as a - DLL, in order to do the proper importing/exporting, or - alternatively compile with -DFFTW_DLL or the equivalent - command-line flag. This is not necessary under MinGW/Cygwin, where - libtool does the imports/exports automatically. */ -#if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__)) - /* annoying Windows syntax for shared-library declarations */ -# if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */ -# define FFTW_EXTERN extern __declspec(dllexport) -# else /* user is calling FFTW; import symbol */ -# define FFTW_EXTERN extern __declspec(dllimport) -# endif -#else -# define FFTW_EXTERN extern -#endif - -enum fftw_r2r_kind_do_not_use_me { - FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2, - FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6, - FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10 -}; - -struct fftw_iodim_do_not_use_me { - int n; /* dimension size */ - int is; /* input stride */ - int os; /* output stride */ -}; - -#include /* for ptrdiff_t */ -struct fftw_iodim64_do_not_use_me { - ptrdiff_t n; /* dimension size */ - ptrdiff_t is; /* input stride */ - ptrdiff_t os; /* output stride */ -}; - -typedef void (*fftw_write_char_func_do_not_use_me)(char c, void *); -typedef int (*fftw_read_char_func_do_not_use_me)(void *); - -/* - huge second-order macro that defines prototypes for all API - functions. We expand this macro for each supported precision - - X: name-mangling macro - R: real data type - C: complex data type -*/ - -#define FFTW_DEFINE_API(X, R, C) \ - \ -FFTW_DEFINE_COMPLEX(R, C); \ - \ -typedef struct X(plan_s) *X(plan); \ - \ -typedef struct fftw_iodim_do_not_use_me X(iodim); \ -typedef struct fftw_iodim64_do_not_use_me X(iodim64); \ - \ -typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \ - \ -typedef fftw_write_char_func_do_not_use_me X(write_char_func); \ -typedef fftw_read_char_func_do_not_use_me X(read_char_func); \ - \ -FFTW_EXTERN void X(execute)(const X(plan) p); \ - \ -FFTW_EXTERN X(plan) X(plan_dft)(int rank, const int *n, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_2d)(int n0, int n1, \ - C *in, C *out, int sign, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_3d)(int n0, int n1, int n2, \ - C *in, C *out, int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_many_dft)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - int sign, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru64_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, C *out, \ - int sign, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru64_split_dft)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *ro, R *io, \ - unsigned flags); \ - \ -FFTW_EXTERN void X(execute_dft)(const X(plan) p, C *in, C *out); \ -FFTW_EXTERN void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \ - R *ro, R *io); \ - \ -FFTW_EXTERN X(plan) X(plan_many_dft_r2c)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - C *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_dft_r2c)(int rank, const int *n, \ - R *in, C *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_r2c_2d)(int n0, int n1, \ - R *in, C *out, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_r2c_3d)(int n0, int n1, \ - int n2, \ - R *in, C *out, unsigned flags); \ - \ - \ -FFTW_EXTERN X(plan) X(plan_many_dft_c2r)(int rank, const int *n, \ - int howmany, \ - C *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_dft_c2r)(int rank, const int *n, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_c2r_2d)(int n0, int n1, \ - C *in, R *out, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_dft_c2r_3d)(int n0, int n1, \ - int n2, \ - C *in, R *out, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru_split_dft_r2c)( \ - int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru_split_dft_c2r)( \ - int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru64_dft_r2c)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, C *out, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru64_dft_c2r)(int rank, \ - const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - C *in, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru64_split_dft_r2c)( \ - int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *ro, R *io, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_guru64_split_dft_c2r)( \ - int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *ri, R *ii, R *out, \ - unsigned flags); \ - \ -FFTW_EXTERN void X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \ -FFTW_EXTERN void X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \ - \ -FFTW_EXTERN void X(execute_split_dft_r2c)(const X(plan) p, \ - R *in, R *ro, R *io); \ -FFTW_EXTERN void X(execute_split_dft_c2r)(const X(plan) p, \ - R *ri, R *ii, R *out); \ - \ -FFTW_EXTERN X(plan) X(plan_many_r2r)(int rank, const int *n, \ - int howmany, \ - R *in, const int *inembed, \ - int istride, int idist, \ - R *out, const int *onembed, \ - int ostride, int odist, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_r2r)(int rank, const int *n, R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_r2r_1d)(int n, R *in, R *out, \ - X(r2r_kind) kind, unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \ - X(r2r_kind) kind0, X(r2r_kind) kind1, \ - unsigned flags); \ -FFTW_EXTERN X(plan) X(plan_r2r_3d)(int n0, int n1, int n2, \ - R *in, R *out, X(r2r_kind) kind0, \ - X(r2r_kind) kind1, X(r2r_kind) kind2, \ - unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru_r2r)(int rank, const X(iodim) *dims, \ - int howmany_rank, \ - const X(iodim) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN X(plan) X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \ - int howmany_rank, \ - const X(iodim64) *howmany_dims, \ - R *in, R *out, \ - const X(r2r_kind) *kind, unsigned flags); \ - \ -FFTW_EXTERN void X(execute_r2r)(const X(plan) p, R *in, R *out); \ - \ -FFTW_EXTERN void X(destroy_plan)(X(plan) p); \ -FFTW_EXTERN void X(forget_wisdom)(void); \ -FFTW_EXTERN void X(cleanup)(void); \ - \ -FFTW_EXTERN void X(set_timelimit)(double t); \ - \ -FFTW_EXTERN void X(plan_with_nthreads)(int nthreads); \ -FFTW_EXTERN int X(init_threads)(void); \ -FFTW_EXTERN void X(cleanup_threads)(void); \ - \ -FFTW_EXTERN int X(export_wisdom_to_filename)(const char *filename); \ -FFTW_EXTERN void X(export_wisdom_to_file)(FILE *output_file); \ -FFTW_EXTERN char *X(export_wisdom_to_string)(void); \ -FFTW_EXTERN void X(export_wisdom)(X(write_char_func) write_char, \ - void *data); \ -FFTW_EXTERN int X(import_system_wisdom)(void); \ -FFTW_EXTERN int X(import_wisdom_from_filename)(const char *filename); \ -FFTW_EXTERN int X(import_wisdom_from_file)(FILE *input_file); \ -FFTW_EXTERN int X(import_wisdom_from_string)(const char *input_string); \ -FFTW_EXTERN int X(import_wisdom)(X(read_char_func) read_char, void *data); \ - \ -FFTW_EXTERN void X(fprint_plan)(const X(plan) p, FILE *output_file); \ -FFTW_EXTERN void X(print_plan)(const X(plan) p); \ -FFTW_EXTERN char *X(sprint_plan)(const X(plan) p); \ - \ -FFTW_EXTERN void *X(malloc)(size_t n); \ -FFTW_EXTERN R *X(alloc_real)(size_t n); \ -FFTW_EXTERN C *X(alloc_complex)(size_t n); \ -FFTW_EXTERN void X(free)(void *p); \ - \ -FFTW_EXTERN void X(flops)(const X(plan) p, \ - double *add, double *mul, double *fmas); \ -FFTW_EXTERN double X(estimate_cost)(const X(plan) p); \ -FFTW_EXTERN double X(cost)(const X(plan) p); \ - \ -FFTW_EXTERN int X(alignment_of)(R *p); \ -FFTW_EXTERN const char X(version)[]; \ -FFTW_EXTERN const char X(cc)[]; \ -FFTW_EXTERN const char X(codelet_optim)[]; - - -/* end of FFTW_DEFINE_API macro */ - -FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex) -FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex) -FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex) - -/* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64 - for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */ -#if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \ - && !(defined(__ICC) || defined(__INTEL_COMPILER)) \ - && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__)) -# if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I) -/* note: __float128 is a typedef, which is not supported with the _Complex - keyword in gcc, so instead we use this ugly __attribute__ version. - However, we can't simply pass the __attribute__ version to - FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer - types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */ -# undef FFTW_DEFINE_COMPLEX -# define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C -# endif -FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex) -#endif - -#define FFTW_FORWARD (-1) -#define FFTW_BACKWARD (+1) - -#define FFTW_NO_TIMELIMIT (-1.0) - -/* documented flags */ -#define FFTW_MEASURE (0U) -#define FFTW_DESTROY_INPUT (1U << 0) -#define FFTW_UNALIGNED (1U << 1) -#define FFTW_CONSERVE_MEMORY (1U << 2) -#define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */ -#define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */ -#define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */ -#define FFTW_ESTIMATE (1U << 6) -#define FFTW_WISDOM_ONLY (1U << 21) - -/* undocumented beyond-guru flags */ -#define FFTW_ESTIMATE_PATIENT (1U << 7) -#define FFTW_BELIEVE_PCOST (1U << 8) -#define FFTW_NO_DFT_R2HC (1U << 9) -#define FFTW_NO_NONTHREADED (1U << 10) -#define FFTW_NO_BUFFERING (1U << 11) -#define FFTW_NO_INDIRECT_OP (1U << 12) -#define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */ -#define FFTW_NO_RANK_SPLITS (1U << 14) -#define FFTW_NO_VRANK_SPLITS (1U << 15) -#define FFTW_NO_VRECURSE (1U << 16) -#define FFTW_NO_SIMD (1U << 17) -#define FFTW_NO_SLOW (1U << 18) -#define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19) -#define FFTW_ALLOW_PRUNING (1U << 20) - -#ifdef __cplusplus -} /* extern "C" */ -#endif /* __cplusplus */ - -#endif /* FFTW3_H */ diff --git a/libs/windows/lib/x64/libfftw3-3.lib b/libs/windows/lib/x64/libfftw3-3.lib deleted file mode 100644 index 481c93d..0000000 Binary files a/libs/windows/lib/x64/libfftw3-3.lib and /dev/null differ diff --git a/libs/windows/lib/x86/libfftw3-3.lib b/libs/windows/lib/x86/libfftw3-3.lib deleted file mode 100644 index 54c02c1..0000000 Binary files a/libs/windows/lib/x86/libfftw3-3.lib and /dev/null differ