]> git.sesse.net Git - stockfish/commitdiff
Finally fix prefetch on Linux
authorMarco Costalba <mcostalba@gmail.com>
Wed, 12 Aug 2009 07:40:03 +0000 (09:40 +0200)
committerMarco Costalba <mcostalba@gmail.com>
Fri, 14 Aug 2009 07:13:42 +0000 (08:13 +0100)
It was due to a missing -msse compiler option !

Without this option the CPU silently discards
prefetcht2 instructions during execution.

Also added a (gcc documented) hack to prevent Intel
compiler to optimize away the prefetches.

Special thanks to Heinz for testing and suggesting
improvments. And for Jim for testing icc on Windows.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>

No differences found