Revert "gnuradio-core: allows configuring FFTW to use ESTIMATE vs. MEASURE"
authorJohnathan Corgan <jcorgan@corganenterprises.com>
Mon, 2 Aug 2010 23:13:07 +0000 (16:13 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Mon, 2 Aug 2010 23:13:07 +0000 (16:13 -0700)
This reverts commit f23a2b33ca1bebf0c3a5fa26fdcff11827744b77.

This change introduced a segfault when calling into the gr_prefs module
during the gri_fft helper class constructor.  Until this is debugged,
the functionality is being reverted.

gnuradio-core/src/lib/general/gri_fft.cc

index 1ce14eefdc5ae052aad0778e17585ed1edcd6f3f..e535f28c75ea15aecdc66f0f2caa23b9a3a36aaa 100644 (file)
@@ -28,7 +28,6 @@
 #include <stdio.h>
 #include <cassert>
 #include <stdexcept>
-#include <gr_prefs.h>
 
 
 boost::mutex &
@@ -114,9 +113,7 @@ gri_fft_complex::gri_fft_complex (int fft_size, bool forward)
                              reinterpret_cast<fftwf_complex *>(d_inbuf), 
                              reinterpret_cast<fftwf_complex *>(d_outbuf),
                              forward ? FFTW_FORWARD : FFTW_BACKWARD,
-                             gr_prefs::singleton()->get_bool("fftw", "estimate", false) == true ? FFTW_ESTIMATE
-                             : FFTW_MEASURE);
-
+                             FFTW_MEASURE);
 
   if (d_plan == NULL) {
     fprintf(stderr, "gri_fft_complex: error creating plan\n");
@@ -168,8 +165,7 @@ gri_fft_real_fwd::gri_fft_real_fwd (int fft_size)
   d_plan = fftwf_plan_dft_r2c_1d (fft_size,
                                  d_inbuf,
                                  reinterpret_cast<fftwf_complex *>(d_outbuf),
-                                 gr_prefs::singleton()->get_bool("fftw", "estimate", false) == true ? FFTW_ESTIMATE
-                             : FFTW_MEASURE);
+                                 FFTW_MEASURE);
 
   if (d_plan == NULL) {
     fprintf(stderr, "gri_fft_real_fwd: error creating plan\n");