Scorpio 202 Under Linux Resolved

Discussion of chess software programming and technical issues.

Moderator: Ras

Sven
Posts: 4052
Joined: Thu May 15, 2008 9:57 pm
Location: Berlin, Germany
Full name: Sven Schüle

Re: Scorpio 202 Under Linux Resolved

Post by Sven »

Aleks Peshkov wrote:Magic bitboard literals do not used directly, but stored in preinitialised array, so the array type definition matters. There are some other cases when ULL or LL may influence correctness, for example, deBruijin bitboard serialization code.
It is crucial, of course, to use unsigned types when it comes to shift operations, since especially a right shift applied to a signed value may deliver surprising results (sign bit propagated). This favors unsigned literals for bitboards.

Sven