bitmap.h

来自「source code to compute the visibility po」· C头文件 代码 · 共 20 行

H
20
字号
/* Brian O'Connor * bitmap.h * macros that facilitate treating a 32-bit int as a 32-bit bitmap. */#ifndef BITMAP_H#define BITMAP_Htypedef 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

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?