From 47e321b1959f3be0a5fac104206c2e4e871adb32 Mon Sep 17 00:00:00 2001 From: fbarchard Date: Mon, 19 Sep 2022 14:07:04 -0700 Subject: [PATCH] Update _kiss_fft_guts.h Fix for DIVSCALAR off by 1 (#83) --- _kiss_fft_guts.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_kiss_fft_guts.h b/_kiss_fft_guts.h index 4bd8d1c..c05421e 100644 --- a/_kiss_fft_guts.h +++ b/_kiss_fft_guts.h @@ -71,7 +71,7 @@ struct kiss_fft_state{ (m).i = sround( smul((a).r,(b).i) + smul((a).i,(b).r) ); }while(0) # define DIVSCALAR(x,k) \ - (x) = sround( smul( x, SAMP_MAX/k ) ) + (x) = sround( smul( x, (SAMPPROD)(1u<