shithub: opus

Download patch

ref: 57e004bf7460b2ad3861b7898c8fd75bf85efb50
parent: 7f28f768e759ff2f6b20f3d2d6554df91e79b0bc
author: Jean-Marc Valin <[email protected]>
date: Wed Apr 16 07:58:48 EDT 2008

More use of CELT_MEMSET

--- a/libcelt/celt.c
+++ b/libcelt/celt.c
@@ -181,11 +181,8 @@
          x1++;
          x2--;
       }
-      for (j=0;j<N4;j++)
-      {
-         x[j] = 0;
-         x[2*N-j-1] = 0;
-      }
+      CELT_MEMSET(x, 0, N4);
+      CELT_MEMSET(x+2*N-N4, 0, N4);
       mdct_forward(lookup, x, tmp);
       /* Interleaving the sub-frames */
       for (j=0;j<N;j++)