summaryrefslogtreecommitdiff
path: root/iplan2p4/iplpack.h
blob: 53c2c988fcbce2c53b7c3d89bc6c7d462f0d3854 (plain)
1
2
3
4
5
6
7
8
9
10
/* $XFree86$ */
/* Modified nov 94 by Martin Schaller (Martin_Schaller@maus.r.de) for use with
interleaved planes */

#define NUM_LONGS(planes, xs, xe)		\
	(((((xe) * (planes) + 31) & ~31) - 	\
	  (((xs) * (planes)) & ~31))/32)

#define NUM_TEMP_BYTES(planes, longs)		\
	(((2 * (longs) + (planes) - 1) / planes + 1) * planes * 2)