summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAnthony Blake <anthonix@me.com>2012-08-01 14:48:29 +1200
committerAnthony Blake <anthonix@me.com>2012-08-01 14:48:29 +1200
commit9993b4b77bd21971c2e1a43dbb45567b692698c7 (patch)
tree8052860e84b199c0a5a8c67e222d58f4388a5bea /include
parent96ff9180191b360873a3b9c384902a0a39d5b37e (diff)
downloadffts-9993b4b77bd21971c2e1a43dbb45567b692698c7.zip
ffts-9993b4b77bd21971c2e1a43dbb45567b692698c7.tar.gz
Forwards and backwards working
Diffstat (limited to 'include')
-rw-r--r--include/ffts.h19
1 files changed, 17 insertions, 2 deletions
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 <complex.h>
#include <math.h>
#include <stdint.h>
+#include <stddef.h>
-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
OpenPOWER on IntegriCloud