From f908da8d5aaee12887a907ddec9fe1bc252494c0 Mon Sep 17 00:00:00 2001 From: iabdalkader Date: Sun, 11 Sep 2016 16:59:42 +0200 Subject: [PATCH] Make FFT sin/cos tables static. --- src/omv/img/fft.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/omv/img/fft.c b/src/omv/img/fft.c index eea937f07..e14dd74a5 100644 --- a/src/omv/img/fft.c +++ b/src/omv/img/fft.c @@ -13,7 +13,7 @@ #include "fft.h" // http://processors.wiki.ti.com/index.php/Efficient_FFT_Computation_of_Real_Input -const float cos_table[512] = { +const static float cos_table[512] = { 1.000000f, 0.999981f, 0.999925f, 0.999831f, 0.999699f, 0.999529f, 0.999322f, 0.999078f, 0.998795f, 0.998476f, 0.998118f, 0.997723f, 0.997290f, 0.996820f, 0.996313f, 0.995767f, 0.995185f, 0.994565f, 0.993907f, 0.993212f, 0.992480f, 0.991710f, 0.990903f, 0.990058f, @@ -117,7 +117,7 @@ ALWAYS_INLINE static float get_b_star_i(int k, int N_pow2) // N=512 -> N=pow2=9 // return 0.5 * (1 - get_cos((2 << N_pow2) - k - 1, N_pow2)); //} -const float sin_table[512] = { +const static float sin_table[512] = { 0.000000f, 0.006136f, 0.012272f, 0.018407f, 0.024541f, 0.030675f, 0.036807f, 0.042938f, 0.049068f, 0.055195f, 0.061321f, 0.067444f, 0.073565f, 0.079682f, 0.085797f, 0.091909f, 0.098017f, 0.104122f, 0.110222f, 0.116319f, 0.122411f, 0.128498f, 0.134581f, 0.140658f,