From 1bcf028af8ff0346bf44ee530f41e3822fe5ee23 Mon Sep 17 00:00:00 2001
From: Jean-Marc Valin <jmvalin@jmvalin.ca>
Date: Wed, 10 Oct 2012 08:58:15 -0400
Subject: [PATCH] Using floor(.5+x) instead of lrint(x) for C90 compilers

---
 src/mlp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlp.c b/src/mlp.c
index dd3690dbd..f5f348123 100644
--- a/src/mlp.c
+++ b/src/mlp.c
@@ -74,7 +74,7 @@ static inline double tansig_approx(double x)
 	   x=-x;
 	   sign=-1;
 	}
-	i = lrint(25*x);
+	i = floor(.5+25*x);
 	x -= .04*i;
 	y = tansig_table[i];
 	dy = 1-y*y;
-- 
GitLab