bb.h (247B)
1 #ifndef BB_H 2 #define BB_H 3 /* Bitboard */ 4 typedef unsigned long long bb; 5 6 bool testbit(bb, unsigned char); 7 void setbit(bb *, unsigned char); 8 void popbit(bb *, unsigned char); 9 unsigned char poplsb(bb *); 10 bb shift(bb, char); 11 char popcnt(bb); 12 #endif