summaryrefslogtreecommitdiffstats
path: root/include/ffts.h
diff options
context:
space:
mode:
authorAnthony Blake <anthonix@me.com>2012-10-11 17:53:46 +1300
committerAnthony Blake <anthonix@me.com>2012-10-11 17:53:46 +1300
commit11c42fab7cda9d63f763962970fbac754b2192de (patch)
treea5b766201fab4afa456ffcda4d8db1fa9a62fddb /include/ffts.h
parent54a23010b42e55641fca1aeb30261cc51db91881 (diff)
downloadffts-11c42fab7cda9d63f763962970fbac754b2192de.zip
ffts-11c42fab7cda9d63f763962970fbac754b2192de.tar.gz
Builds and runs on Android/ARM
Diffstat (limited to 'include/ffts.h')
-rw-r--r--include/ffts.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/ffts.h b/include/ffts.h
index 90194ed..782df9f 100644
--- a/include/ffts.h
+++ b/include/ffts.h
@@ -34,11 +34,15 @@
#include <stdio.h>
#include <stdlib.h>
-#include <complex.h>
#include <math.h>
#include <stdint.h>
#include <stddef.h>
+#ifdef __cplusplus
+extern "C"
+{
+#endif /* __cplusplus */
+
typedef size_t transform_index_t;
struct _ffts_plan_t {
@@ -52,7 +56,7 @@ struct _ffts_plan_t {
void *lastlut;
transform_index_t *transforms;
//transform_func_t transform;
- void (*transform)(struct _ffts_plan_t * restrict, const float * restrict, float * restrict);
+ void (*transform)(struct _ffts_plan_t * , const float * , float * );
void *transform_base;
size_t transform_size;
void *constants;
@@ -60,8 +64,12 @@ struct _ffts_plan_t {
typedef struct _ffts_plan_t ffts_plan_t;
-void ffts_execute(ffts_plan_t * restrict, const void * restrict, const void * restrict);
+void ffts_execute(ffts_plan_t * , const void * , const void * );
ffts_plan_t *ffts_init(size_t N, int sign);
void ffts_free(ffts_plan_t *);
+#ifdef __cplusplus
+} /* extern "C" */
+#endif /* __cplusplus */
+
#endif
OpenPOWER on IntegriCloud