cannam@167
|
1 /*
|
cannam@167
|
2 * Copyright (c) 2003, 2007-14 Matteo Frigo
|
cannam@167
|
3 * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
|
cannam@167
|
4 *
|
cannam@167
|
5 * This program is free software; you can redistribute it and/or modify
|
cannam@167
|
6 * it under the terms of the GNU General Public License as published by
|
cannam@167
|
7 * the Free Software Foundation; either version 2 of the License, or
|
cannam@167
|
8 * (at your option) any later version.
|
cannam@167
|
9 *
|
cannam@167
|
10 * This program is distributed in the hope that it will be useful,
|
cannam@167
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@167
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@167
|
13 * GNU General Public License for more details.
|
cannam@167
|
14 *
|
cannam@167
|
15 * You should have received a copy of the GNU General Public License
|
cannam@167
|
16 * along with this program; if not, write to the Free Software
|
cannam@167
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
cannam@167
|
18 *
|
cannam@167
|
19 */
|
cannam@167
|
20
|
cannam@167
|
21
|
cannam@167
|
22 #include "dft/dft.h"
|
cannam@167
|
23
|
cannam@167
|
24 static const solvtab s =
|
cannam@167
|
25 {
|
cannam@167
|
26 SOLVTAB(X(dft_indirect_register)),
|
cannam@167
|
27 SOLVTAB(X(dft_indirect_transpose_register)),
|
cannam@167
|
28 SOLVTAB(X(dft_rank_geq2_register)),
|
cannam@167
|
29 SOLVTAB(X(dft_vrank_geq1_register)),
|
cannam@167
|
30 SOLVTAB(X(dft_buffered_register)),
|
cannam@167
|
31 SOLVTAB(X(dft_generic_register)),
|
cannam@167
|
32 SOLVTAB(X(dft_rader_register)),
|
cannam@167
|
33 SOLVTAB(X(dft_bluestein_register)),
|
cannam@167
|
34 SOLVTAB(X(dft_nop_register)),
|
cannam@167
|
35 SOLVTAB(X(ct_generic_register)),
|
cannam@167
|
36 SOLVTAB(X(ct_genericbuf_register)),
|
cannam@167
|
37 SOLVTAB_END
|
cannam@167
|
38 };
|
cannam@167
|
39
|
cannam@167
|
40 void X(dft_conf_standard)(planner *p)
|
cannam@167
|
41 {
|
cannam@167
|
42 X(solvtab_exec)(s, p);
|
cannam@167
|
43 X(solvtab_exec)(X(solvtab_dft_standard), p);
|
cannam@167
|
44 #if HAVE_SSE2
|
cannam@167
|
45 if (X(have_simd_sse2)())
|
cannam@167
|
46 X(solvtab_exec)(X(solvtab_dft_sse2), p);
|
cannam@167
|
47 #endif
|
cannam@167
|
48 #if HAVE_AVX
|
cannam@167
|
49 if (X(have_simd_avx)())
|
cannam@167
|
50 X(solvtab_exec)(X(solvtab_dft_avx), p);
|
cannam@167
|
51 #endif
|
cannam@167
|
52 #if HAVE_AVX_128_FMA
|
cannam@167
|
53 if (X(have_simd_avx_128_fma)())
|
cannam@167
|
54 X(solvtab_exec)(X(solvtab_dft_avx_128_fma), p);
|
cannam@167
|
55 #endif
|
cannam@167
|
56 #if HAVE_AVX2
|
cannam@167
|
57 if (X(have_simd_avx2)())
|
cannam@167
|
58 X(solvtab_exec)(X(solvtab_dft_avx2), p);
|
cannam@167
|
59 if (X(have_simd_avx2_128)())
|
cannam@167
|
60 X(solvtab_exec)(X(solvtab_dft_avx2_128), p);
|
cannam@167
|
61 #endif
|
cannam@167
|
62 #if HAVE_AVX512
|
cannam@167
|
63 if (X(have_simd_avx512)())
|
cannam@167
|
64 X(solvtab_exec)(X(solvtab_dft_avx512), p);
|
cannam@167
|
65 #endif
|
cannam@167
|
66 #if HAVE_KCVI
|
cannam@167
|
67 if (X(have_simd_kcvi)())
|
cannam@167
|
68 X(solvtab_exec)(X(solvtab_dft_kcvi), p);
|
cannam@167
|
69 #endif
|
cannam@167
|
70 #if HAVE_ALTIVEC
|
cannam@167
|
71 if (X(have_simd_altivec)())
|
cannam@167
|
72 X(solvtab_exec)(X(solvtab_dft_altivec), p);
|
cannam@167
|
73 #endif
|
cannam@167
|
74 #if HAVE_VSX
|
cannam@167
|
75 if (X(have_simd_vsx)())
|
cannam@167
|
76 X(solvtab_exec)(X(solvtab_dft_vsx), p);
|
cannam@167
|
77 #endif
|
cannam@167
|
78 #if HAVE_NEON
|
cannam@167
|
79 if (X(have_simd_neon)())
|
cannam@167
|
80 X(solvtab_exec)(X(solvtab_dft_neon), p);
|
cannam@167
|
81 #endif
|
cannam@167
|
82 #if HAVE_GENERIC_SIMD128
|
cannam@167
|
83 X(solvtab_exec)(X(solvtab_dft_generic_simd128), p);
|
cannam@167
|
84 #endif
|
cannam@167
|
85 #if HAVE_GENERIC_SIMD256
|
cannam@167
|
86 X(solvtab_exec)(X(solvtab_dft_generic_simd256), p);
|
cannam@167
|
87 #endif
|
cannam@167
|
88 }
|