mirror of
https://github.com/mborgerding/kissfft.git
synced 2025-05-27 21:20:27 -04:00
check for openmp fitness
This commit is contained in:
parent
26f8faa6e8
commit
68a8b95a47
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user