diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/fft/fft.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 40c251de15..3e88722b23 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -624,16 +624,16 @@ static unsigned calc_magnitudes(enum fft_amp_scale scale) | |||
624 | } | 624 | } |
625 | else | 625 | else |
626 | { | 626 | { |
627 | d = isqrt(d); /* linear scaling, nothing | 627 | d = fp_sqrt(d, 0); /* linear scaling, nothing |
628 | bad should happen */ | 628 | bad should happen */ |
629 | d = fp16_log(d << 16); /* the log function | 629 | d = fp16_log(d << 16); /* the log function |
630 | expects s15.16 values */ | 630 | expects s15.16 values */ |
631 | } | 631 | } |
632 | } | 632 | } |
633 | else | 633 | else |
634 | { | 634 | { |
635 | d = isqrt(d); /* linear scaling, nothing | 635 | d = fp_sqrt(d, 0); /* linear scaling, nothing |
636 | bad should happen */ | 636 | bad should happen */ |
637 | } | 637 | } |
638 | } | 638 | } |
639 | 639 | ||