111504Sralph /* 2*18802Sdist * Copyright (c) 1980 Regents of the University of California. 3*18802Sdist * All rights reserved. The Berkeley software License Agreement 4*18802Sdist * specifies the terms and conditions for redistribution. 5*18802Sdist * 6*18802Sdist * @(#)bit.h 5.1 (Berkeley) 04/26/85 7*18802Sdist */ 8*18802Sdist 9*18802Sdist /* 1011504Sralph * Bit matrix manipulations for font editor. 1111504Sralph * 1211504Sralph * General structure of a bit matrix: each row is packed into as few 1311504Sralph * bytes as possible, taking the bits from left to right within bytes. 1411504Sralph * The matrix is a sequence of such rows, i.e. up to 7 bits are wasted 1511504Sralph * at the end of each row. 1611504Sralph */ 1711504Sralph 1811504Sralph #include <stdio.h> 1911504Sralph typedef char * bitmat; 2011504Sralph #ifdef TRACE 2111504Sralph FILE *trace; 2211504Sralph #endif 2311504Sralph 2411504Sralph #define max(x,y) ((x) > (y) ? (x) : (y)) 2511504Sralph #define min(x,y) ((x) < (y) ? (x) : (y)) 26