src/bitUtils.h
/**
 * Pops least significant bit from bitboard and returns index.
 *
 * @param bb Bitboard to pop lsb on.
 *
 * @returns Index of popped bit.
 */
Pops least significant bit from bitboard and returns index.

@param bb Bitboard to pop lsb on.

@returns Index of popped bit.
Pops least significant bit from bitboard and returns index . @param bb Bitboard to pop lsb on . @returns Index of popped bit .
inline int popLSB(Bitboard* bb) {
    Assert(*bb);
    int lsb = getLSB(*bb);
    *bb &= (*bb - 1);
    return lsb;
}
inline int popLSB ( Bitboard * bb ) { Assert ( * bb ) ; int lsb = getLSB ( * bb ) ; * bb &= ( * bb - 1 ) ; return lsb ; }
Pops least significant bit from bitboard and returns index.
Pops least significant bit from bitboard and returns index .