Lines Matching defs:sum
133 unsigned short sum;
175 sum = (unsigned)chksum(pk->p_ib[x], pk->p_rsize) ^ (unsigned)(cntl&0377);
176 sum += pk->p_isum[x];
177 if (sum == CHECK) {
577 short sum;
581 sum = -1;
585 if (sum<0) {
586 sum <<= 1;
587 sum++;
589 sum <<= 1;
590 t = sum;
591 sum += (unsigned)*s++ & 0377;
592 x += sum^n;
593 if ((unsigned short)sum <= t) {
594 sum ^= x;
598 return(sum);