Mercurial > libavcodec.hg
comparison i386/dsputilenc_mmx.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 |
---|---|
1302 "psraw $1, "#y " \n\t" | 1302 "psraw $1, "#y " \n\t" |
1303 #define DEF(x) x ## _mmx | 1303 #define DEF(x) x ## _mmx |
1304 #define SET_RND MOVQ_WONE | 1304 #define SET_RND MOVQ_WONE |
1305 #define SCALE_OFFSET 1 | 1305 #define SCALE_OFFSET 1 |
1306 | 1306 |
1307 #include "dsputil_mmx_qns.h" | 1307 #include "dsputil_mmx_qns_template.c" |
1308 | 1308 |
1309 #undef DEF | 1309 #undef DEF |
1310 #undef SET_RND | 1310 #undef SET_RND |
1311 #undef SCALE_OFFSET | 1311 #undef SCALE_OFFSET |
1312 #undef PMULHRW | 1312 #undef PMULHRW |
1316 #define SCALE_OFFSET 0 | 1316 #define SCALE_OFFSET 0 |
1317 #define PMULHRW(x, y, s, o)\ | 1317 #define PMULHRW(x, y, s, o)\ |
1318 "pmulhrw " #s ", "#x " \n\t"\ | 1318 "pmulhrw " #s ", "#x " \n\t"\ |
1319 "pmulhrw " #s ", "#y " \n\t" | 1319 "pmulhrw " #s ", "#y " \n\t" |
1320 | 1320 |
1321 #include "dsputil_mmx_qns.h" | 1321 #include "dsputil_mmx_qns_template.c" |
1322 | 1322 |
1323 #undef DEF | 1323 #undef DEF |
1324 #undef SET_RND | 1324 #undef SET_RND |
1325 #undef SCALE_OFFSET | 1325 #undef SCALE_OFFSET |
1326 #undef PMULHRW | 1326 #undef PMULHRW |
1335 "paddd "#t", "#a" \n\t" /* faster than phaddd on core2 */ | 1335 "paddd "#t", "#a" \n\t" /* faster than phaddd on core2 */ |
1336 #define PMULHRW(x, y, s, o)\ | 1336 #define PMULHRW(x, y, s, o)\ |
1337 "pmulhrsw " #s ", "#x " \n\t"\ | 1337 "pmulhrsw " #s ", "#x " \n\t"\ |
1338 "pmulhrsw " #s ", "#y " \n\t" | 1338 "pmulhrsw " #s ", "#y " \n\t" |
1339 | 1339 |
1340 #include "dsputil_mmx_qns.h" | 1340 #include "dsputil_mmx_qns_template.c" |
1341 | 1341 |
1342 #undef DEF | 1342 #undef DEF |
1343 #undef SET_RND | 1343 #undef SET_RND |
1344 #undef SCALE_OFFSET | 1344 #undef SCALE_OFFSET |
1345 #undef PMULHRW | 1345 #undef PMULHRW |