--- trunk/xvidcore/examples/xvid_bench.c 2003/02/24 11:15:33 897 +++ trunk/xvidcore/examples/xvid_bench.c 2003/02/26 19:05:20 898 @@ -24,12 +24,15 @@ * Don't take the checksums and crc too seriouly, they aren't * bullet-proof (should plug some .md5 here)... * - * compiles with something like: - * gcc -o xvid_bench xvid_bench.c -I../src/ -lxvidcore -lm + * compiles best at xvidcore/src-dir with something like + * + * gcc -DARCH_IS_IA32 -DARCH_IS_32BIT -o xvid_bench xvid_bench.c \ + * ../build/generic/libxvidcore.a -lm * * History: * * 06.06.2002 initial coding -Skal- + * 27.02.2003 minor changes (compile, sad16v) * *************************************************************************/ @@ -216,7 +219,7 @@ void test_sad() { const int nb_tests = 2000*speed_ref; - int tst; + int tst,dummy[4]; CPU *cpu; int i; uint8_t Cur[16*16], Ref1[16*16], Ref2[16*16]; @@ -245,7 +248,7 @@ t = gettime_usec(); emms(); - for(tst=0; tstname, t, s ); @@ -253,6 +256,14 @@ t = gettime_usec(); emms(); + for(tst=0; tstname, t, s ); + if (s!=27214) printf( "*** CRC ERROR! ***\n" ); + + t = gettime_usec(); + emms(); for(tst=0; tst