ref: 1bcf028af8ff0346bf44ee530f41e3822fe5ee23
parent: 1b61303fc7e61f87539d3398c8c5ed3343b60b8d
author: Jean-Marc Valin <[email protected]>
date: Wed Oct 10 04:58:15 EDT 2012
Using floor(.5+x) instead of lrint(x) for C90 compilers
--- a/src/mlp.c
+++ b/src/mlp.c
@@ -74,7 +74,7 @@
x=-x;
sign=-1;
}
- i = lrint(25*x);
+ i = floor(.5+25*x);
x -= .04*i;
y = tansig_table[i];
dy = 1-y*y;