diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-09-06 16:00:39 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2013-09-06 16:00:39 -0400 |
commit | 3ab03e05561f81f0eacac3ee724baac33b89683b (patch) | |
tree | 27fa7ce390c3dc47fe43d20ae10d88ce13fe02a5 /src/mlp.c | |
parent | 91904a4c91eb19abcebe843045f4599ee67adbee (diff) | |
download | libopus-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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);*/ |