diff options
author | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-11-30 17:16:01 +0200 |
---|---|---|
committer | Jukka Ojanen <jukka.ojanen@linkotec.net> | 2015-11-30 17:18:31 +0200 |
commit | ae1b59ddd07cb66b0807bc2c7c981ce96c69acea (patch) | |
tree | 0b17e0271543e1fb897aba27c242b656378df858 /src/ffts.c | |
parent | c3e325911ae15524c814db75fe701df91d6f7c2a (diff) | |
download | ffts-ae1b59ddd07cb66b0807bc2c7c981ce96c69acea.zip ffts-ae1b59ddd07cb66b0807bc2c7c981ce96c69acea.tar.gz |
Enable building shared library and start version numbering from 0.9.0. On Windows when using FFTS as a DLL, define FFTS_SHARED. This is not mandatory, but it offers a little performance increase. Hide symbols when possible to improve compiler optimization and sizeof binary. Use CMake target alias "ffts" to choose between static and shared library, preferring static
Diffstat (limited to 'src/ffts.c')
-rw-r--r-- | src/ffts.c | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -149,7 +149,8 @@ static FFTS_INLINE void ffts_vmem_free(void *addr, size_t length) #endif } -void ffts_execute(ffts_plan_t *p, const void *in, void *out) +FFTS_API void +ffts_execute(ffts_plan_t *p, const void *in, void *out) { /* TODO: Define NEEDS_ALIGNED properly instead */ #if defined(HAVE_SSE) || defined(HAVE_NEON) @@ -165,7 +166,8 @@ void ffts_execute(ffts_plan_t *p, const void *in, void *out) p->transform(p, (const float*) in, (float*) out); } -void ffts_free(ffts_plan_t *p) +FFTS_API void +ffts_free(ffts_plan_t *p) { if (p) { p->destroy(p); @@ -409,7 +411,7 @@ cleanup: return -1; } -ffts_plan_t* +FFTS_API ffts_plan_t* ffts_init_1d(size_t N, int sign) { const size_t leaf_N = 8; |