Skip to content

Commit c7f96d6

Browse files
committed
Removed spaces around assignment operators in C source
1 parent 9c62010 commit c7f96d6

File tree

4 files changed

+1134
-1134
lines changed

4 files changed

+1134
-1134
lines changed

machdep/neon-single/mkaux_dft_1d.c

+20-20
Original file line numberDiff line numberDiff line change
@@ -23,40 +23,40 @@ minfft_mkaux_dft_1d (int N) {
2323
if (N<=0 || N&(N-1))
2424
// error if N is negative or not a power of two
2525
return NULL;
26-
a = malloc(sizeof(minfft_aux));
26+
a=malloc(sizeof(minfft_aux));
2727
if (a==NULL)
2828
goto err;
29-
a->N = N;
29+
a->N=N;
3030
if (N>=16) {
31-
a->t = malloc(N*sizeof(minfft_cmpl));
31+
a->t=malloc(N*sizeof(minfft_cmpl));
3232
if (a->t==NULL)
3333
goto err;
34-
a->e = malloc(N*sizeof(minfft_cmpl));
34+
a->e=malloc(N*sizeof(minfft_cmpl));
3535
if (a->e==NULL)
3636
goto err;
37-
e = a->e;
37+
e=a->e;
3838
while (N>=16) {
3939
for (n=0; n<N/4; n+=2) {
40-
e1 = exp(-2*pi*I*n/N);
41-
e1n = exp(-2*pi*I*(n+1)/N);
42-
e3 = exp(-2*pi*I*3*n/N);
43-
e3n = exp(-2*pi*I*3*(n+1)/N);
44-
*e++ = creal(e1);
45-
*e++ = creal(e1n);
46-
*e++ = creal(e3);
47-
*e++ = creal(e3n);
48-
*e++ = cimag(e1);
49-
*e++ = cimag(e1n);
50-
*e++ = cimag(e3);
51-
*e++ = cimag(e3n);
40+
e1=exp(-2*pi*I*n/N);
41+
e1n=exp(-2*pi*I*(n+1)/N);
42+
e3=exp(-2*pi*I*3*n/N);
43+
e3n=exp(-2*pi*I*3*(n+1)/N);
44+
*e++=creal(e1);
45+
*e++=creal(e1n);
46+
*e++=creal(e3);
47+
*e++=creal(e3n);
48+
*e++=cimag(e1);
49+
*e++=cimag(e1n);
50+
*e++=cimag(e3);
51+
*e++=cimag(e3n);
5252
}
5353
N /= 2;
5454
}
5555
} else {
56-
a->t = NULL;
57-
a->e = NULL;
56+
a->t=NULL;
57+
a->e=NULL;
5858
}
59-
a->sub1 = a->sub2 = NULL;
59+
a->sub1=a->sub2=NULL;
6060
return a;
6161
err: // memory allocation error
6262
minfft_free_aux(a);

machdep/sse3-single/mkaux_dft_1d.c

+12-12
Original file line numberDiff line numberDiff line change
@@ -22,32 +22,32 @@ minfft_mkaux_dft_1d (int N) {
2222
if (N<=0 || N&(N-1))
2323
// error if N is negative or not a power of two
2424
return NULL;
25-
a = malloc(sizeof(minfft_aux));
25+
a=malloc(sizeof(minfft_aux));
2626
if (a==NULL)
2727
goto err;
28-
a->N = N;
28+
a->N=N;
2929
if (N>=16) {
30-
a->t = malloc(N*sizeof(minfft_cmpl));
30+
a->t=malloc(N*sizeof(minfft_cmpl));
3131
if (a->t==NULL)
3232
goto err;
33-
a->e = malloc(N*sizeof(minfft_cmpl));
33+
a->e=malloc(N*sizeof(minfft_cmpl));
3434
if (a->e==NULL)
3535
goto err;
36-
e = a->e;
36+
e=a->e;
3737
while (N>=16) {
3838
for (n=0; n<N/4; n+=2) {
39-
*e++ = exp(-2*pi*I*n/N);
40-
*e++ = exp(-2*pi*I*(n+1)/N);
41-
*e++ = exp(-2*pi*I*3*n/N);
42-
*e++ = exp(-2*pi*I*3*(n+1)/N);
39+
*e++=exp(-2*pi*I*n/N);
40+
*e++=exp(-2*pi*I*(n+1)/N);
41+
*e++=exp(-2*pi*I*3*n/N);
42+
*e++=exp(-2*pi*I*3*(n+1)/N);
4343
}
4444
N /= 2;
4545
}
4646
} else {
47-
a->t = NULL;
48-
a->e = NULL;
47+
a->t=NULL;
48+
a->e=NULL;
4949
}
50-
a->sub1 = a->sub2 = NULL;
50+
a->sub1=a->sub2=NULL;
5151
return a;
5252
err: // memory allocation error
5353
minfft_free_aux(a);

0 commit comments

Comments
 (0)