More use of CELT_MEMSET
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Wed, 16 Apr 2008 01:58:48 +0000 (11:58 +1000)
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Wed, 16 Apr 2008 01:58:48 +0000 (11:58 +1000)
libcelt/celt.c

index a6852df..34c3f27 100644 (file)
@@ -181,11 +181,8 @@ static void compute_mdcts(const CELTMode *mode, const celt_word16_t * restrict w
          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++)