| 1 | #pragma once |
|---|---|
| 2 | #include <cstdint> |
| 3 | |
| 4 | #define NTH_BIT(x, n) (((x) >> (n)) & 1) |
| 5 | |
| 6 | /* Integer type shortcuts */ |
| 7 | typedef uint8_t u8; typedef int8_t s8; |
| 8 | typedef uint16_t u16; typedef int16_t s16; |
| 9 | typedef uint32_t u32; typedef int32_t s32; |
| 10 | typedef uint64_t u64; typedef int64_t s64; |
| 11 |