[svn] / branches / dev-api-4 / xvidcore / examples / xvid_bench.c Repository:
ViewVC logotype

Diff of /branches/dev-api-4/xvidcore/examples/xvid_bench.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 257, Fri Jul 5 14:54:15 2002 UTC revision 851, Sat Feb 15 15:22:19 2003 UTC
# Line 22  Line 22 
22   *   *
23   *  'Reference' output is at the end of file.   *  'Reference' output is at the end of file.
24   *  Don't take the checksums and crc too seriouly, they aren't   *  Don't take the checksums and crc too seriouly, they aren't
25   *  bullet-proof...   *  bullet-proof (should plug some .md5 here)...
26   *   *
27   *   compiles with something like:   *   compiles with something like:
28   *   gcc -o xvid_bench xvid_bench.c  -I../src/ -lxvidcore -lm   *   gcc -o xvid_bench xvid_bench.c  -I../src/ -lxvidcore -lm
# Line 55  Line 55 
55  #include "quant/quant_matrix.c"  #include "quant/quant_matrix.c"
56  #include "bitstream/cbp.h"  #include "bitstream/cbp.h"
57    
58    #include <math.h>
59  const int speed_ref = 100;  // on slow machines, decrease this value  const int speed_ref = 100;  // on slow machines, decrease this value
60    
61  /*********************************************************************  /*********************************************************************
# Line 101  Line 102 
102  , { "SSE2  ", XVID_CPU_SSE2 | XVID_CPU_MMX }  , { "SSE2  ", XVID_CPU_SSE2 | XVID_CPU_MMX }
103  , { "3DNOW ", XVID_CPU_3DNOW }  , { "3DNOW ", XVID_CPU_3DNOW }
104  , { "3DNOWE", XVID_CPU_3DNOWEXT }  , { "3DNOWE", XVID_CPU_3DNOWEXT }
105    , { "IA64  ", XVID_CPU_IA64 }
106  //, { "TSC   ", XVID_CPU_TSC }  //, { "TSC   ", XVID_CPU_TSC }
107  , { 0, 0 } }  , { 0, 0 } }
108    
109  , cpu_short_list[] =  , cpu_short_list[] =
110  { { "PLAINC", 0 }  { { "PLAINC", 0 }
111  , { "MMX   ", XVID_CPU_MMX }  , { "MMX   ", XVID_CPU_MMX }
112  , { "MMXEXT", XVID_CPU_MMXEXT | XVID_CPU_MMX }  //, { "MMXEXT", XVID_CPU_MMXEXT | XVID_CPU_MMX }
113  , { "IA64  ", XVID_CPU_IA64 }  , { "IA64  ", XVID_CPU_IA64 }
114  , { 0, 0 } }  , { 0, 0 } }
115    
# Line 163  Line 164 
164    
165    for(cpu = cpu_list; cpu->name!=0; ++cpu)    for(cpu = cpu_list; cpu->name!=0; ++cpu)
166    {    {
167      double t;      double t, PSNR, MSE;
     int iCrc, fCrc;  
168    
169      if (!init_cpu(cpu))      if (!init_cpu(cpu))
170        continue;        continue;
# Line 180  Line 180 
180      }      }
181      emms();      emms();
182      t = (gettime_usec() - t - overhead) / nb_tests;      t = (gettime_usec() - t - overhead) / nb_tests;
183      iCrc=0; fCrc=0;      MSE = 0.;
184      for(i=0; i<8*8; ++i) {      for(i=0; i<8*8; ++i) {
185        iCrc += ABS(iDst[i] - iDst0[i]);        double delta = 1.0*(iDst[i] - iDst0[i]);
186        fCrc += fDst[i]^i;        MSE += delta*delta;
187      }      }
188      printf( "%s -  %.3f usec       iCrc=%d  fCrc=%d\n",      PSNR = (MSE==0.) ? 1.e6 : -4.3429448*log( MSE/64. );
189        cpu->name, t, iCrc, fCrc );      printf( "%s -  %.3f usec       PSNR=%.3f  MSE=%.3f\n",
190        // the norm tolerates ~1 bit of diff per coeff        cpu->name, t, PSNR, MSE );
191      if (ABS(iCrc)>=64) printf( "*** CRC ERROR! ***\n" );      if (ABS(MSE)>=64) printf( "*** CRC ERROR! ***\n" );
192    }    }
193  }  }
194    
# Line 334  Line 334 
334      printf( "%s -           round1 %.3f usec       iCrc=%d\n", cpu->name, t, iCrc );      printf( "%s -           round1 %.3f usec       iCrc=%d\n", cpu->name, t, iCrc );
335      if (iCrc!=8103) printf( "*** CRC ERROR! ***\n" );      if (iCrc!=8103) printf( "*** CRC ERROR! ***\n" );
336    
337    
338           // this is a new function, as of 06.06.2002
339    #if 0
340        TEST_MB2(interpolate8x8_avrg);
341        printf( "%s - interpolate8x8_c %.3f usec       iCrc=%d\n", cpu->name, t, iCrc );
342        if (iCrc!=8107) printf( "*** CRC ERROR! ***\n" );
343    #endif
344    
345      printf( " --- \n" );      printf( " --- \n" );
346    }    }
347  }  }
# Line 445  Line 453 
453      s = 0; for(i=0; i<8*32; ++i) { s += (Src8[i]-Ref1[i])&i; }      s = 0; for(i=0; i<8*32; ++i) { s += (Src8[i]-Ref1[i])&i; }
454      printf( "crc2=%d\n", s);      printf( "crc2=%d\n", s);
455      if (s!=16256) printf( "*** CRC ERROR! ***\n" );      if (s!=16256) printf( "*** CRC ERROR! ***\n" );
456    #if 1
457      TEST_TRANSFER3(transfer_8to16sub2, Dst16, Src8, Ref1, Ref2);      TEST_TRANSFER3(transfer_8to16sub2, Dst16, Src8, Ref1, Ref2);
458      printf( "%s - 8to16sub2 %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s - 8to16sub2 %.3f usec       crc=%d\n", cpu->name, t, s );
459      if (s!=20384) printf( "*** CRC ERROR! ***\n" );      if (s!=20384) printf( "*** CRC ERROR! ***\n" );
460    //    for(i=0; i<64; ++i) printf( "[%d]", Dst16[i]);
461    //    printf("\n");
462    #endif
463      printf( " --- \n" );      printf( " --- \n" );
464    }    }
465  }  }
# Line 460  Line 470 
470    
471  #define TEST_QUANT(FUNC, DST, SRC)            \  #define TEST_QUANT(FUNC, DST, SRC)            \
472      t = gettime_usec();                       \      t = gettime_usec();                       \
473        for(s=0,qm=1; qm<=255; ++qm) {              \
474          for(i=0; i<8*8; ++i) Quant[i] = qm;       \
475          set_inter_matrix( Quant );                \
476      emms();                                   \      emms();                                   \
477          for(q=1; q<=max_Q; ++q) {                 \
478      for(tst=0; tst<nb_tests; ++tst)           \      for(tst=0; tst<nb_tests; ++tst)           \
       for(s=0, q=1; q<=max_Q; ++q) {          \  
479          (FUNC)((DST), (SRC), q);              \          (FUNC)((DST), (SRC), q);              \
480          for(i=0; i<64; ++i) s+=(DST)[i]^i;    \          for(i=0; i<64; ++i) s+=(DST)[i]^i^qm;   \
481        }                                       \        }                                       \
482      emms();                                   \      emms();                                   \
483      t = (gettime_usec()-t-overhead)/nb_tests;      }                                           \
484        t = (gettime_usec()-t-overhead)/nb_tests/qm;\
485        s = (s&0xffff)^(s>>16)
486    
487  #define TEST_QUANT2(FUNC, DST, SRC, MULT)     \  #define TEST_QUANT2(FUNC, DST, SRC)             \
488      t = gettime_usec();                       \      t = gettime_usec();                       \
489        for(s=0,qm=1; qm<=255; ++qm) {              \
490          for(i=0; i<8*8; ++i) Quant[i] = qm;       \
491          set_intra_matrix( Quant );                \
492      emms();                                   \      emms();                                   \
493          for(q=1; q<=max_Q; ++q) {                 \
494      for(tst=0; tst<nb_tests; ++tst)           \      for(tst=0; tst<nb_tests; ++tst)           \
495        for(s=0, q=1; q<=max_Q; ++q) {          \            (FUNC)((DST), (SRC), q, q);           \
496          (FUNC)((DST), (SRC), q, MULT);        \          for(i=0; i<64; ++i) s+=(DST)[i]^i^qm;   \
         for(i=0; i<64; ++i) s+=(DST)[i]^i;    \  
497        }                                       \        }                                       \
498      emms();                                   \      emms();                                   \
499      t = (gettime_usec()-t-overhead)/nb_tests;      }                                           \
500        t = (gettime_usec()-t-overhead)/nb_tests/qm;\
501        s = (s&0xffff)^(s>>16)
502    
503  void test_quant()  void test_quant()
504  {  {
505    const int nb_tests = 150*speed_ref;    const int nb_tests = 1*speed_ref;
506    const int max_Q = 31;    const int max_Q = 31;
507    int i;    int i, qm;
508    CPU *cpu;    CPU *cpu;
509    int16_t  Src[8*8], Dst[8*8];    int16_t  Src[8*8], Dst[8*8];
510      uint8_t Quant[8*8];
511    
512    printf( "\n =====  test quant =====\n" );    printf( "\n =====  test quant =====\n" );
513    
514        // we deliberately enfringe the norm's specified range [-127,127],
515        // to test the robustness of the iquant module
516    for(i=0; i<64; ++i) {    for(i=0; i<64; ++i) {
517      Src[i] = i-32;      Src[i] = 1 + (i-32) * (i&6);
518      Dst[i] = 0;      Dst[i] = 0;
519    }    }
520    
   
521    for(cpu = cpu_short_list; cpu->name!=0; ++cpu)    for(cpu = cpu_short_list; cpu->name!=0; ++cpu)
522    {    {
523      double t, overhead;      double t, overhead;
524      int tst, s, q;      int tst, q;
525        uint32_t s;
526    
527      if (!init_cpu(cpu))      if (!init_cpu(cpu))
528        continue;        continue;
529    
     set_inter_matrix( get_default_inter_matrix() );  
     set_intra_matrix( get_default_intra_matrix() );  
530      overhead = -gettime_usec();      overhead = -gettime_usec();
531      for(tst=0; tst<nb_tests; ++tst)      for(s=0,qm=1; qm<=255; ++qm) {
532        for(s=0, q=1; q<=max_Q; ++q)        for(i=0; i<8*8; ++i) Quant[i] = qm;
533          for(i=0; i<64; ++i) s+=Dst[i]^i;        set_inter_matrix( Quant );
534          for(q=1; q<=max_Q; ++q)
535            for(i=0; i<64; ++i) s+=Dst[i]^i^qm;
536        }
537      overhead += gettime_usec();      overhead += gettime_usec();
538    
539      TEST_QUANT2(quant4_intra, Dst, Src, 7);  #if 1
540        TEST_QUANT2(quant4_intra, Dst, Src);
541      printf( "%s -   quant4_intra %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -   quant4_intra %.3f usec       crc=%d\n", cpu->name, t, s );
542      if (s!=55827) printf( "*** CRC ERROR! ***\n" );      if (s!=29809) printf( "*** CRC ERROR! ***\n" );
543    
544      TEST_QUANT(quant4_inter, Dst, Src);      TEST_QUANT(quant4_inter, Dst, Src);
545      printf( "%s -   quant4_inter %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -   quant4_inter %.3f usec       crc=%d\n", cpu->name, t, s );
546      if (s!=58201) printf( "*** CRC ERROR! ***\n" );      if (s!=12574) printf( "*** CRC ERROR! ***\n" );
547    #endif
548    #if 1
549      TEST_QUANT2(dequant4_intra, Dst, Src, 7);      TEST_QUANT2(dequant4_intra, Dst, Src);
550      printf( "%s - dequant4_intra %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s - dequant4_intra %.3f usec       crc=%d\n", cpu->name, t, s );
551      if (s!=193340) printf( "*** CRC ERROR! ***\n" );      if (s!=24052) printf( "*** CRC ERROR! ***\n" );
552    
553      TEST_QUANT(dequant4_inter, Dst, Src);      TEST_QUANT(dequant4_inter, Dst, Src);
554      printf( "%s - dequant4_inter %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s - dequant4_inter %.3f usec       crc=%d\n", cpu->name, t, s );
555      if (s!=116483) printf( "*** CRC ERROR! ***\n" );      if (s!=63847) printf( "*** CRC ERROR! ***\n" );
556    #endif
557      TEST_QUANT2(quant_intra, Dst, Src, 7);  #if 1
558        TEST_QUANT2(quant_intra, Dst, Src);
559      printf( "%s -    quant_intra %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -    quant_intra %.3f usec       crc=%d\n", cpu->name, t, s );
560      if (s!=56885) printf( "*** CRC ERROR! ***\n" );      if (s!=25662) printf( "*** CRC ERROR! ***\n" );
561    
562      TEST_QUANT(quant_inter, Dst, Src);      TEST_QUANT(quant_inter, Dst, Src);
563      printf( "%s -    quant_inter %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -    quant_inter %.3f usec       crc=%d\n", cpu->name, t, s );
564      if (s!=58056) printf( "*** CRC ERROR! ***\n" );      if (s!=23972) printf( "*** CRC ERROR! ***\n" );
565    #endif
566      TEST_QUANT2(dequant_intra, Dst, Src, 7);  #if 1
567        TEST_QUANT2(dequant_intra, Dst, Src);
568      printf( "%s -  dequant_intra %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -  dequant_intra %.3f usec       crc=%d\n", cpu->name, t, s );
569      if (s!=-7936) printf( "*** CRC ERROR! ***\n" );      if (s!=49900) printf( "*** CRC ERROR! ***\n" );
570    
571      TEST_QUANT(dequant_inter, Dst, Src);      TEST_QUANT(dequant_inter, Dst, Src);
572      printf( "%s -  dequant_inter %.3f usec       crc=%d\n", cpu->name, t, s );      printf( "%s -  dequant_inter %.3f usec       crc=%d\n", cpu->name, t, s );
573  //    { int k,l; for(k=0; k<8; ++k) { for(l=0; l<8; ++l) printf( "[%.4d]", Dst[k*8+l]); printf("\n"); } }      if (s!=48899) printf( "*** CRC ERROR! ***\n" );
574      if (s!=-33217) printf( "*** CRC ERROR! ***\n" );  #endif
   
575      printf( " --- \n" );      printf( " --- \n" );
576    }    }
577  }  }
# Line 604  Line 630 
630  }  }
631    
632  /*********************************************************************  /*********************************************************************
633     * fdct/idct IEEE1180 compliance
634     *********************************************************************/
635    
636    typedef struct {
637      long Errors[64];
638      long Sqr_Errors[64];
639      long Max_Errors[64];
640      long Nb;
641    } STATS_8x8;
642    
643    void init_stats(STATS_8x8 *S)
644    {
645      int i;
646      for(i=0; i<64; ++i) {
647        S->Errors[i]     = 0;
648        S->Sqr_Errors[i] = 0;
649        S->Max_Errors[i] = 0;
650      }
651      S->Nb = 0;
652    }
653    
654    void store_stats(STATS_8x8 *S, short Blk[64], short Ref[64])
655    {
656      int i;
657      for(i=0; i<64; ++i)
658      {
659        short Err = Blk[i] - Ref[i];
660        S->Errors[i] += Err;
661        S->Sqr_Errors[i] += Err * Err;
662        if (Err<0) Err = -Err;
663        if (S->Max_Errors[i]<Err)
664          S->Max_Errors[i] = Err;
665      }
666      S->Nb++;
667    }
668    
669    void print_stats(STATS_8x8 *S)
670    {
671      int i;
672      double Norm;
673    
674      assert(S->Nb>0);
675      Norm = 1. / (double)S->Nb;
676      printf("\n== Max absolute values of errors ==\n");
677      for(i=0; i<64; i++) {
678        printf("  %4ld", S->Max_Errors[i]);
679        if ((i&7)==7) printf("\n");
680      }
681    
682      printf("\n== Mean square errors ==\n");
683      for(i=0; i<64; i++)
684      {
685        double Err = Norm * (double)S->Sqr_Errors[i];
686        printf(" %.3f", Err);
687        if ((i&7)==7) printf("\n");
688      }
689    
690      printf("\n== Mean errors ==\n");
691      for(i=0; i<64; i++)
692      {
693        double Err = Norm * (double)S->Errors[i];
694        printf(" %.3f", Err);
695        if ((i&7)==7) printf("\n");
696      }
697      printf("\n");
698    }
699    
700    static const char *CHECK(double v, double l) {
701      if (fabs(v)<=l) return "ok";
702      else return "FAIL!";
703    }
704    
705    void report_stats(STATS_8x8 *S, const double *Limits)
706    {
707      int i;
708      double Norm, PE, PMSE, OMSE, PME, OME;
709    
710      assert(S->Nb>0);
711      Norm = 1. / (double)S->Nb;
712      PE = 0.;
713      for(i=0; i<64; i++) {
714        if (PE<S->Max_Errors[i])
715          PE = S->Max_Errors[i];
716      }
717    
718      PMSE = 0.;
719      OMSE = 0.;
720      for(i=0; i<64; i++)
721      {
722        double Err = Norm * (double)S->Sqr_Errors[i];
723        OMSE += Err;
724        if (PMSE < Err) PMSE = Err;
725      }
726      OMSE /= 64.;
727    
728      PME = 0.;
729      OME = 0.;
730      for(i=0; i<64; i++)
731      {
732        double Err = Norm * (double)S->Errors[i];
733        OME += Err;
734        Err = fabs(Err);
735        if (PME < Err) PME = Err;
736      }
737      OME /= 64.;
738    
739      printf( "Peak error:   %4.4f\n", PE );
740      printf( "Peak MSE:     %4.4f\n", PMSE );
741      printf( "Overall MSE:  %4.4f\n", OMSE );
742      printf( "Peak ME:      %4.4f\n", PME );
743      printf( "Overall ME:   %4.4f\n", OME );
744    
745      if (Limits!=0)
746      {
747        printf( "[PE<=%.4f %s]  ", Limits[0], CHECK(PE,   Limits[0]) );
748        printf( "\n" );
749        printf( "[PMSE<=%.4f %s]", Limits[1], CHECK(PMSE, Limits[1]) );
750        printf( "[OMSE<=%.4f %s]", Limits[2], CHECK(OMSE, Limits[2]) );
751        printf( "\n" );
752        printf( "[PME<=%.4f %s] ", Limits[3], CHECK(PME , Limits[3]) );
753        printf( "[OME<=%.4f %s] ", Limits[4], CHECK(OME , Limits[4]) );
754        printf( "\n" );
755      }
756    }
757    
758    //////////////////////////////////////////////////////////
759    /* Pseudo-random generator specified by IEEE 1180 */
760    
761    static long ieee_seed = 1;
762    static void ieee_reseed(long s) {
763      ieee_seed = s;
764    }
765    static long ieee_rand(int Min, int Max)
766    {
767      static double z = (double) 0x7fffffff;
768    
769      long i,j;
770      double x;
771    
772      ieee_seed = (ieee_seed * 1103515245) + 12345;
773      i = ieee_seed & 0x7ffffffe;
774      x = ((double) i) / z;
775      x *= (Max-Min+1);
776      j = (long)x;
777      j = j + Min;
778      assert(j>=Min && j<=Max);
779      return (short)j;
780    }
781    
782    #define CLAMP(x, M)   (x) = ((x)<-(M)) ? (-(M)) : ((x)>=(M) ? ((M)-1) : (x))
783    
784    static double Cos[8][8];
785    static void init_ref_dct()
786    {
787      int i, j;
788      for(i=0; i<8; i++)
789      {
790        double scale = (i == 0) ? sqrt(0.125) : 0.5;
791        for (j=0; j<8; j++)
792          Cos[i][j] = scale*cos( (M_PI/8.0)*i*(j + 0.5) );
793      }
794    }
795    
796    void ref_idct(short *M)
797    {
798      int i, j, k;
799      double Tmp[8][8];
800    
801      for(i=0; i<8; i++) {
802        for(j=0; j<8; j++)
803        {
804          double Sum = 0.0;
805          for (k=0; k<8; k++) Sum += Cos[k][j]*M[8*i+k];
806          Tmp[i][j] = Sum;
807        }
808      }
809      for(i=0; i<8; i++) {
810        for(j=0; j<8; j++) {
811          double Sum = 0.0;
812          for (k=0; k<8; k++) Sum += Cos[k][i]*Tmp[k][j];
813          M[8*i+j] = (short)floor(Sum + .5);
814        }
815      }
816    }
817    
818    void ref_fdct(short *M)
819    {
820      int i, j, k;
821      double Tmp[8][8];
822    
823      for(i=0; i<8; i++) {
824        for(j=0; j<8; j++)
825        {
826          double Sum = 0.0;
827          for (k=0; k<8; k++) Sum += Cos[j][k]*M[8*i+k];
828          Tmp[i][j] = Sum;
829        }
830      }
831      for(i=0; i<8; i++) {
832        for(j=0; j<8; j++) {
833          double Sum = 0.0;
834          for (k=0; k<8; k++) Sum += Cos[i][k]*Tmp[k][j];
835          M[8*i+j] = (short)floor(Sum + 0.5);
836        }
837      }
838    }
839    
840    void test_IEEE1180_compliance(int Min, int Max, int Sign)
841    {
842      static const double ILimits[5] = { 1., 0.06, 0.02, 0.015, 0.0015 };
843      int Loops = 10000;
844      int i, m, n;
845      short Blk0[64];     // reference
846      short Blk[64], iBlk[64];
847      short Ref_FDCT[64];
848      short Ref_IDCT[64];
849    
850      STATS_8x8 FStats; // forward dct stats
851      STATS_8x8 IStats; // inverse dct stats
852    
853      CPU *cpu;
854    
855      init_ref_dct();
856    
857      for(cpu = cpu_list; cpu->name!=0; ++cpu)
858      {
859        if (!init_cpu(cpu))
860          continue;
861    
862        printf( "\n===== IEEE test for %s ==== (Min=%d Max=%d Sign=%d Loops=%d)\n",
863          cpu->name, Min, Max, Sign, Loops);
864    
865        init_stats(&IStats);
866        init_stats(&FStats);
867    
868        ieee_reseed(1);
869        for(n=0; n<Loops; ++n)
870        {
871          for(i=0; i<64; ++i)
872            Blk0[i] = (short)ieee_rand(Min,Max) * Sign;
873    
874            // hmm, I'm not quite sure this is exactly
875            // the tests described in the norm. check...
876    
877          memcpy(Ref_FDCT, Blk0, 64*sizeof(short));
878          ref_fdct(Ref_FDCT);
879          for(i=0; i<64; i++) CLAMP( Ref_FDCT[i], 2048 );
880    
881          memcpy(Blk, Blk0, 64*sizeof(short));
882          emms(); fdct(Blk); emms();
883          for(i=0; i<64; i++) CLAMP( Blk[i], 2048 );
884    
885          store_stats(&FStats, Blk, Ref_FDCT);
886    
887    
888          memcpy(Ref_IDCT, Ref_FDCT, 64*sizeof(short));
889          ref_idct(Ref_IDCT);
890          for (i=0; i<64; i++) CLAMP( Ref_IDCT[i], 256 );
891    
892          memcpy(iBlk, Ref_FDCT, 64*sizeof(short));
893          emms(); idct(iBlk); emms();
894          for(i=0; i<64; i++) CLAMP( iBlk[i], 256 );
895    
896          store_stats(&IStats, iBlk, Ref_IDCT);
897        }
898    
899    
900        printf( "\n  -- FDCT report --\n" );
901    //    print_stats(&FStats);
902        report_stats(&FStats, 0); // so far I know, IEEE1180 says nothing for fdct
903    
904        for(i=0; i<64; i++) Blk[i] = 0;
905        emms(); fdct(Blk); emms();
906        for(m=i=0; i<64; i++) if (Blk[i]!=0) m++;
907        printf( "FDCT(0) == 0 ?  %s\n", (m!=0) ? "NOPE!" : "yup." );
908    
909        printf( "\n  -- IDCT report --\n" );
910    //    print_stats(&IStats);
911        report_stats(&IStats, ILimits);
912    
913    
914        for(i=0; i<64; i++) Blk[i] = 0;
915        emms(); idct(Blk); emms();
916        for(m=i=0; i<64; i++) if (Blk[i]!=0) m++;
917        printf( "IDCT(0) == 0 ?  %s\n", (m!=0) ? "NOPE!" : "yup." );
918      }
919    }
920    
921    
922    void test_dct_saturation(int Min, int Max)
923    {
924        // test behaviour on input range fringe
925    
926      int i, n, p;
927      CPU *cpu;
928    //  const short IDCT_MAX =  2047;  // 12bits input
929    //  const short IDCT_MIN = -2048;
930    //  const short IDCT_OUT =   256;  // 9bits ouput
931      const int Partitions = 4;
932      const int Loops = 10000 / Partitions;
933    
934      init_ref_dct();
935    
936      for(cpu = cpu_list; cpu->name!=0; ++cpu)
937      {
938        short Blk0[64], Blk[64];
939        STATS_8x8 Stats;
940    
941        if (!init_cpu(cpu))
942          continue;
943    
944        printf( "\n===== IEEE test for %s Min=%d Max=%d =====\n",
945          cpu->name, Min, Max );
946    
947                  // FDCT tests //
948    
949        init_stats(&Stats);
950    
951          // test each computation channels separately
952        for(i=0; i<64; i++) Blk[i] = Blk0[i] = ((i/8)==(i%8)) ? Max : 0;
953        ref_fdct(Blk0);
954        emms(); fdct(Blk); emms();
955        store_stats(&Stats, Blk, Blk0);
956    
957        for(i=0; i<64; i++) Blk[i] = Blk0[i] = ((i/8)==(i%8)) ? Min : 0;
958        ref_fdct(Blk0);
959        emms(); fdct(Blk); emms();
960        store_stats(&Stats, Blk, Blk0);
961    
962          // randomly saturated inputs
963        for(p=0; p<Partitions; ++p)
964        {
965          for(n=0; n<Loops; ++n)
966          {
967            for(i=0; i<64; ++i)
968              Blk0[i] = Blk[i] = (ieee_rand(0,Partitions)>=p)? Max : Min;
969            ref_fdct(Blk0);
970            emms(); fdct(Blk); emms();
971            store_stats(&Stats, Blk, Blk0);
972          }
973        }
974        printf( "\n  -- FDCT saturation report --\n" );
975        report_stats(&Stats, 0);
976    
977    
978                  // IDCT tests //
979    #if 0
980          // no finished yet
981    
982        init_stats(&Stats);
983    
984        // test each computation channel separately
985        for(i=0; i<64; i++) Blk[i] = Blk0[i] = ((i/8)==(i%8)) ? IDCT_MAX : 0;
986        ref_idct(Blk0);
987        emms(); idct(Blk); emms();
988        for(i=0; i<64; i++) { CLAMP(Blk0[i], IDCT_OUT); CLAMP(Blk[i], IDCT_OUT); }
989        store_stats(&Stats, Blk, Blk0);
990    
991        for(i=0; i<64; i++) Blk[i] = Blk0[i] = ((i/8)==(i%8)) ? IDCT_MIN : 0;
992        ref_idct(Blk0);
993        emms(); idct(Blk); emms();
994        for(i=0; i<64; i++) { CLAMP(Blk0[i], IDCT_OUT); CLAMP(Blk[i], IDCT_OUT); }
995        store_stats(&Stats, Blk, Blk0);
996    
997          // randomly saturated inputs
998        for(p=0; p<Partitions; ++p)
999        {
1000          for(n=0; n<Loops; ++n)
1001          {
1002            for(i=0; i<64; ++i)
1003              Blk0[i] = Blk[i] = (ieee_rand(0,Partitions)>=p)? IDCT_MAX : IDCT_MIN;
1004            ref_idct(Blk0);
1005            emms(); idct(Blk); emms();
1006            for(i=0; i<64; i++) { CLAMP(Blk0[i],IDCT_OUT); CLAMP(Blk[i],IDCT_OUT); }
1007            store_stats(&Stats, Blk, Blk0);
1008          }
1009        }
1010    
1011        printf( "\n  -- IDCT saturation report --\n" );
1012        print_stats(&Stats);
1013        report_stats(&Stats, 0);
1014    #endif
1015      }
1016    }
1017    
1018    /*********************************************************************
1019   * measure raw decoding speed   * measure raw decoding speed
1020   *********************************************************************/   *********************************************************************/
1021    
# Line 622  Line 1034 
1034    int buf_size, pos;    int buf_size, pos;
1035    uint32_t chksum = 0;    uint32_t chksum = 0;
1036    
1037          xinit.cpu_flags = 0;          xinit.cpu_flags = XVID_CPU_MMX | XVID_CPU_FORCE;
1038          xvid_init(NULL, 0, &xinit, NULL);          xvid_init(NULL, 0, &xinit, NULL);
1039          printf( "API version: %d, core build:%d\n", xinit.api_version, xinit.core_build);          printf( "API version: %d, core build:%d\n", xinit.api_version, xinit.core_build);
1040    
# Line 724  Line 1136 
1136    
1137      for(i=0; i<64; ++i) Src[i] = i-32;      for(i=0; i<64; ++i) Src[i] = i-32;
1138      set_intra_matrix( get_default_intra_matrix() );      set_intra_matrix( get_default_intra_matrix() );
1139      dequant4_intra(Dst, Src, 32, 5);      dequant4_intra(Dst, Src, 31, 5);
1140      printf( "dequant4_intra with CPU=%s:  ", cpu->name);      printf( "dequant4_intra with CPU=%s:  ", cpu->name);
1141      printf( "  Out[]= " );      printf( "  Out[]= " );
1142      for(i=0; i<64; ++i) printf( "[%d]", Dst[i]);      for(i=0; i<64; ++i) printf( "[%d]", Dst[i]);
# Line 743  Line 1155 
1155    
1156      for(i=0; i<64; ++i) Src[i] = i-32;      for(i=0; i<64; ++i) Src[i] = i-32;
1157      set_inter_matrix( get_default_inter_matrix() );      set_inter_matrix( get_default_inter_matrix() );
1158      dequant4_inter(Dst, Src, 32);      dequant4_inter(Dst, Src, 31);
1159      printf( "dequant4_inter with CPU=%s:  ", cpu->name);      printf( "dequant4_inter with CPU=%s:  ", cpu->name);
1160      printf( "  Out[]= " );      printf( "  Out[]= " );
1161      for(i=0; i<64; ++i) printf( "[%d]", Dst[i]);      for(i=0; i<64; ++i) printf( "[%d]", Dst[i]);
# Line 756  Line 1168 
1168    CPU *cpu;    CPU *cpu;
1169    short Blk[8*8], Blk0[8*8];    short Blk[8*8], Blk0[8*8];
1170    
1171    printf( "\n =====  fdct/idct saturation diffs =====\n" );    printf( "\n =====  fdct/idct precision diffs =====\n" );
1172    
1173    for(cpu = cpu_short_list; cpu->name!=0; ++cpu)    for(cpu = cpu_short_list; cpu->name!=0; ++cpu)
1174    {    {
# Line 782  Line 1194 
1194    }    }
1195  }  }
1196    
1197    void test_quant_bug()
1198    {
1199      const int max_Q = 31;
1200      int i, n, qm, q;
1201      CPU *cpu;
1202      int16_t  Src[8*8], Dst[8*8];
1203      uint8_t Quant[8*8];
1204      CPU cpu_bug_list[] = { { "PLAINC", 0 }, { "MMX   ", XVID_CPU_MMX }, {0,0} };
1205      uint16_t Crcs_Inter[2][32];
1206      uint16_t Crcs_Intra[2][32];
1207      printf( "\n =====  test MPEG4-quantize bug =====\n" );
1208    
1209      for(i=0; i<64; ++i) Src[i] = 2048*(i-32)/32;
1210    
1211    #if 1
1212      for(qm=1; qm<=255; ++qm)
1213      {
1214        for(i=0; i<8*8; ++i) Quant[i] = qm;
1215        set_inter_matrix( Quant );
1216    
1217        for(n=0, cpu = cpu_bug_list; cpu->name!=0; ++cpu, ++n)
1218        {
1219          uint16_t s;
1220    
1221          if (!init_cpu(cpu))
1222            continue;
1223    
1224          for(q=1; q<=max_Q; ++q) {
1225            emms();
1226            quant4_inter( Dst, Src, q );
1227            emms();
1228            for(s=0, i=0; i<64; ++i) s+=((uint16_t)Dst[i])^i;
1229            Crcs_Inter[n][q] = s;
1230          }
1231        }
1232    
1233        for(q=1; q<=max_Q; ++q)
1234          for(i=0; i<n-1; ++i)
1235            if (Crcs_Inter[i][q]!=Crcs_Inter[i+1][q])
1236              printf( "Discrepancy Inter: qm=%d, q=%d  -> %d/%d !\n",
1237                qm, q, Crcs_Inter[i][q], Crcs_Inter[i+1][q]);
1238      }
1239    #endif
1240    
1241    #if 1
1242      for(qm=1; qm<=255; ++qm)
1243      {
1244        for(i=0; i<8*8; ++i) Quant[i] = qm;
1245        set_intra_matrix( Quant );
1246    
1247        for(n=0, cpu = cpu_bug_list; cpu->name!=0; ++cpu, ++n)
1248        {
1249          uint16_t s;
1250    
1251          if (!init_cpu(cpu))
1252            continue;
1253    
1254          for(q=1; q<=max_Q; ++q) {
1255            emms();
1256            quant4_intra( Dst, Src, q, q);
1257            emms();
1258            for(s=0, i=0; i<64; ++i) s+=((uint16_t)Dst[i])^i;
1259            Crcs_Intra[n][q] = s;
1260          }
1261        }
1262    
1263        for(q=1; q<=max_Q; ++q)
1264          for(i=0; i<n-1; ++i)
1265            if (Crcs_Intra[i][q]!=Crcs_Intra[i+1][q])
1266              printf( "Discrepancy Intra: qm=%d, q=%d  -> %d/%d!\n",
1267                qm, q, Crcs_Inter[i][q], Crcs_Inter[i+1][q]);
1268      }
1269    #endif
1270    }
1271    
1272  /*********************************************************************  /*********************************************************************
1273   * main   * main
# Line 798  Line 1284 
1284    if (what==0 || what==5) test_quant();    if (what==0 || what==5) test_quant();
1285    if (what==0 || what==6) test_cbp();    if (what==0 || what==6) test_cbp();
1286    
1287    if (what==8) {    if (what==7) {
1288        test_IEEE1180_compliance(-256, 255, 1);
1289    #if 0
1290        test_IEEE1180_compliance(-256, 255,-1);
1291        test_IEEE1180_compliance(  -5,   5, 1);
1292        test_IEEE1180_compliance(  -5,   5,-1);
1293        test_IEEE1180_compliance(-300, 300, 1);
1294        test_IEEE1180_compliance(-300, 300,-1);
1295    #endif
1296      }
1297      if (what==8) test_dct_saturation(-256, 255);
1298    
1299      if (what==9) {
1300      int width, height;      int width, height;
1301      if (argc<5) {      if (argc<5) {
1302        printf("usage: %s %d [bitstream] [width] [height]\n", argv[0], what);        printf("usage: %s %d [bitstream] [width] [height]\n", argv[0], what);
# Line 810  Line 1308 
1308    }    }
1309    
1310    if (what==-1) {    if (what==-1) {
     test_bugs1();  
1311      test_dct_precision_diffs();      test_dct_precision_diffs();
1312        test_bugs1();
1313    }    }
1314      if (what==-2)
1315        test_quant_bug();
1316    
1317    return 0;    return 0;
1318  }  }
1319    
1320  /*********************************************************************  /*********************************************************************
1321   * 'Reference' output (except for timing) on a PIII 1.13Ghz/linux   * 'Reference' output (except for timing) on a PIII 1.13Ghz/linux
1322   *********************************************************************/   *********************************************************************/
1323    
1324        /* as of 07/01/2002, there's a problem with mpeg4-quantization */
1325  /*  /*
1326    
1327   ===== test fdct/idct =====   ===== test fdct/idct =====
1328  PLAINC -  2.631 usec       iCrc=3  fCrc=-85  PLAINC -  3.312 usec       PSNR=13.291  MSE=3.000
1329  MMX    -  0.596 usec       iCrc=3  fCrc=-67  MMX    -  0.591 usec       PSNR=13.291  MSE=3.000
1330  MMXEXT -  0.608 usec       iCrc=3  fCrc=-67  MMXEXT -  0.577 usec       PSNR=13.291  MSE=3.000
1331  SSE2   -  0.605 usec       iCrc=3  fCrc=-67  SSE2   -  0.588 usec       PSNR=13.291  MSE=3.000
1332  3DNOW  - skipped...  3DNOW  - skipped...
1333  3DNOWE - skipped...  3DNOWE - skipped...
1334    
1335   ===  test block motion ===   ===  test block motion ===
1336  PLAINC - interp- h-round0 1.031 usec       iCrc=8107  PLAINC - interp- h-round0 0.911 usec       iCrc=8107
1337  PLAINC -           round1 1.022 usec       iCrc=8100  PLAINC -           round1 0.863 usec       iCrc=8100
1338  PLAINC - interp- v-round0 1.002 usec       iCrc=8108  PLAINC - interp- v-round0 0.860 usec       iCrc=8108
1339  PLAINC -           round1 1.011 usec       iCrc=8105  PLAINC -           round1 0.857 usec       iCrc=8105
1340  PLAINC - interp-hv-round0 1.623 usec       iCrc=8112  PLAINC - interp-hv-round0 2.103 usec       iCrc=8112
1341  PLAINC -           round1 1.621 usec       iCrc=8103  PLAINC -           round1 2.050 usec       iCrc=8103
 PLAINC - interpolate8x8_c 0.229 usec       iCrc=8107  
1342   ---   ---
1343  MMX    - interp- h-round0 0.105 usec       iCrc=8107  MMX    - interp- h-round0 0.105 usec       iCrc=8107
1344  MMX    -           round1 0.105 usec       iCrc=8100  MMX    -           round1 0.106 usec       iCrc=8100
1345  MMX    - interp- v-round0 0.106 usec       iCrc=8108  MMX    - interp- v-round0 0.106 usec       iCrc=8108
1346  MMX    -           round1 0.107 usec       iCrc=8105  MMX    -           round1 0.106 usec       iCrc=8105
1347  MMX    - interp-hv-round0 0.145 usec       iCrc=8112  MMX    - interp-hv-round0 0.145 usec       iCrc=8112
1348  MMX    -           round1 0.145 usec       iCrc=8103  MMX    -           round1 0.145 usec       iCrc=8103
 MMX    - interpolate8x8_c 0.229 usec       iCrc=8107  
1349   ---   ---
1350  MMXEXT - interp- h-round0 0.027 usec       iCrc=8107  MMXEXT - interp- h-round0 0.028 usec       iCrc=8107
1351  MMXEXT -           round1 0.041 usec       iCrc=8100  MMXEXT -           round1 0.041 usec       iCrc=8100
1352  MMXEXT - interp- v-round0 0.027 usec       iCrc=8108  MMXEXT - interp- v-round0 0.027 usec       iCrc=8108
1353  MMXEXT -           round1 0.040 usec       iCrc=8105  MMXEXT -           round1 0.041 usec       iCrc=8105
1354  MMXEXT - interp-hv-round0 0.070 usec       iCrc=8112  MMXEXT - interp-hv-round0 0.066 usec       iCrc=8112
1355  MMXEXT -           round1 0.066 usec       iCrc=8103  MMXEXT -           round1 0.065 usec       iCrc=8103
 MMXEXT - interpolate8x8_c 0.027 usec       iCrc=8107  
1356   ---   ---
1357  SSE2   - interp- h-round0 0.106 usec       iCrc=8107  SSE2   - interp- h-round0 0.109 usec       iCrc=8107
1358  SSE2   -           round1 0.105 usec       iCrc=8100  SSE2   -           round1 0.105 usec       iCrc=8100
1359  SSE2   - interp- v-round0 0.106 usec       iCrc=8108  SSE2   - interp- v-round0 0.106 usec       iCrc=8108
1360  SSE2   -           round1 0.106 usec       iCrc=8105  SSE2   -           round1 0.109 usec       iCrc=8105
1361  SSE2   - interp-hv-round0 0.145 usec       iCrc=8112  SSE2   - interp-hv-round0 0.145 usec       iCrc=8112
1362  SSE2   -           round1 0.145 usec       iCrc=8103  SSE2   -           round1 0.145 usec       iCrc=8103
 SSE2   - interpolate8x8_c 0.237 usec       iCrc=8107  
1363   ---   ---
1364  3DNOW  - skipped...  3DNOW  - skipped...
1365  3DNOWE - skipped...  3DNOWE - skipped...
1366    
1367   ======  test SAD ======   ======  test SAD ======
1368  PLAINC - sad8    0.296 usec       sad=3776  PLAINC - sad8    0.251 usec       sad=3776
1369  PLAINC - sad16   1.599 usec       sad=27214  PLAINC - sad16   1.601 usec       sad=27214
1370  PLAINC - sad16bi 2.350 usec       sad=26274  PLAINC - sad16bi 2.371 usec       sad=26274
1371  PLAINC - dev16   1.610 usec       sad=3344  PLAINC - dev16   1.564 usec       sad=3344
1372   ---   ---
1373  MMX    - sad8    0.057 usec       sad=3776  MMX    - sad8    0.057 usec       sad=3776
1374  MMX    - sad16   0.178 usec       sad=27214  MMX    - sad16   0.182 usec       sad=27214
1375  MMX    - sad16bi 2.381 usec       sad=26274  MMX    - sad16bi 2.462 usec       sad=26274
1376  MMX    - dev16   0.312 usec       sad=3344  MMX    - dev16   0.311 usec       sad=3344
1377   ---   ---
1378  MMXEXT - sad8    0.036 usec       sad=3776  MMXEXT - sad8    0.036 usec       sad=3776
1379  MMXEXT - sad16   0.106 usec       sad=27214  MMXEXT - sad16   0.109 usec       sad=27214
1380  MMXEXT - sad16bi 0.182 usec       sad=26274  MMXEXT - sad16bi 0.143 usec       sad=26274
1381  MMXEXT - dev16   0.193 usec       sad=3344  MMXEXT - dev16   0.192 usec       sad=3344
1382   ---   ---
1383  SSE2   - sad8    0.057 usec       sad=3776  SSE2   - sad8    0.057 usec       sad=3776
1384  SSE2   - sad16   0.178 usec       sad=27214  SSE2   - sad16   0.179 usec       sad=27214
1385  SSE2   - sad16bi 2.427 usec       sad=26274  SSE2   - sad16bi 2.456 usec       sad=26274
1386  SSE2   - dev16   0.313 usec       sad=3344  SSE2   - dev16   0.321 usec       sad=3344
1387   ---   ---
1388  3DNOW  - skipped...  3DNOW  - skipped...
1389  3DNOWE - skipped...  3DNOWE - skipped...
1390    
1391   ===  test transfer ===   ===  test transfer ===
1392  PLAINC - 8to16     0.124 usec       crc=28288  PLAINC - 8to16     0.151 usec       crc=28288
1393  PLAINC - 16to8     0.753 usec       crc=28288  PLAINC - 16to8     1.113 usec       crc=28288
1394  PLAINC - 8to8      0.041 usec       crc=20352  PLAINC - 8to8      0.043 usec       crc=20352
1395  PLAINC - 16to8add  0.916 usec       crc=25536  PLAINC - 16to8add  1.069 usec       crc=25536
1396  PLAINC - 8to16sub  0.812 usec       crc1=28064 crc2=16256  PLAINC - 8to16sub  0.631 usec       crc1=28064 crc2=16256
1397  PLAINC - 8to16sub2 0.954 usec       crc=20384  PLAINC - 8to16sub2 0.597 usec       crc=20384
1398   ---   ---
1399  MMX    - 8to16     0.037 usec       crc=28288  MMX    - 8to16     0.032 usec       crc=28288
1400  MMX    - 16to8     0.016 usec       crc=28288  MMX    - 16to8     0.024 usec       crc=28288
1401  MMX    - 8to8      0.018 usec       crc=20352  MMX    - 8to8      0.020 usec       crc=20352
1402  MMX    - 16to8add  0.044 usec       crc=25536  MMX    - 16to8add  0.043 usec       crc=25536
1403  MMX    - 8to16sub  0.065 usec       crc1=28064 crc2=16256  MMX    - 8to16sub  0.066 usec       crc1=28064 crc2=16256
1404  MMX    - 8to16sub2 0.110 usec       crc=20384  MMX    - 8to16sub2 0.111 usec       crc=20384
  ---  
 MMXEXT - 8to16     0.032 usec       crc=28288  
 MMXEXT - 16to8     0.023 usec       crc=28288  
 MMXEXT - 8to8      0.018 usec       crc=20352  
 MMXEXT - 16to8add  0.041 usec       crc=25536  
 MMXEXT - 8to16sub  0.065 usec       crc1=28064 crc2=16256  
 MMXEXT - 8to16sub2 0.069 usec       crc=20384  
1405   ---   ---
1406    
1407   =====  test quant =====   =====  test quant =====
1408  PLAINC -   quant4_intra 78.889 usec       crc=55827  PLAINC -   quant4_intra 74.248 usec       crc=29809
1409  PLAINC -   quant4_inter 71.957 usec       crc=58201  PLAINC -   quant4_inter 70.850 usec       crc=12574
1410  PLAINC - dequant4_intra 34.968 usec       crc=193340  PLAINC - dequant4_intra 40.628 usec       crc=24052
1411  PLAINC - dequant4_inter 40.792 usec       crc=116483  PLAINC - dequant4_inter 45.691 usec       crc=63847
1412  PLAINC -    quant_intra 30.845 usec       crc=56885  PLAINC -    quant_intra 43.357 usec       crc=25662
1413  PLAINC -    quant_inter 34.842 usec       crc=58056  PLAINC -    quant_inter 33.410 usec       crc=23972
1414  PLAINC -  dequant_intra 33.211 usec       crc=-7936  PLAINC -  dequant_intra 36.384 usec       crc=49900
1415  PLAINC -  dequant_inter 45.486 usec       crc=-33217  PLAINC -  dequant_inter 48.930 usec       crc=48899
1416   ---   ---
1417  MMX    -   quant4_intra 9.030 usec       crc=55827  MMX    -   quant4_intra 7.445 usec       crc=3459
1418  MMX    -   quant4_inter 8.234 usec       crc=58201  *** CRC ERROR! ***
1419  MMX    - dequant4_intra 18.330 usec       crc=193340  MMX    -   quant4_inter 5.384 usec       crc=51072
1420  MMX    - dequant4_inter 19.181 usec       crc=116483  *** CRC ERROR! ***
1421  MMX    -    quant_intra 7.124 usec       crc=56885  MMX    - dequant4_intra 5.515 usec       crc=24052
1422  MMX    -    quant_inter 6.861 usec       crc=58056  MMX    - dequant4_inter 7.745 usec       crc=63847
1423  MMX    -  dequant_intra 9.048 usec       crc=-7936  MMX    -    quant_intra 4.661 usec       crc=25662
1424  MMX    -  dequant_inter 8.203 usec       crc=-33217  MMX    -    quant_inter 4.406 usec       crc=23972
1425   ---  MMX    -  dequant_intra 4.928 usec       crc=49900
1426  MMXEXT -   quant4_intra 9.045 usec       crc=55827  MMX    -  dequant_inter 4.532 usec       crc=48899
 MMXEXT -   quant4_inter 8.232 usec       crc=58201  
 MMXEXT - dequant4_intra 18.250 usec       crc=193340  
 MMXEXT - dequant4_inter 19.256 usec       crc=116483  
 MMXEXT -    quant_intra 7.121 usec       crc=56885  
 MMXEXT -    quant_inter 6.855 usec       crc=58056  
 MMXEXT -  dequant_intra 9.034 usec       crc=-7936  
 MMXEXT -  dequant_inter 8.202 usec       crc=-33217  
1427   ---   ---
1428    
1429   =====  test cbp =====   =====  test cbp =====
1430  PLAINC -   calc_cbp#1 0.545 usec       cbp=0x15  PLAINC -   calc_cbp#1 0.371 usec       cbp=0x15
1431  PLAINC -   calc_cbp#2 0.540 usec       cbp=0x38  PLAINC -   calc_cbp#2 0.432 usec       cbp=0x38
1432  PLAINC -   calc_cbp#3 0.477 usec       cbp=0xf  PLAINC -   calc_cbp#3 0.339 usec       cbp=0xf
1433  PLAINC -   calc_cbp#4 0.739 usec       cbp=0x5  PLAINC -   calc_cbp#4 0.506 usec       cbp=0x5
1434   ---   ---
1435  MMX    -   calc_cbp#1 0.136 usec       cbp=0x15  MMX    -   calc_cbp#1 0.136 usec       cbp=0x15
1436  MMX    -   calc_cbp#2 0.131 usec       cbp=0x38  MMX    -   calc_cbp#2 0.134 usec       cbp=0x38
1437  MMX    -   calc_cbp#3 0.132 usec       cbp=0xf  MMX    -   calc_cbp#3 0.138 usec       cbp=0xf
1438  MMX    -   calc_cbp#4 0.135 usec       cbp=0x5  MMX    -   calc_cbp#4 0.135 usec       cbp=0x5
1439   ---   ---
1440  SSE2   -   calc_cbp#1 0.135 usec       cbp=0x15  SSE2   -   calc_cbp#1 0.136 usec       cbp=0x15
1441  SSE2   -   calc_cbp#2 0.131 usec       cbp=0x38  SSE2   -   calc_cbp#2 0.133 usec       cbp=0x38
1442  SSE2   -   calc_cbp#3 0.134 usec       cbp=0xf  SSE2   -   calc_cbp#3 0.133 usec       cbp=0xf
1443  SSE2   -   calc_cbp#4 0.136 usec       cbp=0x5  SSE2   -   calc_cbp#4 0.141 usec       cbp=0x5
1444   ---   ---
1445    
1446  */  */

Legend:
Removed from v.257  
changed lines
  Added in v.851

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4