src/bitmask.cpp
int pop_count(const Bitboard bb) {
#if defined (__GNUC__)
    return __builtin_popcountll(bb);
#else
    /// need to implement my own version.
        return -1;
#endif // __GNUC__
}
/**
 * Counts the number of 1 bits in the bitboard
 * @param bb bitboard to count
 * @return number of 1 bits
 */
Counts the number of 1 bits in the bitboard
@param bb bitboard to count
@return number of 1 bits
Counts the number of 1 bits in the bitboard @param bb bitboard to count @return number of 1 bits
int pop_count(const Bitboard bb) {
#if defined (__GNUC__)
    return __builtin_popcountll(bb);
#else
        return -1;
#endif 
}
int pop_count ( const Bitboard bb ) { #if defined ( __GNUC__ ) return __builtin_popcountll ( bb ) ; #else return -1 ; #endif }
Counts the number of 1 bits in the bitboard
 @param bb bitboard to count
 @return number of 1 bits
Counts the number of 1 bits in the bitboard @param bb bitboard to count @return number of 1 bits
/// need to implement my own version. // __GNUC__