include signal.h
[unix-history] / usr / src / old / lib2648 / bitcopy.c
CommitLineData
61d96e53
DF
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8static char sccsid[] = "@(#)bitcopy.c 5.1 (Berkeley) %G%";
9#endif not lint
10
94d991d9
RC
11/*
12 * Copy from msrc to mdest.
13 * This is done as it is because it would be much slower to do it
14 * a bit at a time.
15 */
16
17#include "bit.h"
18
19bitcopy(mdest, msrc, rows, cols)
20bitmat mdest, msrc;
21int rows, cols;
22{
23 register int size = ((cols + 7) >> 3) * rows;
24 register char *p, *q;
25
26 for (p = &mdest[size], q = &msrc[size]; p>=mdest; )
27 *--p = *--q;
28}