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
diff options
context:
space:
mode:
Diffstat (limited to 'tests/mathops-test.c')
-rw-r--r--tests/mathops-test.c10
1 files changed, 5 insertions, 5 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);