From 93f585a57486cd2fc9ee8dba502c7d6070ccc023 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Tue, 29 Jun 2010 01:13:14 +0200 Subject: [PATCH] UCT tree_node: Store coord as a short --- uct/tree.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/uct/tree.h b/uct/tree.h index ecf03e5..eb54381 100644 --- a/uct/tree.h +++ b/uct/tree.h @@ -63,6 +63,9 @@ struct tree_node { #define TREE_HINT_INVALID 1 // don't go to this node, invalid move unsigned char hints; + /* coord is usually coord_t, but this is very space-sensitive. */ + short coord; + /* In case multiple threads walk the tree, is_expanded is set * atomically. Only the first thread setting it expands the node. * The node goes through 3 states: @@ -71,8 +74,6 @@ struct tree_node { * 2) children != null, is_expanded == true: fully expanded node */ bool is_expanded; - coord_t coord; - struct move_stats u; struct move_stats prior; /* XXX: Should be way for policies to add their own stats */ -- 2.11.4.GIT