aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-08-18 10:43:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-08-18 10:43:23 +0000
commitcf5aed5badec6d2083c0c2a8def3fbab7055034f (patch)
tree3ac35d4c8b6cb2f3580739486ac28b59cdfbaaae
parentb4902c11c157a3abdb921ec9b36880c600b55267 (diff)
downloadffmpeg-cf5aed5badec6d2083c0c2a8def3fbab7055034f.tar.gz
simplify
Originally committed as revision 6020 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/i386/fdct_mmx.c30
1 files changed, 9 insertions, 21 deletions
diff --git a/libavcodec/i386/fdct_mmx.c b/libavcodec/i386/fdct_mmx.c
index 78d7d18651..0bfae77215 100644
--- a/libavcodec/i386/fdct_mmx.c
+++ b/libavcodec/i386/fdct_mmx.c
@@ -504,56 +504,44 @@ static always_inline void fdct_row_mmx(const int16_t *in, int16_t *out, const in
void ff_fdct_mmx(int16_t *block)
{
int64_t align_tmp[16] ATTR_ALIGN(8);
- int16_t * const block_tmp= (int16_t*)align_tmp;
- int16_t *block1, *out;
- const int16_t *table;
+ int16_t * block1= (int16_t*)align_tmp;
+ const int16_t *table= tab_frw_01234567;
int i;
- block1 = block_tmp;
fdct_col(block, block1, 0);
fdct_col(block, block1, 4);
- block1 = block_tmp;
- table = tab_frw_01234567;
- out = block;
for(i=8;i>0;i--) {
- fdct_row_mmx(block1, out, table);
+ fdct_row_mmx(block1, block, table);
block1 += 8;
table += 32;
- out += 8;
+ block += 8;
}
}
void ff_fdct_mmx2(int16_t *block)
{
int64_t align_tmp[16] ATTR_ALIGN(8);
- int16_t * const block_tmp= (int16_t*)align_tmp;
- int16_t *block1, *out;
- const int16_t *table;
+ int16_t *block1= (int16_t*)align_tmp;
+ const int16_t *table= tab_frw_01234567;
int i;
- block1 = block_tmp;
fdct_col(block, block1, 0);
fdct_col(block, block1, 4);
- block1 = block_tmp;
- table = tab_frw_01234567;
- out = block;
for(i=8;i>0;i--) {
- fdct_row_mmx2(block1, out, table);
+ fdct_row_mmx2(block1, block, table);
block1 += 8;
table += 32;
- out += 8;
+ block += 8;
}
}
void ff_fdct_sse2(int16_t *block)
{
int64_t align_tmp[16] ATTR_ALIGN(16);
- int16_t * const block_tmp= (int16_t*)align_tmp;
- int16_t *block1;
+ int16_t * const block1= (int16_t*)align_tmp;
- block1 = block_tmp;
fdct_col(block, block1, 0);
fdct_col(block, block1, 4);