shithub: opus

Download patch

ref: ba8295241c680785c146389869de527b6e3989bf
parent: e6ce0c6a22b51cb76fc02582ab5d4e58f126ab23
author: Jean-Marc Valin <[email protected]>
date: Fri Apr 18 12:58:19 EDT 2008

optimisation: one less conditional branch in pulse2comb()

--- a/libcelt/cwrs.c
+++ b/libcelt/cwrs.c
@@ -294,10 +294,11 @@
       int s;
       n=abs(_y[j]);
       s=_y[j]<0;
-      for(;n-->0;k++){
+      do {
         _x[k]=j;
         _s[k]=s;
-      }
+        k++;
+      } while (--n>0);
     }
   }
 }