[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r8317 - gnuradio/trunk/gr-gcell/src
From: |
eb |
Subject: |
[Commit-gnuradio] r8317 - gnuradio/trunk/gr-gcell/src |
Date: |
Wed, 7 May 2008 21:57:13 -0600 (MDT) |
Author: eb
Date: 2008-05-07 21:57:12 -0600 (Wed, 07 May 2008)
New Revision: 8317
Modified:
gnuradio/trunk/gr-gcell/src/gcell_fft_vcc.cc
Log:
avoid possible log2 confusion
Modified: gnuradio/trunk/gr-gcell/src/gcell_fft_vcc.cc
===================================================================
--- gnuradio/trunk/gr-gcell/src/gcell_fft_vcc.cc 2008-05-08 03:37:28 UTC
(rev 8316)
+++ gnuradio/trunk/gr-gcell/src/gcell_fft_vcc.cc 2008-05-08 03:57:12 UTC
(rev 8317)
@@ -45,7 +45,7 @@
}
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 @@
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();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r8317 - gnuradio/trunk/gr-gcell/src,
eb <=