Revision be449fca libavcodec/armv4l/dsputil_iwmmxt.c

View differences:

libavcodec/armv4l/dsputil_iwmmxt.c
22 22
#include "libavcodec/dsputil.h"
23 23

  
24 24
#define DEF(x, y) x ## _no_rnd_ ## y ##_iwmmxt
25
#define SET_RND(regd)  asm volatile ("mov r12, #1 \n\t tbcsth " #regd ", r12":::"r12");
25
#define SET_RND(regd)  __asm__ volatile ("mov r12, #1 \n\t tbcsth " #regd ", r12":::"r12");
26 26
#define WAVG2B "wavg2b"
27 27
#include "dsputil_iwmmxt_rnd.h"
28 28
#undef DEF
......
30 30
#undef WAVG2B
31 31

  
32 32
#define DEF(x, y) x ## _ ## y ##_iwmmxt
33
#define SET_RND(regd)  asm volatile ("mov r12, #2 \n\t tbcsth " #regd ", r12":::"r12");
33
#define SET_RND(regd)  __asm__ volatile ("mov r12, #2 \n\t tbcsth " #regd ", r12":::"r12");
34 34
#define WAVG2B "wavg2br"
35 35
#include "dsputil_iwmmxt_rnd.h"
36 36
#undef DEF
......
39 39

  
40 40
// need scheduling
41 41
#define OP(AVG)                                         \
42
    asm volatile (                                      \
42
    __asm__ volatile (                                      \
43 43
        /* alignment */                                 \
44 44
        "and r12, %[pixels], #7 \n\t"                   \
45 45
        "bic %[pixels], %[pixels], #7 \n\t"             \
......
89 89
{
90 90
    uint8_t *pixels2 = pixels + line_size;
91 91

  
92
    asm volatile (
92
    __asm__ volatile (
93 93
        "mov            r12, #4                 \n\t"
94 94
        "1:                                     \n\t"
95 95
        "pld            [%[pixels], %[line_size2]]              \n\t"
......
125 125

  
126 126
static void clear_blocks_iwmmxt(DCTELEM *blocks)
127 127
{
128
    asm volatile(
128
    __asm__ volatile(
129 129
                "wzero wr0                      \n\t"
130 130
                "mov r1, #(128 * 6 / 32)        \n\t"
131 131
                "1:                             \n\t"

Also available in: Unified diff