Revision e3905ce0 libavcodec/ppc/fft_altivec.c

View differences:

libavcodec/ppc/fft_altivec.c
33 33
/* butter fly op */
34 34
#define BF(pre, pim, qre, qim, pre1, pim1, qre1, qim1) \
35 35
{\
36
  FFTSample ax, ay, bx, by;\
37
  bx=pre1;\
38
  by=pim1;\
39
  ax=qre1;\
40
  ay=qim1;\
41
  pre = (bx + ax);\
42
  pim = (by + ay);\
43
  qre = (bx - ax);\
44
  qim = (by - ay);\
36
    FFTSample ax, ay, bx, by;\
37
    bx=pre1;\
38
    by=pim1;\
39
    ax=qre1;\
40
    ay=qim1;\
41
    pre = (bx + ax);\
42
    pim = (by + ay);\
43
    qre = (bx - ax);\
44
    qim = (by - ay);\
45 45
}
46 46
#define MUL16(a,b) ((a) * (b))
47 47
#define CMUL(pre, pim, are, aim, bre, bim) \
48 48
{\
49
   pre = (MUL16(are, bre) - MUL16(aim, bim));\
50
   pim = (MUL16(are, bim) + MUL16(bre, aim));\
49
    pre = (MUL16(are, bre) - MUL16(aim, bim));\
50
    pim = (MUL16(are, bim) + MUL16(bre, aim));\
51 51
}
52 52

  
53 53

  
......
85 85

  
86 86
        c1 = vcii(p,p,n,n);
87 87

  
88
        if (s->inverse)
89
            {
90
                c2 = vcii(p,p,n,p);
91
            }
92
        else
93
            {
94
                c2 = vcii(p,p,p,n);
95
            }
88
        if (s->inverse) {
89
            c2 = vcii(p,p,n,p);
90
        } else {
91
            c2 = vcii(p,p,p,n);
92
        }
96 93

  
97 94
        j = (np >> 2);
98 95
        do {

Also available in: Unified diff