Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Mark Harris
Opus
Commits
083883e6
Commit
083883e6
authored
Jun 03, 2009
by
Gregory Maxwell
Committed by
Jean-Marc Valin
Jun 04, 2009
Browse files
Fixes for the tests in pseudo-stack mode.
parent
dc663473
Changes
5
Hide whitespace changes
Inline
Side-by-side
tests/cwrs32-test.c
View file @
083883e6
...
...
@@ -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
;
...
...
tests/dft-test.c
View file @
083883e6
...
...
@@ -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
)
{
...
...
tests/laplace-test.c
View file @
083883e6
...
...
@@ -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"
...
...
tests/mdct-test.c
View file @
083883e6
...
...
@@ -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"
...
...
tests/real-fft-test.c
View file @
083883e6
...
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment