summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-10 18:12:48 +0200
committerJukka Ojanen <jukka.ojanen@linkotec.net>2015-03-10 18:12:48 +0200
commit90436adee6dff72c1e51b0528e57deb57f50fb28 (patch)
tree9bfca22c7880f5e7de45270279323419f673b62e
parent4468d365c34ddac8680e7d4d46b2bf5684377094 (diff)
downloadffts-90436adee6dff72c1e51b0528e57deb57f50fb28.zip
ffts-90436adee6dff72c1e51b0528e57deb57f50fb28.tar.gz
Don't use CMake option name
-rw-r--r--src/ffts.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/ffts.c b/src/ffts.c
index ba41208..0696daa 100644
--- a/src/ffts.c
+++ b/src/ffts.c
@@ -56,7 +56,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#endif
#endif
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
static const FFTS_ALIGN(64) float w_data[16] = {
0.70710678118654757273731092936941f,
0.70710678118654746171500846685376f,
@@ -241,7 +241,7 @@ static int ffts_generate_luts(ffts_plan_t *p, size_t N, size_t leaf_N, int sign)
for (i = 0; i < n_luts; i++) {
if (!i || hardcoded) {
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
if (N <= 32) {
lut_size += n/4 * 2 * sizeof(cdata_t);
} else {
@@ -252,7 +252,7 @@ static int ffts_generate_luts(ffts_plan_t *p, size_t N, size_t leaf_N, int sign)
#endif
n *= 2;
} else {
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
lut_size += n/8 * 3 * sizeof(cdata_t);
#else
lut_size += n/8 * 3 * 2 * sizeof(cdata_t);
@@ -303,7 +303,7 @@ static int ffts_generate_luts(ffts_plan_t *p, size_t N, size_t leaf_N, int sign)
w0[j][1] = W_im(n,j);
}
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
if (N < 32) {
// w = FFTS_MALLOC(n/4 * 2 * sizeof(cdata_t), 32);
float *fw = (float *)w;
@@ -381,7 +381,7 @@ static int ffts_generate_luts(ffts_plan_t *p, size_t N, size_t leaf_N, int sign)
w2[j][1] = W_im((float) n, (float) (j + (n/8)));
}
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
#ifdef HAVE_NEON
VS temp0, temp1, temp2;
for (j = 0; j < n/8; j += 4) {
@@ -443,7 +443,7 @@ static int ffts_generate_luts(ffts_plan_t *p, size_t N, size_t leaf_N, int sign)
n *= 2;
}
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
if (sign < 0) {
p->oe_ws = (void*)(&w_data[4]);
p->ee_ws = (void*)(w_data);
@@ -514,7 +514,7 @@ ffts_plan_t *ffts_init_1d(size_t N, int sign)
}
#else
/* determinate transform size */
-#if defined(__arm__) && !defined(DISABLE_DYNAMIC_CODE)
+#if defined(__arm__) && !defined(DYNAMIC_DISABLED)
if (N < 8192) {
p->transform_size = 8192;
} else {
OpenPOWER on IntegriCloud