summaryrefslogtreecommitdiff
path: root/gcell/src/lib/wrapper/qa_gcell_general.h
diff options
context:
space:
mode:
authoreb2008-05-04 06:45:19 +0000
committereb2008-05-04 06:45:19 +0000
commitd5e5244a9ce8c5c3847c133c1107fba2af0e90c3 (patch)
tree3e4c894861ad17e9a7fd37416126fb69cef26983 /gcell/src/lib/wrapper/qa_gcell_general.h
parentb1f675f291e9bcae640bd6fcb6707d50951f0268 (diff)
downloadgnuradio-d5e5244a9ce8c5c3847c133c1107fba2af0e90c3.tar.gz
gnuradio-d5e5244a9ce8c5c3847c133c1107fba2af0e90c3.tar.bz2
gnuradio-d5e5244a9ce8c5c3847c133c1107fba2af0e90c3.zip
Merged eb/gcell-wip -r8302:8307 into trunk. This changeset includes
an example of SPE assembler (memset.S), a new file of macros for use with SPE assembler (gc_spu_macs.h), and an extended QA framework. The easy to use QA framework adds support for SPE utility code that's usually not called from the PPE, such as memset. See qa_gcell_general.{h,cc} and qa_memset.c for example usage. memset achieves 44GB/s on the SPE. That's within 3% of ideal. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@8308 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gcell/src/lib/wrapper/qa_gcell_general.h')
-rw-r--r--gcell/src/lib/wrapper/qa_gcell_general.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/gcell/src/lib/wrapper/qa_gcell_general.h b/gcell/src/lib/wrapper/qa_gcell_general.h
new file mode 100644
index 000000000..f1e64e717
--- /dev/null
+++ b/gcell/src/lib/wrapper/qa_gcell_general.h
@@ -0,0 +1,40 @@
+/* -*- c++ -*- */
+/*
+ * Copyright 2008 Free Software Foundation, Inc.
+ *
+ * This file is part of GNU Radio
+ *
+ * GNU Radio is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 3, or (at your option)
+ * any later version.
+ *
+ * GNU Radio is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+#ifndef INCLUDED_QA_GCELL_GENERAL_H
+#define INCLUDED_QA_GCELL_GENERAL_H
+
+#include <cppunit/extensions/HelperMacros.h>
+#include <cppunit/TestCase.h>
+
+class qa_gcell_general : public CppUnit::TestCase {
+
+ CPPUNIT_TEST_SUITE(qa_gcell_general);
+ CPPUNIT_TEST(test_memset);
+ CPPUNIT_TEST_SUITE_END();
+
+ private:
+ void test_memset();
+
+ bool generic_test_body(const std::string &proc_name);
+};
+
+#endif /* INCLUDED_QA_GCELL_GENERAL_H */