[svn] / trunk / xvidcore / examples / xvid_bench.c Repository:
ViewVC logotype

Diff of /trunk/xvidcore/examples/xvid_bench.c

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

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

Legend:
Removed from v.261  
changed lines
  Added in v.262

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