X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=e0760ded99523e9fe1de6f2cb3767ce40b1efd2d;hp=cf0677799c6ea34b5bcf6271715ecd71bf90ca27;hb=13a73f67c018e58b2fd46f886c45ef2b75188c8e;hpb=500b9b0eb3b20ef58ff1280a089ab2ef1e3c6436 diff --git a/src/types.h b/src/types.h index cf067779..e0760ded 100644 --- a/src/types.h +++ b/src/types.h @@ -26,7 +26,7 @@ /// For Windows, part of the configuration is detected automatically, but some /// switches need to be set manually: /// -/// -DNDEBUG | Disable debugging mode. Use always. +/// -DNDEBUG | Disable debugging mode. Always use this. /// /// -DNO_PREFETCH | Disable use of prefetch asm-instruction. A must if you want /// | the executable to run on some very old machines. @@ -236,10 +236,11 @@ enum Rank { }; -/// 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. Compiler is free to choose the enum type as long as can -/// keep its data, so ensure Score to be an integer type. +/// The Score enum stores a midgame and an endgame value in a single integer +/// (enum). The least significant 16 bits are used to store the endgame value +/// and the upper 16 bits are used to store the midgame value. The compiler is +/// free to choose the enum type as long as it can store the data, so we +/// ensure that Score is an integer type by assigning some big int values. enum Score { SCORE_ZERO, SCORE_ENSURE_INTEGER_SIZE_P = INT_MAX,