GNU Radio 3.6.5 C++ API

volk.tmpl.h

Go to the documentation of this file.
00001 /*
00002  * Copyright 2011-2012 Free Software Foundation, Inc.
00003  *
00004  * This file is part of GNU Radio
00005  *
00006  * GNU Radio is free software; you can redistribute it and/or modify
00007  * it under the terms of the GNU General Public License as published by
00008  * the Free Software Foundation; either version 3, or (at your option)
00009  * any later version.
00010  *
00011  * GNU Radio is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with GNU Radio; see the file COPYING.  If not, write to
00018  * the Free Software Foundation, Inc., 51 Franklin Street,
00019  * Boston, MA 02110-1301, USA.
00020  */
00021 
00022 #ifndef INCLUDED_VOLK_RUNTIME
00023 #define INCLUDED_VOLK_RUNTIME
00024 
00025 #include <volk/volk_typedefs.h>
00026 #include <volk/volk_config_fixed.h>
00027 #include <volk/volk_common.h>
00028 #include <volk/volk_complex.h>
00029 
00030 __VOLK_DECL_BEGIN
00031 
00032 struct volk_func_desc {
00033     const char **indices;
00034     const int *arch_defs;
00035     const int n_archs;
00036 };
00037 
00038 VOLK_API unsigned int volk_get_alignment(void);
00039 
00040 #for $kern in $kernels
00041 extern VOLK_API $kern.pname $kern.name;
00042 extern VOLK_API void $(kern.name)_manual($kern.arglist_namedefs, const char* arch);
00043 extern VOLK_API struct volk_func_desc $(kern.name)_get_func_desc(void);
00044 #end for
00045 
00046 __VOLK_DECL_END
00047 
00048 #endif /*INCLUDED_VOLK_RUNTIME*/