Revision be449fca libavcodec/i386/mathops.h

View differences:

libavcodec/i386/mathops.h
24 24

  
25 25
#ifdef FRAC_BITS
26 26
#   define MULL(ra, rb) \
27
        ({ int rt, dummy; asm (\
27
        ({ int rt, dummy; __asm__ (\
28 28
            "imull %3               \n\t"\
29 29
            "shrdl %4, %%edx, %%eax \n\t"\
30 30
            : "=a"(rt), "=d"(dummy)\
......
34 34

  
35 35
#define MULH(ra, rb) \
36 36
    ({ int rt, dummy;\
37
     asm ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)ra), "rm" ((int)rb));\
37
     __asm__ ("imull %3\n\t" : "=d"(rt), "=a"(dummy): "a" ((int)ra), "rm" ((int)rb));\
38 38
     rt; })
39 39

  
40 40
#define MUL64(ra, rb) \
41 41
    ({ int64_t rt;\
42
     asm ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\
42
     __asm__ ("imull %2\n\t" : "=A"(rt) : "a" ((int)ra), "g" ((int)rb));\
43 43
     rt; })
44 44

  
45 45
#endif /* AVCODEC_I386_MATHOPS_H */

Also available in: Unified diff