Skip to content

Commit ffe413c

Browse files
committed
align with clang-format-22
1 parent a537fc8 commit ffe413c

2 files changed

Lines changed: 238 additions & 171 deletions

File tree

mkl_fft/src/mklfft.h

Lines changed: 119 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -27,96 +27,153 @@
2727
#include "mkl.h"
2828
#include "numpy/arrayobject.h"
2929

30-
typedef struct DftiCache {
31-
DFTI_DESCRIPTOR_HANDLE hand;
32-
int initialized;
30+
typedef struct DftiCache
31+
{
32+
DFTI_DESCRIPTOR_HANDLE hand;
33+
int initialized;
3334
} DftiCache;
3435

3536
extern int _free_dfti_cache(DftiCache *);
3637

3738
/* Complex input, in-place */
38-
extern int cdouble_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double,
39-
DftiCache *);
40-
extern int cfloat_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double,
41-
DftiCache *);
42-
extern int cdouble_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double,
43-
DftiCache *);
44-
extern int cfloat_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double,
45-
DftiCache *);
39+
extern int
40+
cdouble_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
41+
extern int
42+
cfloat_mkl_fft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
43+
extern int
44+
cdouble_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
45+
extern int
46+
cfloat_mkl_ifft1d_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
4647

4748
/* Complex input/output, out-of-place */
48-
extern int cfloat_cfloat_mkl_fft1d_out(PyArrayObject *, npy_intp, int,
49-
PyArrayObject *, double, DftiCache *);
50-
extern int cdouble_cdouble_mkl_fft1d_out(PyArrayObject *, npy_intp, int,
51-
PyArrayObject *, double, DftiCache *);
52-
extern int cfloat_cfloat_mkl_ifft1d_out(PyArrayObject *, npy_intp, int,
53-
PyArrayObject *, double, DftiCache *);
54-
extern int cdouble_cdouble_mkl_ifft1d_out(PyArrayObject *, npy_intp, int,
55-
PyArrayObject *, double, DftiCache *);
49+
extern int cfloat_cfloat_mkl_fft1d_out(PyArrayObject *,
50+
npy_intp,
51+
int,
52+
PyArrayObject *,
53+
double,
54+
DftiCache *);
55+
extern int cdouble_cdouble_mkl_fft1d_out(PyArrayObject *,
56+
npy_intp,
57+
int,
58+
PyArrayObject *,
59+
double,
60+
DftiCache *);
61+
extern int cfloat_cfloat_mkl_ifft1d_out(PyArrayObject *,
62+
npy_intp,
63+
int,
64+
PyArrayObject *,
65+
double,
66+
DftiCache *);
67+
extern int cdouble_cdouble_mkl_ifft1d_out(PyArrayObject *,
68+
npy_intp,
69+
int,
70+
PyArrayObject *,
71+
double,
72+
DftiCache *);
5673

