annotate src/fftw-3.3.3/api/fftw3.h @ 169:223a55898ab9 tip default

Add null config files
author Chris Cannam <cannam@all-day-breakfast.com>
date Mon, 02 Mar 2020 14:03:47 +0000
parents 89f5e221ed7b
children
rev   line source
cannam@95 1 /*
cannam@95 2 * Copyright (c) 2003, 2007-11 Matteo Frigo
cannam@95 3 * Copyright (c) 2003, 2007-11 Massachusetts Institute of Technology
cannam@95 4 *
cannam@95 5 * The following statement of license applies *only* to this header file,
cannam@95 6 * and *not* to the other files distributed with FFTW or derived therefrom:
cannam@95 7 *
cannam@95 8 * Redistribution and use in source and binary forms, with or without
cannam@95 9 * modification, are permitted provided that the following conditions
cannam@95 10 * are met:
cannam@95 11 *
cannam@95 12 * 1. Redistributions of source code must retain the above copyright
cannam@95 13 * notice, this list of conditions and the following disclaimer.
cannam@95 14 *
cannam@95 15 * 2. Redistributions in binary form must reproduce the above copyright
cannam@95 16 * notice, this list of conditions and the following disclaimer in the
cannam@95 17 * documentation and/or other materials provided with the distribution.
cannam@95 18 *
cannam@95 19 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
cannam@95 20 * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
cannam@95 21 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
cannam@95 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
cannam@95 23 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
cannam@95 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
cannam@95 25 * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
cannam@95 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
cannam@95 27 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
cannam@95 28 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
cannam@95 29 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
cannam@95 30 */
cannam@95 31
cannam@95 32 /***************************** NOTE TO USERS *********************************
cannam@95 33 *
cannam@95 34 * THIS IS A HEADER FILE, NOT A MANUAL
cannam@95 35 *
cannam@95 36 * If you want to know how to use FFTW, please read the manual,
cannam@95 37 * online at http://www.fftw.org/doc/ and also included with FFTW.
cannam@95 38 * For a quick start, see the manual's tutorial section.
cannam@95 39 *
cannam@95 40 * (Reading header files to learn how to use a library is a habit
cannam@95 41 * stemming from code lacking a proper manual. Arguably, it's a
cannam@95 42 * *bad* habit in most cases, because header files can contain
cannam@95 43 * interfaces that are not part of the public, stable API.)
cannam@95 44 *
cannam@95 45 ****************************************************************************/
cannam@95 46
cannam@95 47 #ifndef FFTW3_H
cannam@95 48 #define FFTW3_H
cannam@95 49
cannam@95 50 #include <stdio.h>
cannam@95 51
cannam@95 52 #ifdef __cplusplus
cannam@95 53 extern "C"
cannam@95 54 {
cannam@95 55 #endif /* __cplusplus */
cannam@95 56
cannam@95 57 /* If <complex.h> is included, use the C99 complex type. Otherwise
cannam@95 58 define a type bit-compatible with C99 complex */
cannam@95 59 #if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
cannam@95 60 # define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C
cannam@95 61 #else
cannam@95 62 # define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2]
cannam@95 63 #endif
cannam@95 64
cannam@95 65 #define FFTW_CONCAT(prefix, name) prefix ## name
cannam@95 66 #define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name)
cannam@95 67 #define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name)
cannam@95 68 #define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name)
cannam@95 69 #define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name)
cannam@95 70
cannam@95 71 /* IMPORTANT: for Windows compilers, you should add a line
cannam@95 72 #define FFTW_DLL
cannam@95 73 here and in kernel/ifftw.h if you are compiling/using FFTW as a
cannam@95 74 DLL, in order to do the proper importing/exporting, or
cannam@95 75 alternatively compile with -DFFTW_DLL or the equivalent
cannam@95 76 command-line flag. This is not necessary under MinGW/Cygwin, where
cannam@95 77 libtool does the imports/exports automatically. */
cannam@95 78 #if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__))
cannam@95 79 /* annoying Windows syntax for shared-library declarations */
cannam@95 80 # if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */
cannam@95 81 # define FFTW_EXTERN extern __declspec(dllexport)
cannam@95 82 # else /* user is calling FFTW; import symbol */
cannam@95 83 # define FFTW_EXTERN extern __declspec(dllimport)
cannam@95 84 # endif
cannam@95 85 #else
cannam@95 86 # define FFTW_EXTERN extern
cannam@95 87 #endif
cannam@95 88
cannam@95 89 enum fftw_r2r_kind_do_not_use_me {
cannam@95 90 FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
cannam@95 91 FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
cannam@95 92 FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
cannam@95 93 };
cannam@95 94
cannam@95 95 struct fftw_iodim_do_not_use_me {
cannam@95 96 int n; /* dimension size */
cannam@95 97 int is; /* input stride */
cannam@95 98 int os; /* output stride */
cannam@95 99 };
cannam@95 100
cannam@95 101 #include <stddef.h> /* for ptrdiff_t */
cannam@95 102 struct fftw_iodim64_do_not_use_me {
cannam@95 103 ptrdiff_t n; /* dimension size */
cannam@95 104 ptrdiff_t is; /* input stride */
cannam@95 105 ptrdiff_t os; /* output stride */
cannam@95 106 };
cannam@95 107
cannam@95 108 typedef void (*fftw_write_char_func_do_not_use_me)(char c, void *);
cannam@95 109 typedef int (*fftw_read_char_func_do_not_use_me)(void *);
cannam@95 110
cannam@95 111 /*
cannam@95 112 huge second-order macro that defines prototypes for all API
cannam@95 113 functions. We expand this macro for each supported precision
cannam@95 114
cannam@95 115 X: name-mangling macro
cannam@95 116 R: real data type
cannam@95 117 C: complex data type
cannam@95 118 */
cannam@95 119
cannam@95 120 #define FFTW_DEFINE_API(X, R, C) \
cannam@95 121 \
cannam@95 122 FFTW_DEFINE_COMPLEX(R, C); \
cannam@95 123 \
cannam@95 124 typedef struct X(plan_s) *X(plan); \
cannam@95 125 \
cannam@95 126 typedef struct fftw_iodim_do_not_use_me X(iodim); \
cannam@95 127 typedef struct fftw_iodim64_do_not_use_me X(iodim64); \
cannam@95 128 \
cannam@95 129 typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \
cannam@95 130 \
cannam@95 131 typedef fftw_write_char_func_do_not_use_me X(write_char_func); \
cannam@95 132 typedef fftw_read_char_func_do_not_use_me X(read_char_func); \
cannam@95 133 \
cannam@95 134 FFTW_EXTERN void X(execute)(const X(plan) p); \
cannam@95 135 \
cannam@95 136 FFTW_EXTERN X(plan) X(plan_dft)(int rank, const int *n, \
cannam@95 137 C *in, C *out, int sign, unsigned flags); \
cannam@95 138 \
cannam@95 139 FFTW_EXTERN X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, \
cannam@95 140 unsigned flags); \
cannam@95 141 FFTW_EXTERN X(plan) X(plan_dft_2d)(int n0, int n1, \
cannam@95 142 C *in, C *out, int sign, unsigned flags); \
cannam@95 143 FFTW_EXTERN X(plan) X(plan_dft_3d)(int n0, int n1, int n2, \
cannam@95 144 C *in, C *out, int sign, unsigned flags); \
cannam@95 145 \
cannam@95 146 FFTW_EXTERN X(plan) X(plan_many_dft)(int rank, const int *n, \
cannam@95 147 int howmany, \
cannam@95 148 C *in, const int *inembed, \
cannam@95 149 int istride, int idist, \
cannam@95 150 C *out, const int *onembed, \
cannam@95 151 int ostride, int odist, \
cannam@95 152 int sign, unsigned flags); \
cannam@95 153 \
cannam@95 154 FFTW_EXTERN X(plan) X(plan_guru_dft)(int rank, const X(iodim) *dims, \
cannam@95 155 int howmany_rank, \
cannam@95 156 const X(iodim) *howmany_dims, \
cannam@95 157 C *in, C *out, \
cannam@95 158 int sign, unsigned flags); \
cannam@95 159 FFTW_EXTERN X(plan) X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \
cannam@95 160 int howmany_rank, \
cannam@95 161 const X(iodim) *howmany_dims, \
cannam@95 162 R *ri, R *ii, R *ro, R *io, \
cannam@95 163 unsigned flags); \
cannam@95 164 \
cannam@95 165 FFTW_EXTERN X(plan) X(plan_guru64_dft)(int rank, \
cannam@95 166 const X(iodim64) *dims, \
cannam@95 167 int howmany_rank, \
cannam@95 168 const X(iodim64) *howmany_dims, \
cannam@95 169 C *in, C *out, \
cannam@95 170 int sign, unsigned flags); \
cannam@95 171 FFTW_EXTERN X(plan) X(plan_guru64_split_dft)(int rank, \
cannam@95 172 const X(iodim64) *dims, \
cannam@95 173 int howmany_rank, \
cannam@95 174 const X(iodim64) *howmany_dims, \
cannam@95 175 R *ri, R *ii, R *ro, R *io, \
cannam@95 176 unsigned flags); \
cannam@95 177 \
cannam@95 178 FFTW_EXTERN void X(execute_dft)(const X(plan) p, C *in, C *out); \
cannam@95 179 FFTW_EXTERN void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \
cannam@95 180 R *ro, R *io); \
cannam@95 181 \
cannam@95 182 FFTW_EXTERN X(plan) X(plan_many_dft_r2c)(int rank, const int *n, \
cannam@95 183 int howmany, \
cannam@95 184 R *in, const int *inembed, \
cannam@95 185 int istride, int idist, \
cannam@95 186 C *out, const int *onembed, \
cannam@95 187 int ostride, int odist, \
cannam@95 188 unsigned flags); \
cannam@95 189 \
cannam@95 190 FFTW_EXTERN X(plan) X(plan_dft_r2c)(int rank, const int *n, \
cannam@95 191 R *in, C *out, unsigned flags); \
cannam@95 192 \
cannam@95 193 FFTW_EXTERN X(plan) X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \
cannam@95 194 FFTW_EXTERN X(plan) X(plan_dft_r2c_2d)(int n0, int n1, \
cannam@95 195 R *in, C *out, unsigned flags); \
cannam@95 196 FFTW_EXTERN X(plan) X(plan_dft_r2c_3d)(int n0, int n1, \
cannam@95 197 int n2, \
cannam@95 198 R *in, C *out, unsigned flags); \
cannam@95 199 \
cannam@95 200 \
cannam@95 201 FFTW_EXTERN X(plan) X(plan_many_dft_c2r)(int rank, const int *n, \
cannam@95 202 int howmany, \
cannam@95 203 C *in, const int *inembed, \
cannam@95 204 int istride, int idist, \
cannam@95 205 R *out, const int *onembed, \
cannam@95 206 int ostride, int odist, \
cannam@95 207 unsigned flags); \
cannam@95 208 \
cannam@95 209 FFTW_EXTERN X(plan) X(plan_dft_c2r)(int rank, const int *n, \
cannam@95 210 C *in, R *out, unsigned flags); \
cannam@95 211 \
cannam@95 212 FFTW_EXTERN X(plan) X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \
cannam@95 213 FFTW_EXTERN X(plan) X(plan_dft_c2r_2d)(int n0, int n1, \
cannam@95 214 C *in, R *out, unsigned flags); \
cannam@95 215 FFTW_EXTERN X(plan) X(plan_dft_c2r_3d)(int n0, int n1, \
cannam@95 216 int n2, \
cannam@95 217 C *in, R *out, unsigned flags); \
cannam@95 218 \
cannam@95 219 FFTW_EXTERN X(plan) X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \
cannam@95 220 int howmany_rank, \
cannam@95 221 const X(iodim) *howmany_dims, \
cannam@95 222 R *in, C *out, \
cannam@95 223 unsigned flags); \
cannam@95 224 FFTW_EXTERN X(plan) X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \
cannam@95 225 int howmany_rank, \
cannam@95 226 const X(iodim) *howmany_dims, \
cannam@95 227 C *in, R *out, \
cannam@95 228 unsigned flags); \
cannam@95 229 \
cannam@95 230 FFTW_EXTERN X(plan) X(plan_guru_split_dft_r2c)( \
cannam@95 231 int rank, const X(iodim) *dims, \
cannam@95 232 int howmany_rank, \
cannam@95 233 const X(iodim) *howmany_dims, \
cannam@95 234 R *in, R *ro, R *io, \
cannam@95 235 unsigned flags); \
cannam@95 236 FFTW_EXTERN X(plan) X(plan_guru_split_dft_c2r)( \
cannam@95 237 int rank, const X(iodim) *dims, \
cannam@95 238 int howmany_rank, \
cannam@95 239 const X(iodim) *howmany_dims, \
cannam@95 240 R *ri, R *ii, R *out, \
cannam@95 241 unsigned flags); \
cannam@95 242 \
cannam@95 243 FFTW_EXTERN X(plan) X(plan_guru64_dft_r2c)(int rank, \
cannam@95 244 const X(iodim64) *dims, \
cannam@95 245 int howmany_rank, \
cannam@95 246 const X(iodim64) *howmany_dims, \
cannam@95 247 R *in, C *out, \
cannam@95 248 unsigned flags); \
cannam@95 249 FFTW_EXTERN X(plan) X(plan_guru64_dft_c2r)(int rank, \
cannam@95 250 const X(iodim64) *dims, \
cannam@95 251 int howmany_rank, \
cannam@95 252 const X(iodim64) *howmany_dims, \
cannam@95 253 C *in, R *out, \
cannam@95 254 unsigned flags); \
cannam@95 255 \
cannam@95 256 FFTW_EXTERN X(plan) X(plan_guru64_split_dft_r2c)( \
cannam@95 257 int rank, const X(iodim64) *dims, \
cannam@95 258 int howmany_rank, \
cannam@95 259 const X(iodim64) *howmany_dims, \
cannam@95 260 R *in, R *ro, R *io, \
cannam@95 261 unsigned flags); \
cannam@95 262 FFTW_EXTERN X(plan) X(plan_guru64_split_dft_c2r)( \
cannam@95 263 int rank, const X(iodim64) *dims, \
cannam@95 264 int howmany_rank, \
cannam@95 265 const X(iodim64) *howmany_dims, \
cannam@95 266 R *ri, R *ii, R *out, \
cannam@95 267 unsigned flags); \
cannam@95 268 \
cannam@95 269 FFTW_EXTERN void X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \
cannam@95 270 FFTW_EXTERN void X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \
cannam@95 271 \
cannam@95 272 FFTW_EXTERN void X(execute_split_dft_r2c)(const X(plan) p, \
cannam@95 273 R *in, R *ro, R *io); \
cannam@95 274 FFTW_EXTERN void X(execute_split_dft_c2r)(const X(plan) p, \
cannam@95 275 R *ri, R *ii, R *out); \
cannam@95 276 \
cannam@95 277 FFTW_EXTERN X(plan) X(plan_many_r2r)(int rank, const int *n, \
cannam@95 278 int howmany, \
cannam@95 279 R *in, const int *inembed, \
cannam@95 280 int istride, int idist, \
cannam@95 281 R *out, const int *onembed, \
cannam@95 282 int ostride, int odist, \
cannam@95 283 const X(r2r_kind) *kind, unsigned flags); \
cannam@95 284 \
cannam@95 285 FFTW_EXTERN X(plan) X(plan_r2r)(int rank, const int *n, R *in, R *out, \
cannam@95 286 const X(r2r_kind) *kind, unsigned flags); \
cannam@95 287 \
cannam@95 288 FFTW_EXTERN X(plan) X(plan_r2r_1d)(int n, R *in, R *out, \
cannam@95 289 X(r2r_kind) kind, unsigned flags); \
cannam@95 290 FFTW_EXTERN X(plan) X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \
cannam@95 291 X(r2r_kind) kind0, X(r2r_kind) kind1, \
cannam@95 292 unsigned flags); \
cannam@95 293 FFTW_EXTERN X(plan) X(plan_r2r_3d)(int n0, int n1, int n2, \
cannam@95 294 R *in, R *out, X(r2r_kind) kind0, \
cannam@95 295 X(r2r_kind) kind1, X(r2r_kind) kind2, \
cannam@95 296 unsigned flags); \
cannam@95 297 \
cannam@95 298 FFTW_EXTERN X(plan) X(plan_guru_r2r)(int rank, const X(iodim) *dims, \
cannam@95 299 int howmany_rank, \
cannam@95 300 const X(iodim) *howmany_dims, \
cannam@95 301 R *in, R *out, \
cannam@95 302 const X(r2r_kind) *kind, unsigned flags); \
cannam@95 303 \
cannam@95 304 FFTW_EXTERN X(plan) X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \
cannam@95 305 int howmany_rank, \
cannam@95 306 const X(iodim64) *howmany_dims, \
cannam@95 307 R *in, R *out, \
cannam@95 308 const X(r2r_kind) *kind, unsigned flags); \
cannam@95 309 \
cannam@95 310 FFTW_EXTERN void X(execute_r2r)(const X(plan) p, R *in, R *out); \
cannam@95 311 \
cannam@95 312 FFTW_EXTERN void X(destroy_plan)(X(plan) p); \
cannam@95 313 FFTW_EXTERN void X(forget_wisdom)(void); \
cannam@95 314 FFTW_EXTERN void X(cleanup)(void); \
cannam@95 315 \
cannam@95 316 FFTW_EXTERN void X(set_timelimit)(double t); \
cannam@95 317 \
cannam@95 318 FFTW_EXTERN void X(plan_with_nthreads)(int nthreads); \
cannam@95 319 FFTW_EXTERN int X(init_threads)(void); \
cannam@95 320 FFTW_EXTERN void X(cleanup_threads)(void); \
cannam@95 321 \
cannam@95 322 FFTW_EXTERN int X(export_wisdom_to_filename)(const char *filename); \
cannam@95 323 FFTW_EXTERN void X(export_wisdom_to_file)(FILE *output_file); \
cannam@95 324 FFTW_EXTERN char *X(export_wisdom_to_string)(void); \
cannam@95 325 FFTW_EXTERN void X(export_wisdom)(X(write_char_func) write_char, \
cannam@95 326 void *data); \
cannam@95 327 FFTW_EXTERN int X(import_system_wisdom)(void); \
cannam@95 328 FFTW_EXTERN int X(import_wisdom_from_filename)(const char *filename); \
cannam@95 329 FFTW_EXTERN int X(import_wisdom_from_file)(FILE *input_file); \
cannam@95 330 FFTW_EXTERN int X(import_wisdom_from_string)(const char *input_string); \
cannam@95 331 FFTW_EXTERN int X(import_wisdom)(X(read_char_func) read_char, void *data); \
cannam@95 332 \
cannam@95 333 FFTW_EXTERN void X(fprint_plan)(const X(plan) p, FILE *output_file); \
cannam@95 334 FFTW_EXTERN void X(print_plan)(const X(plan) p); \
cannam@95 335 \
cannam@95 336 FFTW_EXTERN void *X(malloc)(size_t n); \
cannam@95 337 FFTW_EXTERN R *X(alloc_real)(size_t n); \
cannam@95 338 FFTW_EXTERN C *X(alloc_complex)(size_t n); \
cannam@95 339 FFTW_EXTERN void X(free)(void *p); \
cannam@95 340 \
cannam@95 341 FFTW_EXTERN void X(flops)(const X(plan) p, \
cannam@95 342 double *add, double *mul, double *fmas); \
cannam@95 343 FFTW_EXTERN double X(estimate_cost)(const X(plan) p); \
cannam@95 344 FFTW_EXTERN double X(cost)(const X(plan) p); \
cannam@95 345 \
cannam@95 346 FFTW_EXTERN const char X(version)[]; \
cannam@95 347 FFTW_EXTERN const char X(cc)[]; \
cannam@95 348 FFTW_EXTERN const char X(codelet_optim)[];
cannam@95 349
cannam@95 350
cannam@95 351 /* end of FFTW_DEFINE_API macro */
cannam@95 352
cannam@95 353 FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex)
cannam@95 354 FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex)
cannam@95 355 FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex)
cannam@95 356
cannam@95 357 /* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64
cannam@95 358 for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */
cannam@95 359 #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \
cannam@95 360 && !(defined(__ICC) || defined(__INTEL_COMPILER)) \
cannam@95 361 && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__))
cannam@95 362 # if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
cannam@95 363 /* note: __float128 is a typedef, which is not supported with the _Complex
cannam@95 364 keyword in gcc, so instead we use this ugly __attribute__ version.
cannam@95 365 However, we can't simply pass the __attribute__ version to
cannam@95 366 FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer
cannam@95 367 types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */
cannam@95 368 # undef FFTW_DEFINE_COMPLEX
cannam@95 369 # define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C
cannam@95 370 # endif
cannam@95 371 FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex)
cannam@95 372 #endif
cannam@95 373
cannam@95 374 #define FFTW_FORWARD (-1)
cannam@95 375 #define FFTW_BACKWARD (+1)
cannam@95 376
cannam@95 377 #define FFTW_NO_TIMELIMIT (-1.0)
cannam@95 378
cannam@95 379 /* documented flags */
cannam@95 380 #define FFTW_MEASURE (0U)
cannam@95 381 #define FFTW_DESTROY_INPUT (1U << 0)
cannam@95 382 #define FFTW_UNALIGNED (1U << 1)
cannam@95 383 #define FFTW_CONSERVE_MEMORY (1U << 2)
cannam@95 384 #define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */
cannam@95 385 #define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */
cannam@95 386 #define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */
cannam@95 387 #define FFTW_ESTIMATE (1U << 6)
cannam@95 388 #define FFTW_WISDOM_ONLY (1U << 21)
cannam@95 389
cannam@95 390 /* undocumented beyond-guru flags */
cannam@95 391 #define FFTW_ESTIMATE_PATIENT (1U << 7)
cannam@95 392 #define FFTW_BELIEVE_PCOST (1U << 8)
cannam@95 393 #define FFTW_NO_DFT_R2HC (1U << 9)
cannam@95 394 #define FFTW_NO_NONTHREADED (1U << 10)
cannam@95 395 #define FFTW_NO_BUFFERING (1U << 11)
cannam@95 396 #define FFTW_NO_INDIRECT_OP (1U << 12)
cannam@95 397 #define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */
cannam@95 398 #define FFTW_NO_RANK_SPLITS (1U << 14)
cannam@95 399 #define FFTW_NO_VRANK_SPLITS (1U << 15)
cannam@95 400 #define FFTW_NO_VRECURSE (1U << 16)
cannam@95 401 #define FFTW_NO_SIMD (1U << 17)
cannam@95 402 #define FFTW_NO_SLOW (1U << 18)
cannam@95 403 #define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19)
cannam@95 404 #define FFTW_ALLOW_PRUNING (1U << 20)
cannam@95 405
cannam@95 406 #ifdef __cplusplus
cannam@95 407 } /* extern "C" */
cannam@95 408 #endif /* __cplusplus */
cannam@95 409
cannam@95 410 #endif /* FFTW3_H */