1*11463Sralph /* bitcopy.c 4.1 83/03/09 */ 2*11463Sralph /* 3*11463Sralph * Copy from msrc to mdest. 4*11463Sralph * This is done as it is because it would be much slower to do it 5*11463Sralph * a bit at a time. 6*11463Sralph */ 7*11463Sralph 8*11463Sralph #include "bit.h" 9*11463Sralph 10*11463Sralph bitcopy(mdest, msrc, rows, cols) 11*11463Sralph bitmat mdest, msrc; 12*11463Sralph int rows, cols; 13*11463Sralph { 14*11463Sralph register int size = ((cols + 7) >> 3) * rows; 15*11463Sralph register char *p, *q; 16*11463Sralph 17*11463Sralph for (p = &mdest[size], q = &msrc[size]; p>=mdest; ) 18*11463Sralph *--p = *--q; 19*11463Sralph } 20