comparison armv4l/dsputil_iwmmxt.c @ 8073:915bc657348f libavcodec

Rename template included sources from .h to _template.c. There are multiple source files that are #include'd rather than compiled, as they are used as template for generation of similar code, like asm-optimised code. Some of these files are right now named with a .h extension, although they are not header in any reasonable sense. Rename them so that instead of being named with .h extension they are named with _template.c as final part.
author flameeyes
date Mon, 27 Oct 2008 14:35:58 +0000
parents eebc7209c47f
children 0d108ec85620
comparison
equal deleted inserted replaced
8072:4b32e8762864 8073:915bc657348f
22 #include "libavcodec/dsputil.h" 22 #include "libavcodec/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_template.c"
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_template.c"
36 #undef DEF 36 #undef DEF
37 #undef SET_RND 37 #undef SET_RND
38 #undef WAVG2BR 38 #undef WAVG2BR
39 39
40 // need scheduling 40 // need scheduling