|
|
1.1 root 1: /*
2: * Convert an array of longs into an array
3: * of filesystem 3 byte numbers. This routine, unlike
4: * the old one, is independent of the order of bytes in
5: * a long. Bytes have 8 bits.
6: */
7: ltol3(cp, lp, nl)
8: register char *cp;
9: register long *lp;
10: register unsigned nl;
11: {
12: register long l;
13:
14: if (nl != 0) {
15: do {
16: l = *lp++;
17: cp[0] = l >> 16;
18: cp[1] = l;
19: cp[2] = l >> 8;
20: cp += 3;
21: } while (--nl);
22: }
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.