GNU Radio 2.x: qa_ccomplex_dotprod_x86.h Source File

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

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