summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
734fb9a)
For enum definitions a parenthesis is required.
No functional change.
Signed-off-by: Marco Costalba <mcostalba@gmail.com>
/// Score struct keeps a midgame and an endgame value in a single
/// ScoreValue 64 bit union.
/// Score struct keeps a midgame and an endgame value in a single
/// ScoreValue 64 bit union.
inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }
inline Value eg_value(Score s) { return Value(int16_t(s & 0xffff)); }
inline Value mg_value(Score s) { return Value((int(s) + 32768) >> 16); }