date and time created 83/03/09 16:22:23 by ralph
[unix-history] / usr / src / old / lib2648 / bitcopy.c
CommitLineData
94d991d9
RC
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
10bitcopy(mdest, msrc, rows, cols)
11bitmat mdest, msrc;
12int 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}