From a294010ed3badb868b51d6c4905538b0b660b879 Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Wed, 30 Sep 2009 23:14:10 +0200 Subject: [PATCH] UCB1AMAF: fast_sqrt() static inline --- uct/policy/ucb1amaf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uct/policy/ucb1amaf.c b/uct/policy/ucb1amaf.c index 0b20f22..a71d262 100644 --- a/uct/policy/ucb1amaf.c +++ b/uct/policy/ucb1amaf.c @@ -36,7 +36,7 @@ struct tree_node *ucb1_choose(struct uct_policy *p, struct tree_node *node, stru struct tree_node *ucb1_descend(struct uct_policy *p, struct tree *tree, struct tree_node *node, int parity, bool allow_pass); -float fast_sqrt(int x) +static inline float fast_sqrt(int x) { static const float table[] = { 0, -- 2.11.4.GIT