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@usherbrooke.ca>2008-04-21 01:53:40 +0400
committerJean-Marc Valin <jean-marc.valin@usherbrooke.ca>2008-04-21 01:53:40 +0400
commitd7291d243050d86097c9cd63c4bc42e1cd6b8455 (patch)
treec2857f8535f3487fb5e5a62ae58203b8fd6cbeb0 /tests
parent7aa9d8c7ae491259f4094877facca36934058dd7 (diff)
Further simplifications to comb2pulses() to remove all conditional branches.
Diffstat (limited to 'tests')
-rw-r--r--tests/cwrs32-test.c5
-rw-r--r--tests/cwrs64-test.c5
2 files changed, 4 insertions, 6 deletions
diff --git a/tests/cwrs32-test.c b/tests/cwrs32-test.c
index 13e5ec6..b9ea1a8 100644
--- a/tests/cwrs32-test.c
+++ b/tests/cwrs32-test.c
@@ -12,7 +12,7 @@ int main(int _argc,char **_argv){
int n;
for(n=2;n<=NMAX;n++){
int m;
- for(m=0;m<=MMAX;m++){
+ for(m=1;m<=MMAX;m++){
celt_uint32_t uu[NMAX];
celt_uint32_t inc;
celt_uint32_t nc;
@@ -22,7 +22,7 @@ int main(int _argc,char **_argv){
if(inc<1)inc=1;
for(i=0;i<nc;i+=inc){
celt_uint32_t u[NMAX];
- int x[MMAX+1];
+ int x[MMAX];
int s[MMAX];
int x2[MMAX];
int s2[MMAX];
@@ -40,7 +40,6 @@ int main(int _argc,char **_argv){
fprintf(stderr,"Combination-index mismatch.\n");
return 1;
}
- x[m] = -1;
comb2pulse(n,m,y,x,s);
/*for(j=0;j<n;j++)printf(" %c%i",y[j]?y[j]<0?'-':'+':' ',abs(y[j]));
printf("\n");*/
diff --git a/tests/cwrs64-test.c b/tests/cwrs64-test.c
index 862f124..e476367 100644
--- a/tests/cwrs64-test.c
+++ b/tests/cwrs64-test.c
@@ -13,7 +13,7 @@ int main(int _argc,char **_argv){
int n;
for(n=2;n<=NMAX;n+=3){
int m;
- for(m=0;m<=MMAX;m++){
+ for(m=1;m<=MMAX;m++){
celt_uint64_t uu[NMAX];
celt_uint64_t inc;
celt_uint64_t nc;
@@ -25,7 +25,7 @@ int main(int _argc,char **_argv){
/*printf("%d/%d: %llu",n,m, nc);*/
for(i=0;i<nc;i+=inc){
celt_uint64_t u[NMAX];
- int x[MMAX+1];
+ int x[MMAX];
int s[MMAX];
int x2[MMAX];
int s2[MMAX];
@@ -43,7 +43,6 @@ int main(int _argc,char **_argv){
fprintf(stderr,"Combination-index mismatch.\n");
return 1;
}
- x[m] = -1;
comb2pulse(n,m,y,x,s);
/*for(j=0;j<n;j++)printf(" %c%i",y[j]?y[j]<0?'-':'+':' ',abs(y[j]));
printf("\n");*/