summaryrefslogtreecommitdiff
path: root/gr-gcell
diff options
context:
space:
mode:
authoreb2008-05-08 03:57:12 +0000
committereb2008-05-08 03:57:12 +0000
commitea185b2e2522be5abccf992e993dbf905194f33b (patch)
tree2587d6f83aef565ffc23bd55d9034abbb7287f4d /gr-gcell
parent642d5860b15175e4540f59afccb1ab20d8bc7d1f (diff)
downloadgnuradio-ea185b2e2522be5abccf992e993dbf905194f33b.tar.gz
gnuradio-ea185b2e2522be5abccf992e993dbf905194f33b.tar.bz2
gnuradio-ea185b2e2522be5abccf992e993dbf905194f33b.zip
avoid possible log2 confusion
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8317 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gr-gcell')
-rw-r--r--gr-gcell/src/gcell_fft_vcc.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-gcell/src/gcell_fft_vcc.cc b/gr-gcell/src/gcell_fft_vcc.cc
index 0491db9ab..b53f0c330 100644
--- a/gr-gcell/src/gcell_fft_vcc.cc
+++ b/gr-gcell/src/gcell_fft_vcc.cc
@@ -45,7 +45,7 @@ is_power_of_2(int x)
}
static int
-log2(int x) // x is an exact power of 2
+int_log2(int x) // x is an exact power of 2
{
for (int i = 0; i < 32; i++)
if (x == (1 << i))
@@ -88,7 +88,7 @@ gcell_fft_vcc::gcell_fft_vcc (int fft_size, bool forward,
throw std::invalid_argument("fft_size too big to use window");
}
- d_log2_fft_size = log2(fft_size);
+ d_log2_fft_size = int_log2(fft_size);
d_mgr = gc_job_manager::singleton(); // grab the singleton job manager
d_twiddle_boost = gc_aligned_alloc_sptr(sizeof(std::complex<float>) * fft_size/4, 128);
d_twiddle = (std::complex<float>*) d_twiddle_boost.get();