Home | History | Annotate | Download | only in lib

Lines Matching refs:stack

454   long   stack=0;
459 if(stack<2){
460 posstack[stack]=i;
461 ampstack[stack++]=seeds[i];
464 if(seeds[i]<ampstack[stack-1]){
465 posstack[stack]=i;
466 ampstack[stack++]=seeds[i];
469 if(i<posstack[stack-1]+linesper){
470 if(stack>1 && ampstack[stack-1]<=ampstack[stack-2] &&
471 i<posstack[stack-2]+linesper){
472 /* we completely overlap, making stack-1 irrelevant. pop it */
473 stack--;
477 posstack[stack]=i;
478 ampstack[stack++]=seeds[i];
486 /* the stack now contains only the positions that are relevant. Scan
489 for(i=0;i<stack;i++){
491 if(i<stack-1 && ampstack[i+1]>ampstack[i]){