From 9993b4b77bd21971c2e1a43dbb45567b692698c7 Mon Sep 17 00:00:00 2001 From: Anthony Blake Date: Wed, 1 Aug 2012 14:48:29 +1200 Subject: Forwards and backwards working --- include/ffts.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/ffts.h b/include/ffts.h index 1431cf6..e266491 100644 --- a/include/ffts.h +++ b/include/ffts.h @@ -37,11 +37,26 @@ #include #include #include +#include -typedef struct ffts_plan_t; +typedef size_t transform_index_t; + +struct _ffts_plan_t { + ptrdiff_t *is; + ptrdiff_t *offsets; + void __attribute__ ((aligned(32))) **ws; + void (*firstpass)(const float * restrict, float * restrict, size_t, struct _ffts_plan_t * restrict); + size_t i0, i1, i2; + uint64_t n_bits, leaftime; + + transform_index_t *transforms; +}; + + +typedef struct _ffts_plan_t ffts_plan_t; void ffts_execute(ffts_plan_t * restrict, const void * restrict, const void * restrict); -ffts_plan_t *ffts_init(size_t N); +ffts_plan_t *ffts_init(size_t N, int sign); #endif -- cgit v1.1