annotate Lib/fftw-3.2.1/api/.svn/text-base/api.h.svn-base @ 9:262e084a15a9

Vectorised everything and made use of unique_ptr so there should be no more memory leaks. Hurrah for RAII
author Geogaddi\David <d.m.ronan@qmul.ac.uk>
date Wed, 12 Aug 2015 22:25:06 +0100
parents 25bf17994ef1
children
rev   line source
d@0 1 /*
d@0 2 * Copyright (c) 2003, 2007-8 Matteo Frigo
d@0 3 * Copyright (c) 2003, 2007-8 Massachusetts Institute of Technology
d@0 4 *
d@0 5 * This program is free software; you can redistribute it and/or modify
d@0 6 * it under the terms of the GNU General Public License as published by
d@0 7 * the Free Software Foundation; either version 2 of the License, or
d@0 8 * (at your option) any later version.
d@0 9 *
d@0 10 * This program is distributed in the hope that it will be useful,
d@0 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
d@0 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
d@0 13 * GNU General Public License for more details.
d@0 14 *
d@0 15 * You should have received a copy of the GNU General Public License
d@0 16 * along with this program; if not, write to the Free Software
d@0 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
d@0 18 *
d@0 19 */
d@0 20
d@0 21 /* internal API definitions */
d@0 22 #ifndef __API_H__
d@0 23 #define __API_H__
d@0 24
d@0 25 #ifndef CALLING_FFTW /* defined in hook.c, when calling internal functions */
d@0 26 # define COMPILING_FFTW /* used for DLL symbol exporting in fftw3.h */
d@0 27 #endif
d@0 28
d@0 29 /* When compiling with GNU libtool on Windows, DLL_EXPORT is #defined
d@0 30 for compiling the shared-library code. In this case, we'll #define
d@0 31 FFTW_DLL to add dllexport attributes to the specified functions in
d@0 32 fftw3.h.
d@0 33
d@0 34 If we don't specify dllexport explicitly, then libtool
d@0 35 automatically exports all symbols. However, if we specify
d@0 36 dllexport explicitly for any functions, then libtool apparently
d@0 37 doesn't do any automatic exporting. (Not documented, grrr, but
d@0 38 this is the observed behavior with libtool 1.5.8.) Thus, using
d@0 39 this forces us to correctly dllexport every exported symbol, or
d@0 40 linking bench.exe will fail. This has the advantage of forcing
d@0 41 us to mark things correctly, which is necessary for other compilers
d@0 42 (such as MS VC++). */
d@0 43 #ifdef DLL_EXPORT
d@0 44 # define FFTW_DLL
d@0 45 #endif
d@0 46
d@0 47 /* just in case: force <fftw3.h> not to use C99 complex numbers
d@0 48 (we need this for IBM xlc because _Complex_I is treated specially
d@0 49 and is defined even if <complex.h> is not included) */
d@0 50 #define FFTW_NO_Complex
d@0 51
d@0 52 #include "fftw3.h"
d@0 53 #include "ifftw.h"
d@0 54
d@0 55 /* the API ``plan'' contains both the kernel plan and problem */
d@0 56 struct X(plan_s) {
d@0 57 plan *pln;
d@0 58 problem *prb;
d@0 59 int sign;
d@0 60 };
d@0 61
d@0 62 /* shorthand */
d@0 63 typedef struct X(plan_s) apiplan;
d@0 64
d@0 65 /* complex type for internal use */
d@0 66 typedef R C[2];
d@0 67
d@0 68 #define EXTRACT_REIM(sign, c, r, i) X(extract_reim)(sign, (c)[0], r, i)
d@0 69
d@0 70 #define TAINT_UNALIGNED(p, flg) TAINT(p, ((flg) & FFTW_UNALIGNED) != 0)
d@0 71
d@0 72 tensor *X(mktensor_rowmajor)(int rnk, const int *n,
d@0 73 const int *niphys, const int *nophys,
d@0 74 int is, int os);
d@0 75
d@0 76 tensor *X(mktensor_iodims)(int rank, const X(iodim) *dims, int is, int os);
d@0 77 tensor *X(mktensor_iodims64)(int rank, const X(iodim64) *dims, int is, int os);
d@0 78 const int *X(rdft2_pad)(int rnk, const int *n, const int *nembed,
d@0 79 int inplace, int cmplx, int **nfree);
d@0 80
d@0 81 int X(many_kosherp)(int rnk, const int *n, int howmany);
d@0 82 int X(guru_kosherp)(int rank, const X(iodim) *dims,
d@0 83 int howmany_rank, const X(iodim) *howmany_dims);
d@0 84 int X(guru64_kosherp)(int rank, const X(iodim64) *dims,
d@0 85 int howmany_rank, const X(iodim64) *howmany_dims);
d@0 86
d@0 87 /* Note: FFTW_EXTERN is used for "internal" functions used in tests/hook.c */
d@0 88
d@0 89 FFTW_EXTERN printer *X(mkprinter_file)(FILE *f);
d@0 90
d@0 91 FFTW_EXTERN planner *X(the_planner)(void);
d@0 92 void X(configure_planner)(planner *plnr);
d@0 93
d@0 94 void X(mapflags)(planner *, unsigned);
d@0 95
d@0 96 apiplan *X(mkapiplan)(int sign, unsigned flags, problem *prb);
d@0 97
d@0 98 #endif /* __API_H__ */