diff options
author | Nick Foster | 2010-12-15 16:27:42 -0800 |
---|---|---|
committer | Nick Foster | 2010-12-15 16:27:42 -0800 |
commit | 15ad4b5398e474bfb52fdb7e826b69f3e398c0b0 (patch) | |
tree | 1258d6349de630194341bdaab76628a9f9cc9ec2 /volk/lib/qa_32fc_magnitude_16s_aligned16.cc | |
parent | f9ee6a55cb397f9302769a25a8c959fa162354f0 (diff) | |
download | gnuradio-15ad4b5398e474bfb52fdb7e826b69f3e398c0b0.tar.gz gnuradio-15ad4b5398e474bfb52fdb7e826b69f3e398c0b0.tar.bz2 gnuradio-15ad4b5398e474bfb52fdb7e826b69f3e398c0b0.zip |
Volk: A bunch of new ORC routines plus tests.
Also fixed a typo in the generic version of 16sc_magnitude_16s_a16.
Diffstat (limited to 'volk/lib/qa_32fc_magnitude_16s_aligned16.cc')
-rw-r--r-- | volk/lib/qa_32fc_magnitude_16s_aligned16.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/volk/lib/qa_32fc_magnitude_16s_aligned16.cc b/volk/lib/qa_32fc_magnitude_16s_aligned16.cc index a4be1616b..c3e65866b 100644 --- a/volk/lib/qa_32fc_magnitude_16s_aligned16.cc +++ b/volk/lib/qa_32fc_magnitude_16s_aligned16.cc @@ -23,6 +23,7 @@ void qa_32fc_magnitude_16s_aligned16::t1() { std::complex<float> input0[vlen] __attribute__ ((aligned (16))); int16_t output_generic[vlen] __attribute__ ((aligned (16))); + int16_t output_orc[vlen] __attribute__ ((aligned (16))); int16_t output_sse[vlen] __attribute__ ((aligned (16))); int16_t output_sse3[vlen] __attribute__ ((aligned (16))); @@ -41,6 +42,13 @@ void qa_32fc_magnitude_16s_aligned16::t1() { printf("generic_time: %f\n", total); start = clock(); for(int count = 0; count < ITERS; ++count) { + volk_32fc_magnitude_16s_aligned16_manual(output_orc, input0, 32768.0, vlen, "orc"); + } + end = clock(); + total = (double)(end-start)/(double)CLOCKS_PER_SEC; + printf("orc_time: %f\n", total); + start = clock(); + for(int count = 0; count < ITERS; ++count) { volk_32fc_magnitude_16s_aligned16_manual(output_sse, input0, 32768.0, vlen, "sse"); } end = clock(); @@ -64,6 +72,7 @@ void qa_32fc_magnitude_16s_aligned16::t1() { //printf("%d...%d\n", output0[i], output01[i]); CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_sse[i], 1.1); CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_sse3[i], 1.1); + CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_orc[i], 1.1); } } |