summaryrefslogtreecommitdiff
path: root/volk/lib/qa_16sc_deinterleave_32f_aligned16.cc
diff options
context:
space:
mode:
authorNick Foster2010-12-17 11:14:41 -0800
committerNick Foster2010-12-17 11:14:41 -0800
commitc6fff77de9b686761f93f0e1de237f8543f5e919 (patch)
tree91e8927ba4a30db3d6b93d6b14489b733b23eecb /volk/lib/qa_16sc_deinterleave_32f_aligned16.cc
parent15ad4b5398e474bfb52fdb7e826b69f3e398c0b0 (diff)
downloadgnuradio-c6fff77de9b686761f93f0e1de237f8543f5e919.tar.gz
gnuradio-c6fff77de9b686761f93f0e1de237f8543f5e919.tar.bz2
gnuradio-c6fff77de9b686761f93f0e1de237f8543f5e919.zip
Volk: A bunch of new Orc routines plus a couple of build changes.
32fc_magnitude_16s fails test_all right now.
Diffstat (limited to 'volk/lib/qa_16sc_deinterleave_32f_aligned16.cc')
-rw-r--r--volk/lib/qa_16sc_deinterleave_32f_aligned16.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/volk/lib/qa_16sc_deinterleave_32f_aligned16.cc b/volk/lib/qa_16sc_deinterleave_32f_aligned16.cc
index 6ee076998..45100206d 100644
--- a/volk/lib/qa_16sc_deinterleave_32f_aligned16.cc
+++ b/volk/lib/qa_16sc_deinterleave_32f_aligned16.cc
@@ -26,6 +26,8 @@ void qa_16sc_deinterleave_32f_aligned16::t1() {
float output_generic1[vlen] __attribute__ ((aligned (16)));
float output_sse2[vlen] __attribute__ ((aligned (16)));
float output_sse21[vlen] __attribute__ ((aligned (16)));
+ float output_orc[vlen] __attribute__ ((aligned (16)));
+ float output_orc1[vlen] __attribute__ ((aligned (16)));
int16_t* loadInput = (int16_t*)input0;
for(int i = 0; i < vlen*2; ++i) {
@@ -42,6 +44,13 @@ void qa_16sc_deinterleave_32f_aligned16::t1() {
printf("generic_time: %f\n", total);
start = clock();
for(int count = 0; count < ITERS; ++count) {
+ volk_16sc_deinterleave_32f_aligned16_manual(output_orc, output_orc1, 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_16sc_deinterleave_32f_aligned16_manual(output_sse2, output_sse21, input0, 32768.0, vlen, "sse");
}
end = clock();
@@ -57,6 +66,8 @@ void qa_16sc_deinterleave_32f_aligned16::t1() {
//printf("%d...%d\n", output0[i], output01[i]);
CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_sse2[i], fabs(output_generic[i])*1e-4);
CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic1[i], output_sse21[i], fabs(output_generic1[i])*1e-4);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic[i], output_orc[i], fabs(output_generic[i])*1e-4);
+ CPPUNIT_ASSERT_DOUBLES_EQUAL(output_generic1[i], output_orc1[i], fabs(output_generic1[i])*1e-4);
}
}