Annotation of coherent/b/lib/libc/gen/swab.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Swap odd and even bytes of `f' into `t'
        !             3:  * for `n' bytes.  If `n' is odd, the last byte
        !             4:  * is not touched.
        !             5:  */
        !             6: 
        !             7: swab(f, t, n)
        !             8: register char *f, *t;
        !             9: register unsigned n;
        !            10: {
        !            11:        register int tmp;
        !            12: 
        !            13:        while (n >= 2) {
        !            14:                tmp = *f++;
        !            15:                *t++ = *f++;
        !            16:                *t++ = tmp;
        !            17:                n -= 2;
        !            18:        }
        !            19: }

unix.superglobalmegacorp.com

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