[MN-dev] [mndiff]: r96 - trunk/noe/test.c
michael
subversion at mplayerhq.hu
Tue Oct 21 23:45:33 CEST 2008
Author: michael
Date: Tue Oct 21 23:45:33 2008
New Revision: 96
Log:
Prefer parityCount that is 1 less than the next power of 2,
this is faster.
Modified:
trunk/noe/test.c
Modified: trunk/noe/test.c
==============================================================================
--- trunk/noe/test.c (original)
+++ trunk/noe/test.c Tue Oct 21 23:45:33 2008
@@ -218,7 +218,7 @@ STOP_TIMER}
#endif
#endif
printf("\nTesting error and erasure decoding\n");
- for(i=1; i<(SIZE/2)>>decimate; i+=i){
+ for(i=1; i<(SIZE/2)>>decimate; i+=i+1){
int n= (SIZE - 1)>>decimate;
int k= n - i;
int erased[i];
@@ -291,7 +291,7 @@ STOP_TIMER}
//Encoding is implemented as erasure decoding thus we dont need to
//benchmark them seperately
printf("\nencoding / erasure decoding benchmarking\n"); fflush(stdout);
- for(i=1; i<(SIZE/2)>>decimate; i+=i){
+ for(i=1; i<(SIZE/2)>>decimate; i+=i+1){
int n= (SIZE - 1)>>decimate;
int k= n - i;
GFF4Element code[n];
More information about the Mndiff-dev
mailing list