]> git.sesse.net Git - stockfish/commitdiff
Use optimized pop_1st_bit() only under Windows
authorMarco Costalba <mcostalba@gmail.com>
Sat, 20 Sep 2008 20:19:54 +0000 (22:19 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Sat, 20 Sep 2008 20:19:54 +0000 (22:19 +0200)
Under Linux we have a segfault after a random time,
about a couple of minutes while running the benchmark.

This happens both with gcc and icc, and both with O2
and O3 optimizations.

Disable for Linux until we understand what's the deal.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
src/bitboard.cpp

index e4fcb7ce438de974b17303135427868b441ad002..458f9318f9d00d0d6c3b716c6268a78d7caef9de 100644 (file)
@@ -339,7 +339,7 @@ Square first_1(Bitboard b) {
 /// pop_1st_bit() finds and clears the least significant nonzero bit in a
 /// nonzero bitboard.
 
 /// pop_1st_bit() finds and clears the least significant nonzero bit in a
 /// nonzero bitboard.
 
-#if defined(USE_32BIT_ATTACKS)
+#if defined(USE_32BIT_ATTACKS) && defined(_WIN32)
 
 Square pop_1st_bit(Bitboard *bb) {
 
 
 Square pop_1st_bit(Bitboard *bb) {