diff options
author | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-08-11 11:05:51 -0400 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2016-08-11 11:05:51 -0400 |
commit | 2ff6556f1fbf93be4f58b3e132859082941890f8 (patch) | |
tree | 43094e6ae60aa1d9b14dcc8c9e15173dea3a3dbe /celt/vq.c | |
parent | 76674feae22db03848a40446beb2fcec70d2180d (diff) | |
download | libopus-2ff6556f1fbf93be4f58b3e132859082941890f8.tar.gz |
Making stereo_itheta() use the same atan2() approximation as tonality_analysis()
Diffstat (limited to 'celt/vq.c')
-rw-r--r-- | celt/vq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -426,7 +426,7 @@ int stereo_itheta(const celt_norm *X, const celt_norm *Y, int stereo, int N, int /* 0.63662 = 2/pi */ itheta = MULT16_16_Q15(QCONST16(0.63662f,15),celt_atan2p(side, mid)); #else - itheta = (int)floor(.5f+16384*0.63662f*atan2(side,mid)); + itheta = (int)floor(.5f+16384*0.63662f*fast_atan2f(side,mid)); #endif return itheta; |