Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qa_complex_dotprod_x86.h

Go to the documentation of this file.
00001 /* -*- c++ -*- */
00002 /*
00003  * Copyright 2002 Free Software Foundation, Inc.
00004  * 
00005  * This file is part of GNU Radio
00006  * 
00007  * GNU Radio is free software; you can redistribute it and/or modify
00008  * it under the terms of the GNU General Public License as published by
00009  * the Free Software Foundation; either version 2, or (at your option)
00010  * any later version.
00011  * 
00012  * GNU Radio is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015  * GNU General Public License for more details.
00016  * 
00017  * You should have received a copy of the GNU General Public License
00018  * along with GNU Radio; see the file COPYING.  If not, write to
00019  * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA 02111-1307, USA.
00021  */
00022 #ifndef _QA_COMPLEX_DOTPROD_X86_H_
00023 #define _QA_COMPLEX_DOTPROD_X86_H_
00024 
00025 #include <cppunit/TestCase.h>
00026 #include <cppunit/TestCaller.h>
00027 #include <cppunit/TestSuite.h>
00028 #include <cppunit/TextTestResult.h>
00029 
00030 class qa_complex_dotprod_x86 : public CppUnit::TestCase {
00031 
00032  public:
00033 
00034   static void register_tests (CppUnit::TestSuite *suite)
00035   {
00036     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00037                     ("complex_dotprod_x86: t1_3dnowext", &qa_complex_dotprod_x86::t1_3dnowext));
00038     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00039                     ("complex_dotprod_x86: t2_3dnowext", &qa_complex_dotprod_x86::t2_3dnowext));
00040     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00041                     ("complex_dotprod_x86: t3_3dnowext", &qa_complex_dotprod_x86::t3_3dnowext));
00042 
00043     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00044                     ("complex_dotprod_x86: t1_3dnow", &qa_complex_dotprod_x86::t1_3dnow));
00045     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00046                     ("complex_dotprod_x86: t2_3dnow", &qa_complex_dotprod_x86::t2_3dnow));
00047     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00048                     ("complex_dotprod_x86: t3_3dnow", &qa_complex_dotprod_x86::t3_3dnow));
00049 
00050     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00051                     ("complex_dotprod_x86: t1_sse", &qa_complex_dotprod_x86::t1_sse));
00052     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00053                     ("complex_dotprod_x86: t2_sse", &qa_complex_dotprod_x86::t2_sse));
00054     suite->addTest (new CppUnit::TestCaller<qa_complex_dotprod_x86>
00055                     ("complex_dotprod_x86: t3_sse", &qa_complex_dotprod_x86::t3_sse));
00056   }
00057 
00058   void setUp            ();
00059   void tearDown         ();
00060 
00061  private:
00062 
00063   typedef void (*complex_dotprod_t)(const short *input,
00064                                    const float *taps,
00065                                    unsigned n_2_complex_blocks,
00066                                    float *result);
00067 
00068   void t1_base (complex_dotprod_t);
00069   void t2_base (complex_dotprod_t);
00070   void t3_base (complex_dotprod_t);
00071 
00072   void t1_3dnowext ();
00073   void t2_3dnowext ();
00074   void t3_3dnowext ();
00075   void t1_3dnow ();
00076   void t2_3dnow ();
00077   void t3_3dnow ();
00078   void t1_sse ();
00079   void t2_sse ();
00080   void t3_sse ();
00081   
00082   void zb ();
00083 
00084   float *taps;          // 16-byte aligned
00085   short *input;         // 16-byte aligned
00086 
00087 };
00088 
00089 
00090 #endif /* _QA_COMPLEX_DOTPROD_X86_H_ */

Generated on Tue Mar 15 23:55:33 2005 for GNU Radio by  doxygen 1.4.0