Lines Matching refs:prevval
653 int len, size, val = 0, prevval = 0, prevextremevalid = 0, in audioop_avgpp() local
666 if ( size == 1 ) prevval = (int)*CHARP(cp, 0); in audioop_avgpp()
667 else if ( size == 2 ) prevval = (int)*SHORTP(cp, 0); in audioop_avgpp()
668 else if ( size == 4 ) prevval = (int)*LONGP(cp, 0); in audioop_avgpp()
674 if (val != prevval) { in audioop_avgpp()
675 diff = val < prevval; in audioop_avgpp()
681 sum += fabs((double)prevval - (double)prevextreme); in audioop_avgpp()
685 prevextreme = prevval; in audioop_avgpp()
687 prevval = val; in audioop_avgpp()
705 int len, size, val = 0, prevval = 0, prevextremevalid = 0, in audioop_maxpp() local
717 if ( size == 1 ) prevval = (int)*CHARP(cp, 0); in audioop_maxpp()
718 else if ( size == 2 ) prevval = (int)*SHORTP(cp, 0); in audioop_maxpp()
719 else if ( size == 4 ) prevval = (int)*LONGP(cp, 0); in audioop_maxpp()
725 if (val != prevval) { in audioop_maxpp()
726 diff = val < prevval; in audioop_maxpp()
732 if (prevval < prevextreme) in audioop_maxpp()
734 (unsigned int)prevval; in audioop_maxpp()
736 extremediff = (unsigned int)prevval - in audioop_maxpp()
742 prevextreme = prevval; in audioop_maxpp()
744 prevval = val; in audioop_maxpp()
760 int prevval, ncross; in audioop_cross() local
767 prevval = 17; /* Anything <> 0,1 */ in audioop_cross()
773 if ( val != prevval ) ncross++; in audioop_cross()
774 prevval = val; in audioop_cross()