commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r9480 - gnuradio/branches/developers/michaelld/memalig


From: michaelld
Subject: [Commit-gnuradio] r9480 - gnuradio/branches/developers/michaelld/memalign/gnuradio-core/src/lib/filter
Date: Mon, 1 Sep 2008 17:03:48 -0600 (MDT)

Author: michaelld
Date: 2008-09-01 17:03:47 -0600 (Mon, 01 Sep 2008)
New Revision: 9480

Modified:
   
gnuradio/branches/developers/michaelld/memalign/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
Log:
Removed debugging.



Modified: 
gnuradio/branches/developers/michaelld/memalign/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
===================================================================
--- 
gnuradio/branches/developers/michaelld/memalign/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
  2008-09-01 22:55:27 UTC (rev 9479)
+++ 
gnuradio/branches/developers/michaelld/memalign/gnuradio-core/src/lib/filter/gr_fir_fff_altivec.cc
  2008-09-01 23:03:47 UTC (rev 9480)
@@ -61,26 +61,17 @@
     free(d_aligned_taps);
     d_aligned_taps = 0;
   }
-#if 1
   void *p;
   int r = gr_posix_memalign(&p,  sizeof(vec_float4), d_naligned_taps * 
sizeof(d_aligned_taps[0]));
   if (r != 0){
     throw std::bad_alloc();
   }
   d_aligned_taps = (float *) p;
-#else
-  d_aligned_taps = (float *) valloc (d_naligned_taps * 
sizeof(d_aligned_taps[0]));
-  if (d_aligned_taps == 0){
-    throw std::bad_alloc();
-  }
-#endif
-
   memcpy(d_aligned_taps, &d_taps[0], ntaps() * sizeof(d_aligned_taps[0]));
   for (size_t i = ntaps(); i < d_naligned_taps; i++)
     d_aligned_taps[i] = 0.0;
 }
 
-
 float 
 gr_fir_fff_altivec::filter (const float input[])
 {





reply via email to

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