GNU Radio 3.6.5 C++ API
|
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_LIBVOLK_MACHINES_H 00023 #define INCLUDED_LIBVOLK_MACHINES_H 00024 00025 #include <volk/volk_common.h> 00026 #include <volk/volk_typedefs.h> 00027 00028 __VOLK_DECL_BEGIN 00029 00030 struct volk_machine { 00031 const unsigned int caps; //capabilities (i.e., archs compiled into this machine, in the volk_get_lvarch format) 00032 const char *name; 00033 const unsigned int alignment; //the maximum byte alignment required for functions in this library 00034 #for $kern in $kernels 00035 const char *$(kern.name)_name; 00036 const char *$(kern.name)_indices[$(len($archs))]; 00037 const int $(kern.name)_arch_defs[$(len($archs))]; 00038 const $(kern.pname) $(kern.name)_archs[$(len($archs))]; 00039 const int $(kern.name)_n_archs; 00040 #end for 00041 }; 00042 00043 #for $machine in $machines 00044 #ifdef LV_MACHINE_$(machine.name.upper()) 00045 extern struct volk_machine volk_machine_$(machine.name); 00046 #endif 00047 #end for 00048 00049 __VOLK_DECL_END 00050 00051 #endif //INCLUDED_LIBVOLK_MACHINES_H