aboutsummaryrefslogtreecommitdiff
path: root/src/mlp.c
diff options
context:
space:
mode:
authorJean-Marc Valin <jmvalin@jmvalin.ca>2013-09-06 16:00:39 -0400
committerJean-Marc Valin <jmvalin@jmvalin.ca>2013-09-06 16:00:39 -0400
commit3ab03e05561f81f0eacac3ee724baac33b89683b (patch)
tree27fa7ce390c3dc47fe43d20ae10d88ce13fe02a5 /src/mlp.c
parent91904a4c91eb19abcebe843045f4599ee67adbee (diff)
downloadlibopus-3ab03e05561f81f0eacac3ee724baac33b89683b.tar.gz
First pass at making the analysis code run with FIXED_POINT
Code is still float, but at least tonality esitmation seems to work. Speech/music analysis is still disabled.
Diffstat (limited to 'src/mlp.c')
-rw-r--r--src/mlp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mlp.c b/src/mlp.c
index 90e94a5f..dd7d34fc 100644
--- a/src/mlp.c
+++ b/src/mlp.c
@@ -43,9 +43,9 @@ static inline opus_val16 tansig_approx(opus_val32 _x) /* Q19 */
/*double x, y;*/
opus_val16 dy, yy; /* Q14 */
/*x = 1.9073e-06*_x;*/
- if (_x>=QCONST32(10,19))
+ if (_x>=QCONST32(8,19))
return QCONST32(1.,14);
- if (_x<=-QCONST32(10,19))
+ if (_x<=-QCONST32(8,19))
return -QCONST32(1.,14);
xx = EXTRACT16(SHR32(_x, 8));
/*i = lrint(25*x);*/