From: Phil.Wang Date: Wed, 24 Dec 2014 09:21:47 +0000 (+0800) Subject: FFT: Fix false assert at the last loop X-Git-Tag: v1.2.1~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0209722c7cfce824ab91eef92fcf715de8831bd7;p=platform%2Fupstream%2Fne10.git FFT: Fix false assert at the last loop Change-Id: I9954b32f4dafd4eed63db98a24cd47cabe9c1b3d --- diff --git a/modules/dsp/NE10_fft_generic_float32.neonintrinsic.cpp b/modules/dsp/NE10_fft_generic_float32.neonintrinsic.cpp index 804e6d6..e1bc7a9 100644 --- a/modules/dsp/NE10_fft_generic_float32.neonintrinsic.cpp +++ b/modules/dsp/NE10_fft_generic_float32.neonintrinsic.cpp @@ -855,12 +855,13 @@ static void ne10_mixed_radix_generic_butterfly_float32_neon_impl (CPLX *Fout, } radix = factors[ stage_count << 1 ]; - // radix of first stage, should be one of {2,3,5,4} - assert ((radix > 1) && (radix < 6)); - // other stages while (stage_count > 0) { + + // radix of first stage, should be one of {2,3,5,4} + assert ((radix > 1) && (radix < 6)); + ne10_swap_ptr (buffer, Fout); fstride /= radix; @@ -889,8 +890,6 @@ static void ne10_mixed_radix_generic_butterfly_float32_neon_impl (CPLX *Fout, stage_count--; radix = factors[ stage_count << 1 ]; - - assert ((radix > 1) && (radix < 6)); } // while (stage_count) }