summaryrefslogtreecommitdiff
path: root/plugins/supereq/nsfft-1.00/dft/DFTUndiff.h
blob: d26b0d9bacab8ac68fe46071e00031614dc85587 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
#ifndef __DFTIMPL_H__
#define __DFTIMPL_H__

#include "SIMDBaseUndiff.h"

#define MAGIC_DFT 0x18839f6d82bb02b6ULL

typedef struct {
  uint64_t magic;

  SIMDBase_VECT *s;
  uint32_t offset1, offset2;
  uint32_t butlen, log2butlen;
  uint32_t stride;

  SIMDBase_REAL **ptTable;
  uint32_t length, log2len;

  int32_t radix2thres, flagTrans, useCobra;

  int32_t cobraQ;
  SIMDBase_VECT *cobraT;
  int32_t *cobraR;

  SIMDBase_REAL **rtTable;

  uint64_t flags;
  int32_t mode;
} DFTUndiff;

#if defined(ENABLE_PUREC_FLOAT) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_purec_float
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_purec_float
#define DFTUndiff_EXECUTE execute_purec_float
#define DFTUndiff_MAKEPLAN makePlan_purec_float
#define DFTUndiff_MAKEPLANSUB makePlanSub_purec_float
#define DFTUndiff_DESTROYPLAN destroyPlan_purec_float

#elif defined(ENABLE_PUREC_DOUBLE) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_purec_double
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_purec_double
#define DFTUndiff_EXECUTE execute_purec_double
#define DFTUndiff_MAKEPLAN makePlan_purec_double
#define DFTUndiff_MAKEPLANSUB makePlanSub_purec_double
#define DFTUndiff_DESTROYPLAN destroyPlan_purec_double

#elif defined(ENABLE_PUREC_LONGDOUBLE) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_purec_longdouble
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_purec_longdouble
#define DFTUndiff_EXECUTE execute_purec_longdouble
#define DFTUndiff_MAKEPLAN makePlan_purec_longdouble
#define DFTUndiff_MAKEPLANSUB makePlanSub_purec_longdouble
#define DFTUndiff_DESTROYPLAN destroyPlan_purec_longdouble

#elif defined(ENABLE_SSE_FLOAT) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_sse_float
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_sse_float
#define DFTUndiff_EXECUTE execute_sse_float
#define DFTUndiff_MAKEPLAN makePlan_sse_float
#define DFTUndiff_MAKEPLANSUB makePlanSub_sse_float
#define DFTUndiff_DESTROYPLAN destroyPlan_sse_float

#elif defined(ENABLE_SSE2_DOUBLE) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_sse2_double
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_sse2_double
#define DFTUndiff_EXECUTE execute_sse2_double
#define DFTUndiff_MAKEPLAN makePlan_sse2_double
#define DFTUndiff_MAKEPLANSUB makePlanSub_sse2_double
#define DFTUndiff_DESTROYPLAN destroyPlan_sse2_double

#elif defined(ENABLE_NEON_FLOAT) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_neon_float
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_neon_float
#define DFTUndiff_EXECUTE execute_neon_float
#define DFTUndiff_MAKEPLAN makePlan_neon_float
#define DFTUndiff_MAKEPLANSUB makePlanSub_neon_float
#define DFTUndiff_DESTROYPLAN destroyPlan_neon_float

#elif defined(ENABLE_AVX_FLOAT) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_avx_float
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_avx_float
#define DFTUndiff_EXECUTE execute_avx_float
#define DFTUndiff_MAKEPLAN makePlan_avx_float
#define DFTUndiff_MAKEPLANSUB makePlanSub_avx_float
#define DFTUndiff_DESTROYPLAN destroyPlan_avx_float

#elif defined(ENABLE_AVX_DOUBLE) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_avx_double
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_avx_double
#define DFTUndiff_EXECUTE execute_avx_double
#define DFTUndiff_MAKEPLAN makePlan_avx_double
#define DFTUndiff_MAKEPLANSUB makePlanSub_avx_double
#define DFTUndiff_DESTROYPLAN destroyPlan_avx_double

#elif defined(ENABLE_ALTIVEC_FLOAT) ////////////////////////////////////////////

#define DFTUndiff_GETMODEPARAMINT getModeParamInt_altivec_float
#define DFTUndiff_GETMODEPARAMSTRING getModeParamString_altivec_float
#define DFTUndiff_EXECUTE execute_altivec_float
#define DFTUndiff_MAKEPLAN makePlan_altivec_float
#define DFTUndiff_MAKEPLANSUB makePlanSub_altivec_float
#define DFTUndiff_DESTROYPLAN destroyPlan_altivec_float

#endif ////////////////////////////////////////////////////////////////////

#endif