Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

qa_float_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_FLOAT_DOTPROD_X86_H_
00023 #define _QA_FLOAT_DOTPROD_X86_H_
00024 
00025 #include <cppunit/extensions/HelperMacros.h>
00026 #include <cppunit/TestCase.h>
00027 
00028 class qa_float_dotprod_x86 : public CppUnit::TestCase {
00029  public:
00030   void setUp            ();
00031   void tearDown         ();
00032 
00033   CPPUNIT_TEST_SUITE (qa_float_dotprod_x86);
00034   CPPUNIT_TEST (t1_3dnow);
00035   CPPUNIT_TEST (t2_3dnow);
00036   CPPUNIT_TEST (t3_3dnow);
00037   CPPUNIT_TEST (t1_sse);
00038   CPPUNIT_TEST (t2_sse);
00039   CPPUNIT_TEST (t3_sse);
00040   CPPUNIT_TEST_SUITE_END ();
00041 
00042  private:
00043 
00044   void t1_3dnow ();
00045   void t2_3dnow ();
00046   void t3_3dnow ();
00047   void t1_sse ();
00048   void t2_sse ();
00049   void t3_sse ();
00050 
00051 
00052   typedef float (*float_dotprod_t)(const float *input,
00053                                    const float *taps,
00054                                    unsigned n_4_float_blocks);
00055 
00056   void t1_base (float_dotprod_t);
00057   void t2_base (float_dotprod_t);
00058   void t3_base (float_dotprod_t);
00059 
00060   
00061   void zb ();
00062 
00063   float *taps;          // 16-byte aligned
00064   float *input;         // 16-byte aligned
00065 
00066 };
00067 
00068 
00069 #endif /* _QA_FLOAT_DOTPROD_X86_H_ */

Generated on Sat Jul 8 17:04:52 2006 for GNU Radio 2.x by  doxygen 1.4.1