From e42a1e080e2b19d46435c3693b7e2dd9db7c4ee8 Mon Sep 17 00:00:00 2001 From: David Monniaux Date: Fri, 7 Jun 2019 18:33:57 +0200 Subject: c'est pas non plus ça la lenteur MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/monniaux/genann/genann.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'test/monniaux/genann/genann.c') diff --git a/test/monniaux/genann/genann.c b/test/monniaux/genann/genann.c index 609c06a1..98af736b 100644 --- a/test/monniaux/genann/genann.c +++ b/test/monniaux/genann/genann.c @@ -76,7 +76,13 @@ double static inline genann_act_sigmoid(const genann *ann unused, double a) { } void genann_init_sigmoid_lookup(const genann *ann) { - const double f = (sigmoid_dom_max - sigmoid_dom_min) / LOOKUP_SIZE; + const double f = (sigmoid_dom_max - sigmoid_dom_min) +#ifdef VERIMAG + * 0x1.0p-12 +#else + / LOOKUP_SIZE +#endif + ; int i; interval = LOOKUP_SIZE / (sigmoid_dom_max - sigmoid_dom_min); -- cgit