Revision 57dbd12b libavcodec/x86/mpegaudiodec_mmx.c

View differences:

libavcodec/x86/mpegaudiodec_mmx.c
51 51

  
52 52

  
53 53
#define MULT(a, b)                                 \
54
    "movaps " #a "(%0,%5), %%xmm1           \n\t"  \
55
    "movaps " #a "(%2,%5), %%xmm2           \n\t"  \
54
    "movaps " #a "(%1,%0), %%xmm1           \n\t"  \
55
    "movaps " #a "(%3,%0), %%xmm2           \n\t"  \
56 56
    "mulps         %%xmm2, %%xmm1           \n\t"  \
57 57
    "subps         %%xmm1, %%xmm0           \n\t"  \
58
    "mulps  " #b "(%1,%5), %%xmm2           \n\t"  \
58
    "mulps  " #b "(%2,%0), %%xmm2           \n\t"  \
59 59
    "subps         %%xmm2, %%xmm4           \n\t"  \
60 60

  
61 61
    __asm__ volatile(
......
72 72
            MULT(1536, 384)
73 73
            MULT(1792, 448)
74 74

  
75
            "movaps      %%xmm0, (%3,%5)          \n\t"
76
            "movaps      %%xmm4, (%4,%5)          \n\t"
77
            "addl           $16,  %5              \n\t"
75
            "movaps      %%xmm0, (%4,%0)          \n\t"
76
            "movaps      %%xmm4, (%5,%0)          \n\t"
77
            "addl           $16,  %0              \n\t"
78 78
            "jl              1b                   \n\t"
79
            :"+&r"(win1a), "+&r"(win2a), "+&r"(bufa), "+&r"(sum1a), "+&r"(sum2a), "+&r"(count)
79
            :"+&r"(count)
80
            :"r"(win1a), "r"(win2a), "r"(bufa), "r"(sum1a), "r"(sum2a)
80 81
            );
81 82

  
82 83
#undef MULT

Also available in: Unified diff