summaryrefslogtreecommitdiffstats
path: root/src/ffts.c
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-11 13:14:11 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-11 13:14:11 +0200
commit9ba8731f20a6bf6771f9a9812268c8bf958134c6 (patch)
tree77f7911c30a0ba577b3ac37a38e94f1809cdcf50 /src/ffts.c
parent90436adee6dff72c1e51b0528e57deb57f50fb28 (diff)
downloadffts-9ba8731f20a6bf6771f9a9812268c8bf958134c6.zip
ffts-9ba8731f20a6bf6771f9a9812268c8bf958134c6.tar.gz
Now ARM VFP building works with "CMake -DENABLE_VFP=ON". Performance when "-DDYNAMIC_CODE_DISABLED=ON" is poor, but it can be improved with gcc switches.
Diffstat (limited to 'src/ffts.c')
-rw-r--r--src/ffts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ffts.c b/src/ffts.c
index 0696daa..84a1145 100644
--- a/src/ffts.c
+++ b/src/ffts.c
@@ -503,8 +503,10 @@ ffts_plan_t *ffts_init_1d(size_t N, int sign)
p->i1++;
}
+#if !defined(HAVE_VFP) || defined(DYNAMIC_DISABLED)
p->i0 /= 2;
p->i1 /= 2;
+#endif
#ifdef DYNAMIC_DISABLED
if (sign < 0) {
OpenPOWER on IntegriCloud