Revision 00969e1c

View differences:

libavcodec/i386/flacdsp_mmx.c
30 30
    x86_reg j =  n2*sizeof(int32_t);
31 31
    asm volatile(
32 32
        "movsd   %0,     %%xmm7 \n\t"
33
        "movapd  %1,     %%xmm6 \n\t"
34
        "movapd  %2,     %%xmm5 \n\t"
33
        "movapd  "MANGLE(ff_pd_1)",     %%xmm6 \n\t"
34
        "movapd  "MANGLE(ff_pd_2)",     %%xmm5 \n\t"
35 35
        "movlhps %%xmm7, %%xmm7 \n\t"
36 36
        "subpd   %%xmm5, %%xmm7 \n\t"
37 37
        "addsd   %%xmm6, %%xmm7 \n\t"
38
        ::"m"(c), "m"(*ff_pd_1), "m"(*ff_pd_2)
38
        ::"m"(c)
39 39
    );
40 40
#define WELCH(MOVPD, offset)\
41 41
    asm volatile(\
......
85 85
        x86_reg i = -len*sizeof(double);
86 86
        if(j == lag-2) {
87 87
            asm volatile(
88
                "movsd     %6,     %%xmm0 \n\t"
89
                "movsd     %6,     %%xmm1 \n\t"
90
                "movsd     %6,     %%xmm2 \n\t"
88
                "movsd     "MANGLE(ff_pd_1)",     %%xmm0 \n\t"
89
                "movsd     "MANGLE(ff_pd_1)",     %%xmm1 \n\t"
90
                "movsd     "MANGLE(ff_pd_1)",     %%xmm2 \n\t"
91 91
                "1:                       \n\t"
92 92
                "movapd   (%4,%0), %%xmm3 \n\t"
93 93
                "movupd -8(%5,%0), %%xmm4 \n\t"
......
110 110
                "movsd     %%xmm1, %2     \n\t"
111 111
                "movsd     %%xmm2, %3     \n\t"
112 112
                :"+&r"(i), "=m"(autoc[j]), "=m"(autoc[j+1]), "=m"(autoc[j+2])
113
                :"r"(data1+len), "r"(data1+len-j), "m"(*ff_pd_1)
113
                :"r"(data1+len), "r"(data1+len-j)
114 114
            );
115 115
        } else {
116 116
            asm volatile(
117
                "movsd     %5,     %%xmm0 \n\t"
118
                "movsd     %5,     %%xmm1 \n\t"
117
                "movsd     "MANGLE(ff_pd_1)",     %%xmm0 \n\t"
118
                "movsd     "MANGLE(ff_pd_1)",     %%xmm1 \n\t"
119 119
                "1:                       \n\t"
120 120
                "movapd   (%3,%0), %%xmm3 \n\t"
121 121
                "movupd -8(%4,%0), %%xmm4 \n\t"
......
132 132
                "movsd     %%xmm0, %1     \n\t"
133 133
                "movsd     %%xmm1, %2     \n\t"
134 134
                :"+&r"(i), "=m"(autoc[j]), "=m"(autoc[j+1])
135
                :"r"(data1+len), "r"(data1+len-j), "m"(*ff_pd_1)
135
                :"r"(data1+len), "r"(data1+len-j)
136 136
            );
137 137
        }
138 138
    }

Also available in: Unified diff