From 29b01b6d825d32184a6307def3b17598bb5b4b0a Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sat, 20 Sep 2008 22:19:54 +0200 Subject: [PATCH] Use optimized pop_1st_bit() only under Windows 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 --- src/bitboard.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bitboard.cpp b/src/bitboard.cpp index e4fcb7ce..458f9318 100644 --- a/src/bitboard.cpp +++ b/src/bitboard.cpp @@ -339,7 +339,7 @@ Square first_1(Bitboard b) { /// 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) { -- 2.39.2