[xiph-cvs] cvs commit: vorbis/lib res0.c

Monty xiphmont at xiph.org
Tue Aug 7 22:23:33 PDT 2001



xiphmont    01/08/07 22:23:32

  Modified:    lib      Tag: branch_monty_20010708 res0.c
  Log:
  remove diagnostic that used gnuism

Revision  Changes    Path
No                   revision

No                   revision

1.32.2.7  +2 -11     vorbis/lib/res0.c

Index: res0.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis/lib/res0.c,v
retrieving revision 1.32.2.6
retrieving revision 1.32.2.7
diff -u -r1.32.2.6 -r1.32.2.7
--- res0.c	2001/08/08 05:17:17	1.32.2.6
+++ res0.c	2001/08/08 05:23:32	1.32.2.7
@@ -11,7 +11,7 @@
  ********************************************************************
 
  function: residue backend 0, 1 and 2 implementation
- last mod: $Id: res0.c,v 1.32.2.6 2001/08/08 05:17:17 xiphmont Exp $
+ last mod: $Id: res0.c,v 1.32.2.7 2001/08/08 05:23:32 xiphmont Exp $
 
  ********************************************************************/
 
@@ -489,10 +489,6 @@
 
   int partvals=n/samples_per_partition;
 
-  long resbits[possible_partitions];
-  long resvals[possible_partitions];
-
-  
 #ifdef TRAIN_RES
   FILE *of;
   char buffer[80];
@@ -507,9 +503,6 @@
     fclose(of);
   }
 #endif      
-
-  memset(resbits,0,sizeof(resbits));
-  memset(resvals,0,sizeof(resvals));
   
   /* we code the partition words for each channel, then the residual
      words for a partition per channel until we've written all the
@@ -546,14 +539,12 @@
         long offset=i*samples_per_partition+info->begin;
         
         for(j=0;j<ch;j++){
-	  if(s==0)resvals[partword[j][i]]+=samples_per_partition;
           if(info->secondstages[partword[j][i]]&(1<<s)){
             codebook *statebook=look->partbooks[partword[j][i]][s];
             if(statebook){
               int ret=encode(&vb->opb,in[j]+offset,samples_per_partition,
                              statebook,look);
               look->postbits+=ret;
-	      resbits[partword[j][i]]+=ret;
               
             }
           }
@@ -573,7 +564,7 @@
     }
 
     fprintf(stderr,":: %ld:%1.2g\n",total,(double)totalbits/total);
-    }*/
+    }*/ 
   return(0);
 }
 

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list