gnuradio-core: add ASSERTs for proper alignment debian-gcc-4.4.4-test
authorJohnathan Corgan <jcorgan@corganenterprises.com>
Wed, 14 Jul 2010 01:22:50 +0000 (18:22 -0700)
committerJohnathan Corgan <jcorgan@corganenterprises.com>
Wed, 14 Jul 2010 01:22:50 +0000 (18:22 -0700)
gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc

index 25083bb2b03ad4ec5dedcd047b74b968d08841aa..b84b590ac7e36fcdffce296e94d8fa13ba7efbc7 100644 (file)
@@ -109,6 +109,7 @@ test_random_io (fir_maker_t maker)
   const int    INPUT_LEN       = MAX_TAPS + OUTPUT_LEN;
 
   i_type        input_raw[INPUT_LEN + 4*16/sizeof(i_type)];
+  CPPUNIT_ASSERT(((intptr_t) input_raw & 0x3) == 0);
   memset(input_raw, 0, sizeof(input_raw));
   i_type       *input = &input_raw[2*16/sizeof(i_type)];
 
index 60ba760973375af687d3de78fe41ba2c8169682d..74de6dac1c98fefd6076d3411bdce3d32b8f6d0e 100644 (file)
@@ -148,9 +148,11 @@ test_random_io (fir_maker_t maker)
   const int    INPUT_LEN       = MAX_TAPS + OUTPUT_LEN;
 
   i_type        input_raw[INPUT_LEN + 4*16/sizeof(i_type)];
+  CPPUNIT_ASSERT(((intptr_t) input_raw & 0x3) == 0);
   memset(input_raw, 0, sizeof(input_raw));
   i_type       *input = &input_raw[2*16/sizeof(i_type)];
 
+
   o_type       expected_output[OUTPUT_LEN];
   o_type       actual_output[OUTPUT_LEN];
   tap_type     taps[MAX_TAPS];
index 21e0da60eff23e5d2daa6bf5177721f9c33cd4e8..21b821043ee90c84b110f1f1f086ee3dcff28a15 100644 (file)
@@ -107,6 +107,7 @@ test_random_io (fir_maker_t maker)
   const int    INPUT_LEN       = MAX_TAPS + OUTPUT_LEN;
 
   i_type        input_raw[INPUT_LEN + 4*16/sizeof(i_type)];
+  CPPUNIT_ASSERT(((intptr_t) input_raw & 0x3) == 0);
   memset(input_raw, 0, sizeof(input_raw));
   i_type       *input = &input_raw[2*16/sizeof(i_type)];
 
index a4deafb914255f11ed5def96b6a4a21713bb3822..2047f99d06ed483197751a51d3f24f2d2c319343 100644 (file)
@@ -44,6 +44,7 @@ qa_gri_mmse_fir_interpolator::t1 ()
   static const unsigned        N = 100;
 
   float input_raw[N + 10 + 4*16/sizeof(float)];
+  CPPUNIT_ASSERT(((intptr_t) input_raw & 0x3) == 0);
   memset(input_raw, 0, sizeof(input_raw));
   float *input = &input_raw[2*16/sizeof(float)];