From ee6ea4e982e6d4dd18cbe3703cfd24ae737e0ed1 Mon Sep 17 00:00:00 2001 From: Jukka Ojanen Date: Mon, 16 Mar 2015 13:33:41 +0200 Subject: Don't generate lookup tables when size is less than 32 --- src/ffts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ffts.c b/src/ffts.c index 8f809db..b0e4d27 100644 --- a/src/ffts.c +++ b/src/ffts.c @@ -483,12 +483,12 @@ ffts_plan_t *ffts_init_1d(size_t N, int sign) p->destroy = ffts_free_1d; p->N = N; - /* generate lookup tables */ - if (N > 4 && ffts_generate_luts(p, N, leaf_N, sign)) { - goto cleanup; - } - if (N >= 32) { + /* generate lookup tables */ + if (ffts_generate_luts(p, N, leaf_N, sign)) { + goto cleanup; + } + p->offsets = ffts_init_offsets(N, leaf_N); if (!p->offsets) { goto cleanup; -- cgit v1.1