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

gitlab.com/quite/celt.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@usherbrooke.ca>2009-10-18 06:12:42 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2009-10-18 06:12:42 +0400
commit234969c9034f8c90148266b2e08999828d8368e2 (patch)
tree366ebb2c2a6d7e4baa6d15b945db14f2df4f1748 /tests
parent8b2ff0da5a768bde0f233ea5384aa9e4edcde9f6 (diff)
Removed the _t from all the celt*_t types to avoid clashing with POSIX
Diffstat (limited to 'tests')
-rw-r--r--tests/mathops-test.c10
-rw-r--r--tests/mdct-test.c2
-rw-r--r--tests/rotation-test.c4
3 files changed, 8 insertions, 8 deletions
diff --git a/tests/mathops-test.c b/tests/mathops-test.c
index bb854fa..423d1e9 100644
--- a/tests/mathops-test.c
+++ b/tests/mathops-test.c
@@ -23,7 +23,7 @@ void testdiv(void)
for (i=1;i<=327670;i++)
{
double prod;
- celt_word32_t val;
+ celt_word32 val;
val = celt_rcp(i);
#ifdef FIXED_POINT
prod = (1./32768./65526.)*val*i;
@@ -44,7 +44,7 @@ void testsqrt(void)
for (i=1;i<=1000000000;i++)
{
double ratio;
- celt_word16_t val;
+ celt_word16 val;
val = celt_sqrt(i);
ratio = val/sqrt(i);
if (fabs(ratio - 1) > .001 && fabs(val-sqrt(i)) > 2)
@@ -62,7 +62,7 @@ void testrsqrt(void)
for (i=1;i<=2000000;i++)
{
double ratio;
- celt_word16_t val;
+ celt_word16 val;
val = celt_rsqrt(i);
ratio = val*sqrt(i)/Q15ONE;
if (fabs(ratio - 1) > .05)
@@ -119,10 +119,10 @@ void testexp2log2(void)
#else
void testilog2(void)
{
- celt_word32_t x;
+ celt_word32 x;
for (x=1;x<=268435455;x+=127)
{
- celt_word32_t error = abs(celt_ilog2(x)-(int)floor(log2(x)));
+ celt_word32 error = abs(celt_ilog2(x)-(int)floor(log2(x)));
if (error!=0)
{
printf("celt_ilog2 failed: celt_ilog2(x)!=floor(log2(x)) (x = %d, error = %d)\n",x,error);
diff --git a/tests/mdct-test.c b/tests/mdct-test.c
index ba9e9ec..61008c8 100644
--- a/tests/mdct-test.c
+++ b/tests/mdct-test.c
@@ -86,7 +86,7 @@ void test1d(int nfft,int isinverse)
kiss_fft_scalar * in = (kiss_fft_scalar*)malloc(buflen);
kiss_fft_scalar * out= (kiss_fft_scalar*)malloc(buflen);
- celt_word16_t * window= (celt_word16_t*)malloc(sizeof(celt_word16_t)*nfft/2);
+ celt_word16 * window= (celt_word16*)malloc(sizeof(celt_word16)*nfft/2);
int k;
mdct_init(&cfg, nfft);
diff --git a/tests/rotation-test.c b/tests/rotation-test.c
index b66154f..164a6ea 100644
--- a/tests/rotation-test.c
+++ b/tests/rotation-test.c
@@ -14,8 +14,8 @@ void test_rotation(int N, int K)
{
int i;
double err = 0, ener = 0, snr, snr0;
- celt_word16_t x0[MAX_SIZE];
- celt_word16_t x1[MAX_SIZE];
+ celt_word16 x0[MAX_SIZE];
+ celt_word16 x1[MAX_SIZE];
int nb_rotations = (N+4*K)/(8*K);
for (i=0;i<N;i++)
x1[i] = x0[i] = rand()%32767-16384;