src/attack.cpp
Bitboard rook_moves(Square_t sq, Bitboard occ) {
#ifdef USE_SSE
    #if defined (__GNUC__)
#if defined (__BMI2__)
    return attacks_rook(sq, occ);
#endif // __BMI2__
#endif // __GNUC__
#else
    return horzvert_mask(sq, occ);
#endif
}
/**
 * Computes all pseudo-legal moves of specified rook
 * @param  sq square the rook occupies
 * @param  occupied bitboard of occupied squares
 * @return bitboard of pseudo-legal rook moves
 */
Computes all pseudo-legal moves of specified rook
@param  sq square the rook occupies
@param  occupied bitboard of occupied squares
@return bitboard of pseudo-legal rook moves
Computes all pseudo - legal moves of specified rook @param sq square the rook occupies @param occupied bitboard of occupied squares @return bitboard of pseudo - legal rook moves
Bitboard rook_moves(Square_t sq, Bitboard occ) {
#ifdef USE_SSE
    #if defined (__GNUC__)
#if defined (__BMI2__)
    return attacks_rook(sq, occ);
#endif 
#endif 
#else
    return horzvert_mask(sq, occ);
#endif
}
Bitboard rook_moves ( Square_t sq , Bitboard occ ) { #ifdef USE_SSE #if defined ( __GNUC__ ) #if defined ( __BMI2__ ) return attacks_rook ( sq , occ ) ; #endif #endif #else return horzvert_mask ( sq , occ ) ; #endif }
Computes all pseudo-legal moves of specified rook
 @param  sq square the rook occupies
 @param  occupied bitboard of occupied squares
 @return bitboard of pseudo-legal rook moves
Computes all pseudo - legal moves of specified rook @param sq square the rook occupies @param occupied bitboard of occupied squares @return bitboard of pseudo - legal rook moves
// __BMI2__ // __GNUC__