This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| /* for Reversi (8x8) */ | |
| uint64_t shiftl(uint64_t b){ return (b << 1) & 0xfefefefefefefefe; } | |
| uint64_t shiftr(uint64_t b){ return (b >> 1) & 0x7f7f7f7f7f7f7f7f; } | |
| uint64_t shiftu(uint64_t b){ return (b << 8); } | |
| uint64_t shiftd(uint64_t b){ return (b >> 8); } |