Revision be449fca libavutil/internal.h

View differences:

libavutil/internal.h
130 130
#    define FASTDIV(a,b) \
131 131
    ({\
132 132
        int ret,dmy;\
133
        asm volatile(\
133
        __asm__ volatile(\
134 134
            "mull %3"\
135 135
            :"=d"(ret),"=a"(dmy)\
136 136
            :"1"(a),"g"(ff_inverse[b])\
......
141 141
static inline av_const int FASTDIV(int a, int b)
142 142
{
143 143
    int r;
144
    asm volatile("cmp   %2, #0        \n\t"
144
    __asm__ volatile("cmp   %2, #0        \n\t"
145 145
                 "smmul %0, %1, %2    \n\t"
146 146
                 "rsblt %0, %0, #0    \n\t"
147 147
                 : "=r"(r) : "r"(a), "r"(ff_inverse[b]));
......
151 151
#    define FASTDIV(a,b) \
152 152
    ({\
153 153
        int ret,dmy;\
154
        asm volatile(\
154
        __asm__ volatile(\
155 155
            "umull %1, %0, %2, %3"\
156 156
            :"=&r"(ret),"=&r"(dmy)\
157 157
            :"r"(a),"r"(ff_inverse[b])\
......
190 190

  
191 191
#if defined(ARCH_X86)
192 192
#define MASK_ABS(mask, level)\
193
            asm volatile(\
193
            __asm__ volatile(\
194 194
                "cltd                   \n\t"\
195 195
                "xorl %1, %0            \n\t"\
196 196
                "subl %1, %0            \n\t"\
......
204 204

  
205 205
#ifdef HAVE_CMOV
206 206
#define COPY3_IF_LT(x,y,a,b,c,d)\
207
asm volatile (\
207
__asm__ volatile (\
208 208
    "cmpl %0, %3        \n\t"\
209 209
    "cmovl %3, %0       \n\t"\
210 210
    "cmovl %4, %1       \n\t"\

Also available in: Unified diff