5774
/* Real input, complex output, out-of-place */
58-
extern int float_cfloat_mkl_fft1d_out(PyArrayObject *, npy_intp, int,
59-
PyArrayObject *, int, double,
75+
extern int float_cfloat_mkl_fft1d_out(PyArrayObject *,
76+
npy_intp,
77+
int,
78+
PyArrayObject *,
79+
int,
80+
double,
6081
DftiCache *);
61-
extern int double_cdouble_mkl_fft1d_out(PyArrayObject *, npy_intp, int,
62-
PyArrayObject *, int, double,
82+
extern int double_cdouble_mkl_fft1d_out(PyArrayObject *,
83+
npy_intp,
84+
int,
85+
PyArrayObject *,
86+
int,
87+
double,
6388
DftiCache *);
64-
extern int float_cfloat_mkl_ifft1d_out(PyArrayObject *, npy_intp, int,
65-
PyArrayObject *, int, double,
89+
extern int float_cfloat_mkl_ifft1d_out(PyArrayObject *,
90+
npy_intp,
91+
int,
92+
PyArrayObject *,
93+
int,
94+
double,
6695
DftiCache *);
67-
extern int double_cdouble_mkl_ifft1d_out(PyArrayObject *, npy_intp, int,
68-
PyArrayObject *, int, double,
96+
extern int double_cdouble_mkl_ifft1d_out(PyArrayObject *,
97+
npy_intp,
98+
int,
99+
PyArrayObject *,
100+
int,
101+
double,
69102
DftiCache *);
70103

71104
/* Real input, real output, in-place */
72-
extern int float_mkl_rfft_in(PyArrayObject *, npy_intp, int, double,
73-
DftiCache *);
74-
extern int float_mkl_irfft_in(PyArrayObject *, npy_intp, int, double,
75-
DftiCache *);
105+
extern int
106+
float_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
107+
extern int
108+
float_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
76109

77-
extern int double_mkl_rfft_in(PyArrayObject *, npy_intp, int, double,
78-
DftiCache *);
79-
extern int double_mkl_irfft_in(PyArrayObject *, npy_intp, int, double,
80-
DftiCache *);
110+
extern int
111+
double_mkl_rfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
112+
extern int
113+
double_mkl_irfft_in(PyArrayObject *, npy_intp, int, double, DftiCache *);
81114

82115
/* Real input, real output, out-of-place */
83-
extern int float_float_mkl_rfft_out(PyArrayObject *, npy_intp, int,
84-
PyArrayObject *, double, DftiCache *);
85-
extern int float_float_mkl_irfft_out(PyArrayObject *, npy_intp, int,
86-
PyArrayObject *, double, DftiCache *);
87-
88-
extern int double_double_mkl_rfft_out(PyArrayObject *, npy_intp, int,
89-
PyArrayObject *, double, DftiCache *);
90-
extern int double_double_mkl_irfft_out(PyArrayObject *, npy_intp, int,
91-
PyArrayObject *, double, DftiCache *);
116+
extern int float_float_mkl_rfft_out(PyArrayObject *,
117+
npy_intp,
118+
int,
119+
PyArrayObject *,
120+
double,
121+
DftiCache *);
122+
extern int float_float_mkl_irfft_out(PyArrayObject *,
123+
npy_intp,
124+
int,
125+
PyArrayObject *,
126+
double,
127+
DftiCache *);
128+
129+
extern int double_double_mkl_rfft_out(PyArrayObject *,
130+
npy_intp,
131+
int,
132+
PyArrayObject *,
133+
double,
134+
DftiCache *);
135+
extern int double_double_mkl_irfft_out(PyArrayObject *,
136+
npy_intp,
137+
int,
138+
PyArrayObject *,
139+
double,
140+
DftiCache *);
92141

93142
/* Complex input. real output, out-of-place */
94-
extern int cdouble_double_mkl_irfft_out(PyArrayObject *, npy_intp, int,
95-
PyArrayObject *, double, DftiCache *);
96-
extern int cfloat_float_mkl_irfft_out(PyArrayObject *, npy_intp, int,
97-
PyArrayObject *, double, DftiCache *);
143+
extern int cdouble_double_mkl_irfft_out(PyArrayObject *,
144+
npy_intp,
145+
int,
146+
PyArrayObject *,
147+
double,
148+
DftiCache *);
149+
extern int cfloat_float_mkl_irfft_out(PyArrayObject *,
150+
npy_intp,
151+
int,
152+
PyArrayObject *,
153+
double,
154+
DftiCache *);
98155

99156
/* Complex, ND, in-place */
100157
extern int cdouble_cdouble_mkl_fftnd_in(PyArrayObject *, double);
101158
extern int cdouble_cdouble_mkl_ifftnd_in(PyArrayObject *, double);
102159
extern int cfloat_cfloat_mkl_fftnd_in(PyArrayObject *, double);
103160
extern int cfloat_cfloat_mkl_ifftnd_in(PyArrayObject *, double);
104161

105-
extern int cdouble_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *,
106-
double);
107-
extern int cdouble_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *,
108-
double);
109-
extern int cfloat_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *,
110-
double);
111-
extern int cfloat_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *,
112-
double);
162+
extern int
163+
cdouble_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double);
164+
extern int
165+
cdouble_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double);
166+
extern int
167+
cfloat_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double);
168+
extern int
169+
cfloat_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double);
113170

114171
extern int float_cfloat_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double);
115-
extern int float_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *,
116-
double);
117-
extern int double_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *,
118-
double);
119-
extern int double_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *,
120-
double);
172+
extern int
173+
float_cfloat_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double);
174+
extern int
175+
double_cdouble_mkl_fftnd_out(PyArrayObject *, PyArrayObject *, double);
176+
extern int
177+
double_cdouble_mkl_ifftnd_out(PyArrayObject *, PyArrayObject *, double);
121178

122179
extern char *mkl_dfti_error(MKL_LONG);

0 commit comments

Comments
 (0)