/* Brian O'Connor * bitmap.h * macros that facilitate treating a 32-bit int as a 32-bit bitmap. */ #ifndef BITMAP_H #define BITMAP_H typedef int Bitmap; #define BITMAP_SIZE (sizeof(int) * 8) int TestBit(Bitmap b, int i); void SetBit(Bitmap b, int i); void ClearBit(Bitmap b, int i); int MapIsClear(Bitmap b); void PrintBitmap(Bitmap b); Bitmap ZeroBitmap(void); #endif