Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/celt-0.7.0.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-03-05 09:34:45 +0300
committerJean-Marc Valin <Jean-Marc.Valin@csiro.au>2008-03-05 09:34:45 +0300
commit9d312b97565ab179ff0291a537b87db3d9865f3a (patch)
treee9bc8def3143a713ca96f2978a3bb26e8350739e /tests
parentf93747c44ab8e1c2d31b458ae1ffc0f85952b67c (diff)
Defining RADIX_TWO_ONLY removes all butterflies, except for radix 2 and 4.
Diffstat (limited to 'tests')
-rw-r--r--tests/dft-test.c10
-rw-r--r--tests/mdct-test.c10
-rw-r--r--tests/real-fft-test.c4
3 files changed, 16 insertions, 8 deletions
diff --git a/tests/dft-test.c b/tests/dft-test.c
index 7f15331..fab680b 100644
--- a/tests/dft-test.c
+++ b/tests/dft-test.c
@@ -104,6 +104,11 @@ int main(int argc,char ** argv)
}else{
test1d(32,0);
test1d(32,1);
+ test1d(128,0);
+ test1d(128,1);
+ test1d(256,0);
+ test1d(256,1);
+#ifndef RADIX_TWO_ONLY
test1d(36,0);
test1d(36,1);
test1d(50,0);
@@ -112,10 +117,7 @@ int main(int argc,char ** argv)
test1d(120,1);
test1d(105,0);
test1d(105,1);
- test1d(128,0);
- test1d(128,1);
- test1d(256,0);
- test1d(256,1);
+#endif
}
return ret;
}
diff --git a/tests/mdct-test.c b/tests/mdct-test.c
index dea054f..8b3a7bb 100644
--- a/tests/mdct-test.c
+++ b/tests/mdct-test.c
@@ -123,6 +123,11 @@ int main(int argc,char ** argv)
}else{
test1d(32,0);
test1d(32,1);
+ test1d(256,0);
+ test1d(256,1);
+ test1d(512,0);
+ test1d(512,1);
+#ifndef RADIX_TWO_ONLY
test1d(40,0);
test1d(40,1);
test1d(56,0);
@@ -131,12 +136,9 @@ int main(int argc,char ** argv)
test1d(120,1);
test1d(240,0);
test1d(240,1);
- test1d(256,0);
- test1d(256,1);
test1d(480,0);
test1d(480,1);
- test1d(512,0);
- test1d(512,1);
+#endif
}
return ret;
}
diff --git a/tests/real-fft-test.c b/tests/real-fft-test.c
index 25db1a4..fc73f70 100644
--- a/tests/real-fft-test.c
+++ b/tests/real-fft-test.c
@@ -64,7 +64,11 @@ double snr_compare_scal( kiss_fft_scalar * vec1,kiss_fft_scalar * vec2, int n)
}
return snr;
}
+#ifdef RADIX_TWO_ONLY
+#define NFFT 1024
+#else
#define NFFT 8*3*5
+#endif
#ifndef NUMFFTS
#define NUMFFTS 10000