From 2ff6556f1fbf93be4f58b3e132859082941890f8 Mon Sep 17 00:00:00 2001 From: Jean-Marc Valin Date: Thu, 11 Aug 2016 11:05:51 -0400 Subject: Making stereo_itheta() use the same atan2() approximation as tonality_analysis() --- celt/vq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'celt/vq.c') diff --git a/celt/vq.c b/celt/vq.c index 8d49d804..5a4a8afd 100644 --- a/celt/vq.c +++ b/celt/vq.c @@ -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; -- cgit v1.2.3