]> git.sesse.net Git - stockfish/commit
Speed-up some arrays reading
authorsnicolet <cassio@free.fr>
Mon, 6 Mar 2017 02:20:27 +0000 (18:20 -0800)
committerJoona Kiiski <joona@zoox.com>
Mon, 6 Mar 2017 02:20:27 +0000 (18:20 -0800)
commit728ce2195c505b73305d21a326cee4010d5dbf0e
treed4dcbbf2bcfa81595fa0418455647fb8a2ef0f7a
parent1810c4d758674dc4de288ca782851e52874f8908
Speed-up some arrays reading

This patch removes the empty rows at the beginning and at the end of
MobilityBonus[] and Protector[] arrays:

• reducing the size of MobilityBonus from 768 bytes to 512 bytes
• reducing the size of Protector from 1024 to 512 bytes

Also adds some comments and cleaner code for the arrays in pawns.cpp

No speed penalty (measured speed-up of 0.4%).

No functional change.

Closes #1018
src/evaluate.cpp
src/pawns.cpp