|
|
1.1 ! root 1: /* bitcopy.c 4.1 83/03/09 */ ! 2: /* ! 3: * Copy from msrc to mdest. ! 4: * This is done as it is because it would be much slower to do it ! 5: * a bit at a time. ! 6: */ ! 7: ! 8: #include "bit.h" ! 9: ! 10: bitcopy(mdest, msrc, rows, cols) ! 11: bitmat mdest, msrc; ! 12: int rows, cols; ! 13: { ! 14: register int size = ((cols + 7) >> 3) * rows; ! 15: register char *p, *q; ! 16: ! 17: for (p = &mdest[size], q = &msrc[size]; p>=mdest; ) ! 18: *--p = *--q; ! 19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.