Annotation of researchv9/libc/gen/swab.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Swap bytes in 16-bit [half-]words
        !             3:  * for going between the 11 and the interdata
        !             4:  */
        !             5: 
        !             6: swab(pf, pt, n)
        !             7: register short *pf, *pt;
        !             8: register n;
        !             9: {
        !            10: 
        !            11:        n /= 2;
        !            12:        while (--n >= 0) {
        !            13:                *pt++ = (*pf << 8) + ((*pf >> 8) & 0377);
        !            14:                pf++;
        !            15:        }
        !            16: }

unix.superglobalmegacorp.com

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