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 * This program is free software; you can redistribute it and/or modify
|
cannam@127
|
6 * it under the terms of the GNU General Public License as published by
|
cannam@127
|
7 * the Free Software Foundation; either version 2 of the License, or
|
cannam@127
|
8 * (at your option) any later version.
|
cannam@127
|
9 *
|
cannam@127
|
10 * This program is distributed in the hope that it will be useful,
|
cannam@127
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
cannam@127
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
cannam@127
|
13 * GNU General Public License for more details.
|
cannam@127
|
14 *
|
cannam@127
|
15 * You should have received a copy of the GNU General Public License
|
cannam@127
|
16 * along with this program; if not, write to the Free Software
|
cannam@127
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
cannam@127
|
18 *
|
cannam@127
|
19 */
|
cannam@127
|
20
|
cannam@127
|
21
|
cannam@127
|
22 #include "rdft.h"
|
cannam@127
|
23
|
cannam@127
|
24 static const solvtab s =
|
cannam@127
|
25 {
|
cannam@127
|
26 SOLVTAB(X(rdft_indirect_register)),
|
cannam@127
|
27 SOLVTAB(X(rdft_rank0_register)),
|
cannam@127
|
28 SOLVTAB(X(rdft_vrank3_transpose_register)),
|
cannam@127
|
29 SOLVTAB(X(rdft_vrank_geq1_register)),
|
cannam@127
|
30
|
cannam@127
|
31 SOLVTAB(X(rdft_nop_register)),
|
cannam@127
|
32 SOLVTAB(X(rdft_buffered_register)),
|
cannam@127
|
33 SOLVTAB(X(rdft_generic_register)),
|
cannam@127
|
34 SOLVTAB(X(rdft_rank_geq2_register)),
|
cannam@127
|
35
|
cannam@127
|
36 SOLVTAB(X(dft_r2hc_register)),
|
cannam@127
|
37
|
cannam@127
|
38 SOLVTAB(X(rdft_dht_register)),
|
cannam@127
|
39 SOLVTAB(X(dht_r2hc_register)),
|
cannam@127
|
40 SOLVTAB(X(dht_rader_register)),
|
cannam@127
|
41
|
cannam@127
|
42 SOLVTAB(X(rdft2_vrank_geq1_register)),
|
cannam@127
|
43 SOLVTAB(X(rdft2_nop_register)),
|
cannam@127
|
44 SOLVTAB(X(rdft2_rank0_register)),
|
cannam@127
|
45 SOLVTAB(X(rdft2_buffered_register)),
|
cannam@127
|
46 SOLVTAB(X(rdft2_rank_geq2_register)),
|
cannam@127
|
47 SOLVTAB(X(rdft2_rdft_register)),
|
cannam@127
|
48
|
cannam@127
|
49 SOLVTAB(X(hc2hc_generic_register)),
|
cannam@127
|
50
|
cannam@127
|
51 SOLVTAB_END
|
cannam@127
|
52 };
|
cannam@127
|
53
|
cannam@127
|
54 void X(rdft_conf_standard)(planner *p)
|
cannam@127
|
55 {
|
cannam@127
|
56 X(solvtab_exec)(s, p);
|
cannam@127
|
57 X(solvtab_exec)(X(solvtab_rdft_r2cf), p);
|
cannam@127
|
58 X(solvtab_exec)(X(solvtab_rdft_r2cb), p);
|
cannam@127
|
59 X(solvtab_exec)(X(solvtab_rdft_r2r), p);
|
cannam@127
|
60
|
cannam@127
|
61 #if HAVE_SSE2
|
cannam@127
|
62 if (X(have_simd_sse2)())
|
cannam@127
|
63 X(solvtab_exec)(X(solvtab_rdft_sse2), p);
|
cannam@127
|
64 #endif
|
cannam@127
|
65 #if HAVE_AVX
|
cannam@127
|
66 if (X(have_simd_avx)())
|
cannam@127
|
67 X(solvtab_exec)(X(solvtab_rdft_avx), p);
|
cannam@127
|
68 #endif
|
cannam@127
|
69 #if HAVE_AVX_128_FMA
|
cannam@127
|
70 if (X(have_simd_avx_128_fma)())
|
cannam@127
|
71 X(solvtab_exec)(X(solvtab_rdft_avx_128_fma), p);
|
cannam@127
|
72 #endif
|
cannam@127
|
73 #if HAVE_AVX2
|
cannam@127
|
74 if (X(have_simd_avx2)())
|
cannam@127
|
75 X(solvtab_exec)(X(solvtab_rdft_avx2), p);
|
cannam@127
|
76 if (X(have_simd_avx2_128)())
|
cannam@127
|
77 X(solvtab_exec)(X(solvtab_rdft_avx2_128), p);
|
cannam@127
|
78 #endif
|
cannam@127
|
79 #if HAVE_AVX512
|
cannam@127
|
80 if (X(have_simd_avx512)())
|
cannam@127
|
81 X(solvtab_exec)(X(solvtab_rdft_avx512), p);
|
cannam@127
|
82 #endif
|
cannam@127
|
83 #if HAVE_KCVI
|
cannam@127
|
84 if (X(have_simd_kcvi)())
|
cannam@127
|
85 X(solvtab_exec)(X(solvtab_rdft_kcvi), p);
|
cannam@127
|
86 #endif
|
cannam@127
|
87 #if HAVE_ALTIVEC
|
cannam@127
|
88 if (X(have_simd_altivec)())
|
cannam@127
|
89 X(solvtab_exec)(X(solvtab_rdft_altivec), p);
|
cannam@127
|
90 #endif
|
cannam@127
|
91 #if HAVE_VSX
|
cannam@127
|
92 if (X(have_simd_vsx)())
|
cannam@127
|
93 X(solvtab_exec)(X(solvtab_rdft_vsx), p);
|
cannam@127
|
94 #endif
|
cannam@127
|
95 #if HAVE_NEON
|
cannam@127
|
96 if (X(have_simd_neon)())
|
cannam@127
|
97 X(solvtab_exec)(X(solvtab_rdft_neon), p);
|
cannam@127
|
98 #endif
|
cannam@127
|
99 #if HAVE_GENERIC_SIMD128
|
cannam@127
|
100 X(solvtab_exec)(X(solvtab_rdft_generic_simd128), p);
|
cannam@127
|
101 #endif
|
cannam@127
|
102 #if HAVE_GENERIC_SIMD256
|
cannam@127
|
103 X(solvtab_exec)(X(solvtab_rdft_generic_simd256), p);
|
cannam@127
|
104 #endif
|
cannam@127
|
105 }
|