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