check for openmp fitness

This commit is contained in:
Mark Borgerding 2009-10-09 18:04:54 +00:00
parent 26f8faa6e8
commit 68a8b95a47

View File

@ -14,6 +14,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
#include "_kiss_fft_guts.h" #include "_kiss_fft_guts.h"
/* The guts header contains all the multiplication and addition macros that are defined for /* 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. 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 m2=2*m;
const size_t m3=3*m; const size_t m3=3*m;
tw3 = tw2 = tw1 = st->twiddles; tw3 = tw2 = tw1 = st->twiddles;
do { do {
@ -265,7 +268,7 @@ void kf_work(
#ifdef _OPENMP #ifdef _OPENMP
// use openmp extensions at the // use openmp extensions at the
// top-level (not recursive) // top-level (not recursive)
if (fstride==1) { if (fstride==1 && m != 1) {
int k; int k;
// execute the p different work units in different threads // execute the p different work units in different threads