summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/ffts.c10
1 files 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;
OpenPOWER on IntegriCloud