BimmerBass / Loki

C++17 chess engine
GNU General Public License v3.0
9 stars 2 forks source link

Add intrinsic popcount for gcc #8

Closed BimmerBass closed 3 years ago

BimmerBass commented 3 years ago

I just finished adding popcount for gcc on my mac, but had trouble pushing the change. This should be pushed.

BimmerBass commented 3 years ago

Now popcount for gcc has been added (as well as the command -march=native) on line 201 in bitboard.h:

/* ... */
#elif (defined(__GNUC__) && defined(USE_POPCNT))
    return __builtin_popcountll(x)
#else
/* ... */