summaryrefslogtreecommitdiff
path: root/volk/lib/qa_32fc_magnitude_16s_aligned16.cc
diff options
context:
space:
mode:
authorNick Foster2010-12-15 16:27:42 -0800
committerNick Foster2010-12-15 16:27:42 -0800
commit15ad4b5398e474bfb52fdb7e826b69f3e398c0b0 (patch)
tree1258d6349de630194341bdaab76628a9f9cc9ec2 /volk/lib/qa_32fc_magnitude_16s_aligned16.cc
parentf9ee6a55cb397f9302769a25a8c959fa162354f0 (diff)
downloadgnuradio-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.cc9
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);
}
}