Revision be449fca libavcodec/bfin/mathops.h

View differences:

libavcodec/bfin/mathops.h
24 24

  
25 25
#ifdef CONFIG_MPEGAUDIO_HP
26 26
#define MULH(X,Y) ({ int xxo;                           \
27
    asm (                                               \
27
    __asm__ (                                               \
28 28
        "a1 = %2.L * %1.L (FU);\n\t"                    \
29 29
        "a1 = a1 >> 16;\n\t"                            \
30 30
        "a1 += %2.H * %1.L (IS,M);\n\t"                 \
......
34 34
        : "=d" (xxo) : "d" (X), "d" (Y) : "A0","A1"); xxo; })
35 35
#else
36 36
#define MULH(X,Y) ({ int xxo;                           \
37
    asm (                                               \
37
    __asm__ (                                               \
38 38
        "a1 = %2.H * %1.L (IS,M);\n\t"                  \
39 39
        "a0 = %1.H * %2.H, a1+= %1.H * %2.L (IS,M);\n\t"\
40 40
        "a1 = a1 >>> 16;\n\t"                           \
......
44 44

  
45 45
/* signed 16x16 -> 32 multiply */
46 46
#define MUL16(a, b) ({ int xxo;                         \
47
    asm (                                               \
47
    __asm__ (                                               \
48 48
       "%0 = %1.l*%2.l (is);\n\t"                       \
49 49
       : "=W" (xxo) : "d" (a), "d" (b) : "A1");         \
50 50
    xxo; })

Also available in: Unified diff