Revision be449fca libavcodec/i386/dsputil_h264_template_ssse3.c

View differences:

libavcodec/i386/dsputil_h264_template_ssse3.c
37 37
    if(y==0 || x==0)
38 38
    {
39 39
        /* 1 dimensional filter only */
40
        asm volatile(
40
        __asm__ volatile(
41 41
            "movd %0, %%xmm7 \n\t"
42 42
            "movq %1, %%xmm6 \n\t"
43 43
            "pshuflw $0, %%xmm7, %%xmm7 \n\t"
......
47 47
        );
48 48

  
49 49
        if(x) {
50
            asm volatile(
50
            __asm__ volatile(
51 51
                "1: \n\t"
52 52
                "movq (%1), %%xmm0 \n\t"
53 53
                "movq 1(%1), %%xmm1 \n\t"
......
75 75
                :"r"((x86_reg)stride)
76 76
            );
77 77
        } else {
78
            asm volatile(
78
            __asm__ volatile(
79 79
                "1: \n\t"
80 80
                "movq (%1), %%xmm0 \n\t"
81 81
                "movq (%1,%3), %%xmm1 \n\t"
......
107 107
    }
108 108

  
109 109
    /* general case, bilinear */
110
    asm volatile(
110
    __asm__ volatile(
111 111
        "movd %0, %%xmm7 \n\t"
112 112
        "movd %1, %%xmm6 \n\t"
113 113
        "movdqa %2, %%xmm5 \n\t"
......
118 118
        :: "r"((x*255+8)*(8-y)), "r"((x*255+8)*y), "m"(*(rnd?&ff_pw_32:&ff_pw_28))
119 119
    );
120 120

  
121
    asm volatile(
121
    __asm__ volatile(
122 122
        "movq (%1), %%xmm0 \n\t"
123 123
        "movq 1(%1), %%xmm1 \n\t"
124 124
        "punpcklbw %%xmm1, %%xmm0 \n\t"
......
160 160

  
161 161
static void H264_CHROMA_MC4_TMPL(uint8_t *dst/*align 4*/, uint8_t *src/*align 1*/, int stride, int h, int x, int y)
162 162
{
163
    asm volatile(
163
    __asm__ volatile(
164 164
        "movd %0, %%mm7 \n\t"
165 165
        "movd %1, %%mm6 \n\t"
166 166
        "movq %2, %%mm5 \n\t"
......
169 169
        :: "r"((x*255+8)*(8-y)), "r"((x*255+8)*y), "m"(ff_pw_32)
170 170
    );
171 171

  
172
    asm volatile(
172
    __asm__ volatile(
173 173
        "movd (%1), %%mm0 \n\t"
174 174
        "punpcklbw 1(%1), %%mm0 \n\t"
175 175
        "add %3, %1 \n\t"

Also available in: Unified diff