commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/02: qtgui: fixed call to _a version of v


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/02: qtgui: fixed call to _a version of volk kernels for waterfall plots.
Date: Mon, 24 Feb 2014 23:41:29 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

trondeau pushed a commit to branch maint
in repository gnuradio.

commit 4c8665422db1efeea228e7d35cdf2d58b6172b03
Author: Tom Rondeau <address@hidden>
Date:   Mon Feb 24 17:50:10 2014 -0500

    qtgui: fixed call to _a version of volk kernels for waterfall plots.
    
    (same fix tha was applied to freq_sinks in bf6d843ebde3a36).
---
 gr-qtgui/lib/waterfall_sink_c_impl.cc | 15 ++++++++-------
 gr-qtgui/lib/waterfall_sink_f_impl.cc | 16 ++++++++--------
 2 files changed, 16 insertions(+), 15 deletions(-)

diff --git a/gr-qtgui/lib/waterfall_sink_c_impl.cc 
b/gr-qtgui/lib/waterfall_sink_c_impl.cc
index 9fc4f21..e3ac3cc 100644
--- a/gr-qtgui/lib/waterfall_sink_c_impl.cc
+++ b/gr-qtgui/lib/waterfall_sink_c_impl.cc
@@ -32,7 +32,7 @@
 
 namespace gr {
   namespace qtgui {
-    
+
     waterfall_sink_c::sptr
     waterfall_sink_c::make(int fftsize, int wintype,
                           double fc, double bw,
@@ -321,7 +321,8 @@ namespace gr {
     waterfall_sink_c_impl::fft(float *data_out, const gr_complex *data_in, int 
size)
     {
       if(d_window.size()) {
-       volk_32fc_32f_multiply_32fc_a(d_fft->get_inbuf(), data_in, 
&d_window.front(), size);
+       volk_32fc_32f_multiply_32fc(d_fft->get_inbuf(), data_in,
+                                    &d_window.front(), size);
       }
       else {
        memcpy(d_fft->get_inbuf(), data_in, sizeof(gr_complex)*size);
@@ -329,8 +330,8 @@ namespace gr {
 
       d_fft->execute();     // compute the fft
 
-      volk_32fc_s32f_x2_power_spectral_density_32f_a(data_out, 
d_fft->get_outbuf(),
-                                                    size, 1.0, size);
+      volk_32fc_s32f_x2_power_spectral_density_32f(data_out, 
d_fft->get_outbuf(),
+                                                   size, 1.0, size);
 
       // Perform shift operation
       unsigned int len = (unsigned int)(floor(size/2.0));
@@ -383,8 +384,8 @@ namespace gr {
          memset(d_magbufs[i], 0, newfftsize*sizeof(double));
        }
 
-       // Set new fft size and reset buffer index 
-       // (throws away any currently held data, but who cares?) 
+       // Set new fft size and reset buffer index
+       // (throws away any currently held data, but who cares?)
        d_fftsize = newfftsize;
        d_index = 0;
 
@@ -433,7 +434,7 @@ namespace gr {
               }
               //volk_32f_convert_64f_a(d_magbufs[n], d_fbuf, d_fftsize);
             }
-      
+
            d_last_time = gr::high_res_timer_now();
            d_qApplication->postEvent(d_main_gui,
                                      new WaterfallUpdateEvent(d_magbufs,
diff --git a/gr-qtgui/lib/waterfall_sink_f_impl.cc 
b/gr-qtgui/lib/waterfall_sink_f_impl.cc
index 50525f1..4164a18 100644
--- a/gr-qtgui/lib/waterfall_sink_f_impl.cc
+++ b/gr-qtgui/lib/waterfall_sink_f_impl.cc
@@ -31,7 +31,7 @@
 
 namespace gr {
   namespace qtgui {
-    
+
     waterfall_sink_f::sptr
     waterfall_sink_f::make(int fftsize, int wintype,
                           double fc, double bw,
@@ -325,14 +325,14 @@ namespace gr {
        dst[i] = data_in[i];
 
       if(d_window.size()) {
-       volk_32fc_32f_multiply_32fc_a(d_fft->get_inbuf(), dst,
-                                     &d_window.front(), size);
+       volk_32fc_32f_multiply_32fc(d_fft->get_inbuf(), dst,
+                                    &d_window.front(), size);
       }
 
       d_fft->execute();     // compute the fft
 
-      volk_32fc_s32f_x2_power_spectral_density_32f_a(data_out, 
d_fft->get_outbuf(),
-                                                    size, 1.0, size);
+      volk_32fc_s32f_x2_power_spectral_density_32f(data_out, 
d_fft->get_outbuf(),
+                                                   size, 1.0, size);
 
       // Perform shift operation
       unsigned int len = (unsigned int)(floor(size/2.0));
@@ -384,8 +384,8 @@ namespace gr {
          memset(d_magbufs[i], 0, newfftsize*sizeof(double));
        }
 
-       // Set new fft size and reset buffer index 
-       // (throws away any currently held data, but who cares?) 
+       // Set new fft size and reset buffer index
+       // (throws away any currently held data, but who cares?)
        d_fftsize = newfftsize;
        d_index = 0;
 
@@ -434,7 +434,7 @@ namespace gr {
               }
               //volk_32f_convert_64f_a(d_magbufs[n], d_fbuf, d_fftsize);
             }
-      
+
            d_last_time = gr::high_res_timer_now();
            d_qApplication->postEvent(d_main_gui,
                                      new WaterfallUpdateEvent(d_magbufs,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]