1*11504Sralph /* bit.h 4.1 83/03/09 */ 2*11504Sralph /* 3*11504Sralph * Bit matrix manipulations for font editor. 4*11504Sralph * 5*11504Sralph * General structure of a bit matrix: each row is packed into as few 6*11504Sralph * bytes as possible, taking the bits from left to right within bytes. 7*11504Sralph * The matrix is a sequence of such rows, i.e. up to 7 bits are wasted 8*11504Sralph * at the end of each row. 9*11504Sralph */ 10*11504Sralph 11*11504Sralph #include <stdio.h> 12*11504Sralph typedef char * bitmat; 13*11504Sralph #ifdef TRACE 14*11504Sralph FILE *trace; 15*11504Sralph #endif 16*11504Sralph 17*11504Sralph #define max(x,y) ((x) > (y) ? (x) : (y)) 18*11504Sralph #define min(x,y) ((x) < (y) ? (x) : (y)) 19