performance64-bit32bit-64bit16-bitbitboard

Bitboard 64-bit machine: should I use int16 or int64 for a 4x4 board?


I'm programming a 4x4 board game in C++ using bitboards in a 64-bit machine. I only need 16 bits to implement the board. Should I use:

I don't know if it helps, but my processor is: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz 1.99 GHz


Solution

  • Note: you may end up using the same type as uint64_t if your library maps uint_fast16_t to uint64_t.