Revision e1958604

View differences:

libavcodec/i386/fft_sse.c
19 19
#include "../dsputil.h"
20 20
#include <math.h>
21 21

  
22
#ifdef HAVE_BUILTIN_VECTOR
23

  
22 24
#include <xmmintrin.h>
23 25

  
24 26
static const float p1p1p1m1[4] __attribute__((aligned(16))) = 
25 27
    { 1.0, 1.0, 1.0, -1.0 };
26 28

  
29
static const float p1p1m1p1[4] __attribute__((aligned(16))) = 
30
    { 1.0, 1.0, -1.0, 1.0 };
31

  
27 32
static const float p1p1m1m1[4] __attribute__((aligned(16))) = 
28 33
    { 1.0, 1.0, -1.0, -1.0 };
29 34

  
......
54 59
        r = (__m128 *)&z[0];
55 60
        c1 = *(__m128 *)p1p1m1m1;
56 61
        c2 = *(__m128 *)p1p1p1m1;
62
        if (s->inverse)
63
            c2 = *(__m128 *)p1p1m1p1;
64
        else
65
            c2 = *(__m128 *)p1p1p1m1;
66

  
57 67
        j = (np >> 2);
58 68
        do {
59 69
            a = r[0];
......
126 136
        nloops = nloops << 1;
127 137
    } while (nblocks != 0);
128 138
}
139

  
140
#endif

Also available in: Unified diff