projects
/
debian
/
gnuradio
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
27ada0c
)
gnuradio-core: add ASSERTs for proper alignment
debian-gcc-4.4.4-test
author
Johnathan Corgan
<jcorgan@corganenterprises.com>
Wed, 14 Jul 2010 01:22:50 +0000
(18:22 -0700)
committer
Johnathan 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
patch
|
blob
|
history
gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
patch
|
blob
|
history
gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
patch
|
blob
|
history
gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
patch
|
blob
|
history
diff --git
a/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
b/gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
index 25083bb2b03ad4ec5dedcd047b74b968d08841aa..b84b590ac7e36fcdffce296e94d8fa13ba7efbc7 100644
(file)
--- a/
gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
+++ b/
gnuradio-core/src/lib/filter/qa_gr_fir_fcc.cc
@@
-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)];
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)];
memset(input_raw, 0, sizeof(input_raw));
i_type *input = &input_raw[2*16/sizeof(i_type)];
diff --git
a/gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
b/gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
index 60ba760973375af687d3de78fe41ba2c8169682d..74de6dac1c98fefd6076d3411bdce3d32b8f6d0e 100644
(file)
--- a/
gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
+++ b/
gnuradio-core/src/lib/filter/qa_gr_fir_fff.cc
@@
-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)];
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)];
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];
o_type expected_output[OUTPUT_LEN];
o_type actual_output[OUTPUT_LEN];
tap_type taps[MAX_TAPS];
diff --git
a/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
b/gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
index 21e0da60eff23e5d2daa6bf5177721f9c33cd4e8..21b821043ee90c84b110f1f1f086ee3dcff28a15 100644
(file)
--- a/
gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
+++ b/
gnuradio-core/src/lib/filter/qa_gr_fir_scc.cc
@@
-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)];
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)];
memset(input_raw, 0, sizeof(input_raw));
i_type *input = &input_raw[2*16/sizeof(i_type)];
diff --git
a/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
b/gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
index a4deafb914255f11ed5def96b6a4a21713bb3822..2047f99d06ed483197751a51d3f24f2d2c319343 100644
(file)
--- a/
gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
+++ b/
gnuradio-core/src/lib/filter/qa_gri_mmse_fir_interpolator.cc
@@
-44,6
+44,7
@@
qa_gri_mmse_fir_interpolator::t1 ()
static const unsigned N = 100;
float input_raw[N + 10 + 4*16/sizeof(float)];
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)];
memset(input_raw, 0, sizeof(input_raw));
float *input = &input_raw[2*16/sizeof(float)];