shithub: opus

Download patch

ref: 41a5593c95d65f7eb3f95be598daba356907123f
parent: 6c5816ea84585ca897ac98755a66805383166cef
author: Jean-Marc Valin <[email protected]>
date: Thu Jul 8 17:02:05 EDT 2010

16-bit bitrev table

--- a/libcelt/_kiss_fft_guts.h
+++ b/libcelt/_kiss_fft_guts.h
@@ -37,7 +37,7 @@
 #endif
     int shift;
     int factors[2*MAXFACTORS];
-    int *bitrev;
+    celt_int16 *bitrev;
     kiss_twiddle_cpx *twiddles;
 };
 
--- a/libcelt/kiss_fft.c
+++ b/libcelt/kiss_fft.c
@@ -436,7 +436,7 @@
 static
 void compute_bitrev_table(
          int Fout,
-         int *f,
+         celt_int16 *f,
          const size_t fstride,
          int in_stride,
          int * factors,
@@ -629,7 +629,7 @@
         }
         
         /* bitrev */
-        st->bitrev = (int*)KISS_FFT_MALLOC(sizeof(int)*nfft);
+        st->bitrev = (celt_int16*)KISS_FFT_MALLOC(sizeof(celt_int16)*nfft);
         compute_bitrev_table(0, st->bitrev, 1,1, st->factors,st);
     }
     return st;