Fixed the real fft testsuite as well
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Fri, 22 Feb 2008 02:20:05 +0000 (13:20 +1100)
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>
Fri, 22 Feb 2008 02:20:05 +0000 (13:20 +1100)
tests/real-fft-test.c

index c85890d..8fec564 100644 (file)
@@ -143,6 +143,13 @@ int main(void)
         cin[NFFT-i].i = - cin[i].i;
     }
 
+#ifdef FIXED_POINT
+    for (i=0;i< NFFT;++i) {
+       cin[i].r /= NFFT;
+       cin[i].i /= NFFT;
+    }
+#endif
+    
     fin[0] = cin[0].r;
     fin[1] = cin[NFFT/2].r;
     for (i=1;i< NFFT/2;++i)