summaryrefslogtreecommitdiffstats
path: root/apps/codecs/adx.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/codecs/adx.c')
-rw-r--r--apps/codecs/adx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/codecs/adx.c b/apps/codecs/adx.c
index a1b57fce58..e75e7dca1e 100644
--- a/apps/codecs/adx.c
+++ b/apps/codecs/adx.c
@@ -129,7 +129,7 @@ enum codec_status codec_run(void)
fp_sincos((unsigned long)phasemultiple,&z);
- a = (M_SQRT2*big28)-(z*big28/LONG_MAX);
+ a = (M_SQRT2*big28) - (z >> 3);
/**
* In the long passed to fsqrt there are only 4 nonfractional bits,