annotate fft/fftw/fftw-3.3.4/dft/codelet-dft.h @ 40:223f770b5341 kissfft-double tip

Try a double-precision kissfft
author Chris Cannam
date Wed, 07 Sep 2016 10:40:32 +0100
parents 26056e866c29
children
rev   line source
Chris@19 1 /*
Chris@19 2 * Copyright (c) 2003, 2007-14 Matteo Frigo
Chris@19 3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
Chris@19 4 *
Chris@19 5 * This program is free software; you can redistribute it and/or modify
Chris@19 6 * it under the terms of the GNU General Public License as published by
Chris@19 7 * the Free Software Foundation; either version 2 of the License, or
Chris@19 8 * (at your option) any later version.
Chris@19 9 *
Chris@19 10 * This program is distributed in the hope that it will be useful,
Chris@19 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@19 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@19 13 * GNU General Public License for more details.
Chris@19 14 *
Chris@19 15 * You should have received a copy of the GNU General Public License
Chris@19 16 * along with this program; if not, write to the Free Software
Chris@19 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Chris@19 18 *
Chris@19 19 */
Chris@19 20
Chris@19 21
Chris@19 22 /*
Chris@19 23 * This header file must include every file or define every
Chris@19 24 * type or macro which is required to compile a codelet.
Chris@19 25 */
Chris@19 26
Chris@19 27 #ifndef __DFT_CODELET_H__
Chris@19 28 #define __DFT_CODELET_H__
Chris@19 29
Chris@19 30 #include "ifftw.h"
Chris@19 31
Chris@19 32 /**************************************************************
Chris@19 33 * types of codelets
Chris@19 34 **************************************************************/
Chris@19 35
Chris@19 36 /* DFT codelets */
Chris@19 37 typedef struct kdft_desc_s kdft_desc;
Chris@19 38
Chris@19 39 typedef struct {
Chris@19 40 int (*okp)(
Chris@19 41 const kdft_desc *desc,
Chris@19 42 const R *ri, const R *ii, const R *ro, const R *io,
Chris@19 43 INT is, INT os, INT vl, INT ivs, INT ovs,
Chris@19 44 const planner *plnr);
Chris@19 45 INT vl;
Chris@19 46 } kdft_genus;
Chris@19 47
Chris@19 48 struct kdft_desc_s {
Chris@19 49 INT sz; /* size of transform computed */
Chris@19 50 const char *nam;
Chris@19 51 opcnt ops;
Chris@19 52 const kdft_genus *genus;
Chris@19 53 INT is;
Chris@19 54 INT os;
Chris@19 55 INT ivs;
Chris@19 56 INT ovs;
Chris@19 57 };
Chris@19 58
Chris@19 59 typedef void (*kdft) (const R *ri, const R *ii, R *ro, R *io,
Chris@19 60 stride is, stride os, INT vl, INT ivs, INT ovs);
Chris@19 61 void X(kdft_register)(planner *p, kdft codelet, const kdft_desc *desc);
Chris@19 62
Chris@19 63
Chris@19 64 typedef struct ct_desc_s ct_desc;
Chris@19 65
Chris@19 66 typedef struct {
Chris@19 67 int (*okp)(
Chris@19 68 const struct ct_desc_s *desc,
Chris@19 69 const R *rio, const R *iio,
Chris@19 70 INT rs, INT vs, INT m, INT mb, INT me, INT ms,
Chris@19 71 const planner *plnr);
Chris@19 72 INT vl;
Chris@19 73 } ct_genus;
Chris@19 74
Chris@19 75 struct ct_desc_s {
Chris@19 76 INT radix;
Chris@19 77 const char *nam;
Chris@19 78 const tw_instr *tw;
Chris@19 79 const ct_genus *genus;
Chris@19 80 opcnt ops;
Chris@19 81 INT rs;
Chris@19 82 INT vs;
Chris@19 83 INT ms;
Chris@19 84 };
Chris@19 85
Chris@19 86 typedef void (*kdftw) (R *rioarray, R *iioarray, const R *W,
Chris@19 87 stride ios, INT mb, INT me, INT ms);
Chris@19 88 void X(kdft_dit_register)(planner *p, kdftw codelet, const ct_desc *desc);
Chris@19 89 void X(kdft_dif_register)(planner *p, kdftw codelet, const ct_desc *desc);
Chris@19 90
Chris@19 91
Chris@19 92 typedef void (*kdftwsq) (R *rioarray, R *iioarray,
Chris@19 93 const R *W, stride is, stride vs,
Chris@19 94 INT mb, INT me, INT ms);
Chris@19 95 void X(kdft_difsq_register)(planner *p, kdftwsq codelet, const ct_desc *desc);
Chris@19 96
Chris@19 97
Chris@19 98 extern const solvtab X(solvtab_dft_standard);
Chris@19 99 extern const solvtab X(solvtab_dft_sse2);
Chris@19 100 extern const solvtab X(solvtab_dft_avx);
Chris@19 101 extern const solvtab X(solvtab_dft_altivec);
Chris@19 102 extern const solvtab X(solvtab_dft_neon);
Chris@19 103
Chris@19 104 #endif /* __DFT_CODELET_H__ */