diff options
author | Nick Foster | 2010-12-14 17:13:40 -0800 |
---|---|---|
committer | Nick Foster | 2010-12-14 17:13:40 -0800 |
commit | 2e9a7d350713b4e1b21458db8f3fce8a557858ae (patch) | |
tree | d053a4f2305f5a78f389196f6af943e812ab3880 /volk/lib/qa_32s_and_aligned16.cc | |
parent | d8031649fa3186d7e6b000dcfaa349deacf51262 (diff) | |
download | gnuradio-2e9a7d350713b4e1b21458db8f3fce8a557858ae.tar.gz gnuradio-2e9a7d350713b4e1b21458db8f3fce8a557858ae.tar.bz2 gnuradio-2e9a7d350713b4e1b21458db8f3fce8a557858ae.zip |
Volk: Added QA tests for all the Orc stuff. Added a 16u_byteswap but it's broken right now.
Diffstat (limited to 'volk/lib/qa_32s_and_aligned16.cc')
-rw-r--r-- | volk/lib/qa_32s_and_aligned16.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/volk/lib/qa_32s_and_aligned16.cc b/volk/lib/qa_32s_and_aligned16.cc index 72d05cf6f..5720ee869 100644 --- a/volk/lib/qa_32s_and_aligned16.cc +++ b/volk/lib/qa_32s_and_aligned16.cc @@ -25,6 +25,7 @@ void qa_32s_and_aligned16::t1() { int32_t output0[vlen] __attribute__ ((aligned (16))); int32_t output01[vlen] __attribute__ ((aligned (16))); + int32_t output02[vlen] __attribute__ ((aligned (16))); for(int i = 0; i < vlen; ++i) { input0[i] = ((int32_t) (rand() - (RAND_MAX/2))); @@ -41,6 +42,13 @@ void qa_32s_and_aligned16::t1() { printf("generic_time: %f\n", total); start = clock(); for(int count = 0; count < ITERS; ++count) { + volk_32s_and_aligned16_manual(output02, input0, input1, 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_32s_and_aligned16_manual(output01, input0, input1, vlen, "sse"); } end = clock(); @@ -54,6 +62,7 @@ void qa_32s_and_aligned16::t1() { for(int i = 0; i < vlen; ++i) { //printf("%d...%d\n", output0[i], output01[i]); CPPUNIT_ASSERT_EQUAL(output0[i], output01[i]); + CPPUNIT_ASSERT_EQUAL(output0[i], output02[i]); } } |