Mercurial > libavcodec.hg
comparison armv4l/dsputil_iwmmxt.c @ 6636:43c97362dfa8 libavcodec
cosmetics: __asm__ __volatile__ --> asm volatile
author | diego |
---|---|
date | Thu, 17 Apr 2008 21:57:52 +0000 |
parents | 3dc36ec2dcad |
children | e6a7be7d85f2 |
comparison
equal
deleted
inserted
replaced
6635:b3d2659c756b | 6636:43c97362dfa8 |
---|---|
20 */ | 20 */ |
21 | 21 |
22 #include "dsputil.h" | 22 #include "dsputil.h" |
23 | 23 |
24 #define DEF(x, y) x ## _no_rnd_ ## y ##_iwmmxt | 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 #define WAVG2B "wavg2b" | 26 #define WAVG2B "wavg2b" |
27 #include "dsputil_iwmmxt_rnd.h" | 27 #include "dsputil_iwmmxt_rnd.h" |
28 #undef DEF | 28 #undef DEF |
29 #undef SET_RND | 29 #undef SET_RND |
30 #undef WAVG2B | 30 #undef WAVG2B |
31 | 31 |
32 #define DEF(x, y) x ## _ ## y ##_iwmmxt | 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 #define WAVG2B "wavg2br" | 34 #define WAVG2B "wavg2br" |
35 #include "dsputil_iwmmxt_rnd.h" | 35 #include "dsputil_iwmmxt_rnd.h" |
36 #undef DEF | 36 #undef DEF |
37 #undef SET_RND | 37 #undef SET_RND |
38 #undef WAVG2BR | 38 #undef WAVG2BR |
87 | 87 |
88 void add_pixels_clamped_iwmmxt(const DCTELEM *block, uint8_t *pixels, int line_size) | 88 void add_pixels_clamped_iwmmxt(const DCTELEM *block, uint8_t *pixels, int line_size) |
89 { | 89 { |
90 uint8_t *pixels2 = pixels + line_size; | 90 uint8_t *pixels2 = pixels + line_size; |
91 | 91 |
92 __asm__ __volatile__ ( | 92 asm volatile ( |
93 "mov r12, #4 \n\t" | 93 "mov r12, #4 \n\t" |
94 "1: \n\t" | 94 "1: \n\t" |
95 "pld [%[pixels], %[line_size2]] \n\t" | 95 "pld [%[pixels], %[line_size2]] \n\t" |
96 "pld [%[pixels2], %[line_size2]] \n\t" | 96 "pld [%[pixels2], %[line_size2]] \n\t" |
97 "wldrd wr4, [%[pixels]] \n\t" | 97 "wldrd wr4, [%[pixels]] \n\t" |