diff options
author | Gregory Maxwell <greg@xiph.org> | 2009-06-04 04:02:53 +0400 |
---|---|---|
committer | Jean-Marc Valin <jean-marc.valin@usherbrooke.ca> | 2009-06-05 05:42:47 +0400 |
commit | 083883e6c0748dd4dbe9f842f261c1a3637547bc (patch) | |
tree | 0cd3db5b9af1d552b6fd01a084aeea0dc77b7b81 /tests | |
parent | dc663473ca9dde45c5b5404833e998d6d677d608 (diff) |
Fixes for the tests in pseudo-stack mode.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cwrs32-test.c | 3 | ||||
-rw-r--r-- | tests/dft-test.c | 3 | ||||
-rw-r--r-- | tests/laplace-test.c | 3 | ||||
-rw-r--r-- | tests/mdct-test.c | 3 | ||||
-rw-r--r-- | tests/real-fft-test.c | 3 |
5 files changed, 13 insertions, 2 deletions
diff --git a/tests/cwrs32-test.c b/tests/cwrs32-test.c index 7332ca5..345bee1 100644 --- a/tests/cwrs32-test.c +++ b/tests/cwrs32-test.c @@ -5,6 +5,8 @@ #include <stdio.h> #include <string.h> +#define CELT_C +#include "../libcelt/stack_alloc.h" #include "../libcelt/rangeenc.c" #include "../libcelt/rangedec.c" #include "../libcelt/entenc.c" @@ -24,6 +26,7 @@ static const int kmax[15]={ int main(int _argc,char **_argv){ int n; + ALLOC_STACK; for(n=2;n<=NMAX;n++){ int dk; int k; diff --git a/tests/dft-test.c b/tests/dft-test.c index 348746c..313242b 100644 --- a/tests/dft-test.c +++ b/tests/dft-test.c @@ -5,6 +5,8 @@ #include <stdio.h> #include "kiss_fft.h" +#define CELT_C +#include "../libcelt/stack_alloc.h" #include "../libcelt/kiss_fft.c" @@ -102,6 +104,7 @@ void test1d(int nfft,int isinverse) int main(int argc,char ** argv) { + ALLOC_STACK; if (argc>1) { int k; for (k=1;k<argc;++k) { diff --git a/tests/laplace-test.c b/tests/laplace-test.c index b797c1a..6e5a083 100644 --- a/tests/laplace-test.c +++ b/tests/laplace-test.c @@ -5,7 +5,8 @@ #include <stdio.h> #include <stdlib.h> #include "laplace.h" -#include "stack_alloc.h" +#define CELT_C +#include "../libcelt/stack_alloc.h" #include "../libcelt/rangeenc.c" #include "../libcelt/rangedec.c" diff --git a/tests/mdct-test.c b/tests/mdct-test.c index 6a9393d..7c2a015 100644 --- a/tests/mdct-test.c +++ b/tests/mdct-test.c @@ -4,7 +4,8 @@ #include <stdio.h> #include "mdct.h" -#include "stack_alloc.h" +#define CELT_C +#include "../libcelt/stack_alloc.h" #include "../libcelt/kiss_fft.c" #include "../libcelt/mdct.c" diff --git a/tests/real-fft-test.c b/tests/real-fft-test.c index 9f49795..aa2f588 100644 --- a/tests/real-fft-test.c +++ b/tests/real-fft-test.c @@ -7,6 +7,8 @@ #include <stdio.h> #include <string.h> +#define CELT_C +#include "../libcelt/stack_alloc.h" #include "../libcelt/kiss_fft.c" #include "../libcelt/kiss_fftr.c" @@ -86,6 +88,7 @@ int main(void) kiss_fft_scalar rin[NFFT+2]; kiss_fft_scalar rout[NFFT+2]; kiss_fft_scalar zero; + ALLOC_STACK; memset(&zero,0,sizeof(zero) ); // ugly way of setting short,int,float,double, or __m128 to zero for (i=0;i<NFFT;++i) { |