Remove unuseful optimization in RKISS

Don't need a struct here. Speed test shows
result is teh same. Moreover RKISS is used
mainly at startup to compute magics, so
prefer to keep it simple...RKISS ;-)

Also some assorted triviality while there.

No functional change.
This commit is contained in:
Marco Costalba
2013-10-13 02:20:35 -07:00
parent b15e148b5e
commit 549b5c478f
3 changed files with 12 additions and 13 deletions

View File

@@ -323,11 +323,11 @@ inline bool operator<(const ExtMove& f, const ExtMove& s) {
}
inline Color operator~(Color c) {
return Color(c ^ 1);
return Color(c ^ BLACK);
}
inline Square operator~(Square s) {
return Square(s ^ 56); // Vertical flip SQ_A1 -> SQ_A8
return Square(s ^ SQ_A8); // Vertical flip SQ_A1 -> SQ_A8
}
inline Square operator|(File f, Rank r) {