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