[xiph-commits] r9613 - trunk/theora/lib

giles at svn.xiph.org giles at svn.xiph.org
Sun Jul 24 01:41:46 PDT 2005


Author: giles
Date: 2005-07-24 01:41:45 -0700 (Sun, 24 Jul 2005)
New Revision: 9613

Modified:
   trunk/theora/lib/dct_decode.c
   trunk/theora/lib/decode.c
Log:
Replace a for loop with a memset, which save a few % in the unoptimized
profile. Also correct a comment typo.


Modified: trunk/theora/lib/dct_decode.c
===================================================================
--- trunk/theora/lib/dct_decode.c	2005-07-24 06:32:34 UTC (rev 9612)
+++ trunk/theora/lib/dct_decode.c	2005-07-24 08:41:45 UTC (rev 9613)
@@ -673,7 +673,7 @@
   for ( i = 0; i < pbi->CodedBlockIndex; i++ ) {
     /* Get the linear index for the current fragment. */
     QFragPtr = pbi->QFragData[pbi->CodedBlockList[i]];
-    for ( j = 0; j < 64; j++ ) QFragPtr[j]  = 0;
+    memset(QFragPtr, 0, 64*sizeof(Q_LIST_ENTRY));
   }
 }
 

Modified: trunk/theora/lib/decode.c
===================================================================
--- trunk/theora/lib/decode.c	2005-07-24 06:32:34 UTC (rev 9612)
+++ trunk/theora/lib/decode.c	2005-07-24 08:41:45 UTC (rev 9613)
@@ -796,7 +796,7 @@
   /* Zero Decoder EOB run count */
   pbi->EOB_Run = 0;
 
-  /* Make a not of the number of coded blocks this frame */
+  /* Make a note of the number of coded blocks this frame */
   pbi->CodedBlocksThisFrame = pbi->CodedBlockIndex;
 
   /* Decode the modes data */



More information about the commits mailing list