Annotation of researchv10no/cmd/asd/mkcsum.c, revision 1.1

1.1     ! root        1: #include "seal.h"
        !             2: 
        !             3: unsigned long
        !             4: mkcsum (csum, start, limit)
        !             5:        register unsigned long csum;
        !             6:        char *start, *limit;
        !             7: {
        !             8:        register int c;
        !             9: 
        !            10:        while (start < limit) {
        !            11:                c = (unsigned char) *start++;
        !            12:                if (csum & 1)
        !            13:                        csum = (csum >> 1) | CSHIBIT;
        !            14:                else
        !            15: 
        !            16:                        csum >>= 1;
        !            17:                csum += c;
        !            18:                csum &= CSMASK;
        !            19:        }
        !            20:        return csum;
        !            21: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.