From 68a8b95a473280f733804601a5f85c4acaff366b Mon Sep 17 00:00:00 2001 From: Mark Borgerding Date: Fri, 9 Oct 2009 18:04:54 +0000 Subject: [PATCH] check for openmp fitness --- kiss_fft.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kiss_fft.c b/kiss_fft.c index fb048e7..1f8a8a2 100644 --- a/kiss_fft.c +++ b/kiss_fft.c @@ -14,6 +14,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #include "_kiss_fft_guts.h" + + /* The guts header contains all the multiplication and addition macros that are defined for fixed or floating point complex numbers. It also delares the kf_ internal functions. */ @@ -69,6 +71,7 @@ static void kf_bfly4( const size_t m2=2*m; const size_t m3=3*m; + tw3 = tw2 = tw1 = st->twiddles; do { @@ -265,7 +268,7 @@ void kf_work( #ifdef _OPENMP // use openmp extensions at the // top-level (not recursive) - if (fstride==1) { + if (fstride==1 && m != 1) { int k; // execute the p different work units in different threads