mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00:00
Fix compile errors under MSVC
Fallback from previous patches. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
c729e4e1ab
commit
628f844c11
3 changed files with 4 additions and 3 deletions
|
@ -48,7 +48,7 @@
|
||||||
|
|
||||||
// Select type of intrinsic bit count instruction to use
|
// Select type of intrinsic bit count instruction to use
|
||||||
|
|
||||||
#if defined(_MSC_VER) // Microsoft compiler
|
#if defined(_MSC_VER) && defined(_WIN64) // Microsoft compiler
|
||||||
|
|
||||||
#include <intrin.h>
|
#include <intrin.h>
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// To profile with callgrind uncomment following line
|
// To profile with callgrind uncomment following line
|
||||||
#define USE_CALLGRIND
|
//#define USE_CALLGRIND
|
||||||
|
|
||||||
|
|
||||||
////
|
////
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
|
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
|
|
||||||
|
#include "bitcount.h"
|
||||||
#include "movegen.h"
|
#include "movegen.h"
|
||||||
|
|
||||||
// Simple macro to wrap a very common while loop, no facny, no flexibility,
|
// Simple macro to wrap a very common while loop, no facny, no flexibility,
|
||||||
|
@ -333,7 +334,7 @@ int generate_evasions(const Position& pos, MoveStack* mlist, Bitboard pinned) {
|
||||||
// The checking pawn cannot be a discovered (bishop) check candidate
|
// The checking pawn cannot be a discovered (bishop) check candidate
|
||||||
// otherwise we were in check also before last double push move.
|
// otherwise we were in check also before last double push move.
|
||||||
assert(!bit_is_set(pos.discovered_check_candidates(them), checksq));
|
assert(!bit_is_set(pos.discovered_check_candidates(them), checksq));
|
||||||
assert(count_1s(b1) == 1 || count_1s(b1) == 2);
|
assert(count_1s<false>(b1) == 1 || count_1s<false>(b1) == 2);
|
||||||
|
|
||||||
b1 &= ~pinned;
|
b1 &= ~pinned;
|
||||||
while (b1)
|
while (b1)
|
||||||
|
|
Loading…
Add table
Reference in a new issue