From 412594ed0ac72ea66391eb3fa9dc8e644237ea61 Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Sun, 3 Jul 2011 23:19:46 +0100 Subject: [PATCH] dct-test: remove commented out code Signed-off-by: Mans Rullgard --- libavcodec/dct-test.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/libavcodec/dct-test.c b/libavcodec/dct-test.c index d0fe34e1d7..b40fcc8593 100644 --- a/libavcodec/dct-test.c +++ b/libavcodec/dct-test.c @@ -177,7 +177,6 @@ static void idct_mmx_init(void) /* the mmx/mmxext idct uses a reordered input, so we patch scan tables */ for (i = 0; i < 64; i++) { idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2); -// idct_simple_mmx_perm[i] = simple_block_permute_op(i); } } @@ -235,15 +234,6 @@ static void dct_error(const char *name, int is_idct, break; } -#if 0 // simulate mismatch control -{ int sum=0; - for(i=0;i<64;i++) - sum+=block1[i]; - - if((sum&1)==0) block1[63]^=1; -} -#endif - for(i=0; i<64; i++) block_org[i]= block1[i]; @@ -264,14 +254,6 @@ static void dct_error(const char *name, int is_idct, for(i=0; i<64; i++) block[i]= block1[i]; } -#if 0 // simulate mismatch control for tested IDCT but not the ref -{ int sum=0; - for(i=0;i<64;i++) - sum+=block[i]; - - if((sum&1)==0) block[63]^=1; -} -#endif fdct_func(block); mmx_emms(); @@ -296,19 +278,6 @@ static void dct_error(const char *name, int is_idct, if( abs(block[i])>maxout) maxout=abs(block[i]); } if(blockSumErrMax < blockSumErr) blockSumErrMax= blockSumErr; -#if 0 // print different matrix pairs - if(blockSumErr){ - printf("\n"); - for(i=0; i<64; i++){ - if((i&7)==0) printf("\n"); - printf("%4d ", block_org[i]); - } - for(i=0; i<64; i++){ - if((i&7)==0) printf("\n"); - printf("%4d ", block[i] - block1[i]); - } - } -#endif } for(i=0; i<64; i++) sysErrMax= FFMAX(sysErrMax, FFABS(sysErr[i])); @@ -362,8 +331,6 @@ static void dct_error(const char *name, int is_idct, for(it=0;it