]> git.sesse.net Git - stockfish/blobdiff - src/value.h
Stockfish 1.6.1
[stockfish] / src / value.h
index 3d23f5054c3f71c726ca2b387a6c57ec99c99923..d54f81961174472cc7d8fde5b624ef18d3b9abde 100644 (file)
@@ -52,10 +52,11 @@ enum Value {
 };
 
 
-/// Score struct keeps a midgame and an endgame value in a single
-/// ScoreValue 64 bit union.
+/// Score enum keeps a midgame and an endgame value in a single
+/// integer (enum), first LSB 16 bits are used to store endgame
+/// value, while upper bits are used for midgame value.
 
-enum Score;
+enum Score {};
 
 inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
 inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }