search for: ampstack

Displaying 1 result from an estimated 1 matches for "ampstack".

Did you mean: dumpstack
2000 Jun 30
0
First patch, little speed up... (about 1%)
...--- psy.c Sat Jun 24 12:09:23 2000 +++ - Fri Jun 30 19:03:37 2000 @@ -452,38 +452,38 @@ /* bleaugh, this is more complicated than it needs to be */ static void max_seeds(vorbis_look_psy *p,double *flr){ long n=p->n,i,j; - long *posstack=alloca(n*sizeof(long)); - double *ampstack=alloca(n*sizeof(double)); - long stack=0; + long *posstack=alloca((n+1)*sizeof(long)); + double *ampstack=alloca((n+1)*sizeof(double)); + long stack=2; - for(i=0;i<n;i++){ - if(stack<2){ - posstack[stack]=i; - ampstack[stack++]=flr[i]; - }else{ + posstack[0]=0; + ampst...