GNU Radio 3.6.4.2 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 #include <stdbool.h> 00029 #include <stdlib.h> 00030 00031 __VOLK_DECL_BEGIN 00032 00033 struct volk_machine { 00034 const unsigned int caps; //capabilities (i.e., archs compiled into this machine, in the volk_get_lvarch format) 00035 const char *name; 00036 const size_t alignment; //the maximum byte alignment required for functions in this library 00037 #for $kern in $kernels 00038 const char *$(kern.name)_name; 00039 const char *$(kern.name)_impl_names[$(len($archs))]; 00040 const int $(kern.name)_impl_deps[$(len($archs))]; 00041 const bool $(kern.name)_impl_alignment[$(len($archs))]; 00042 const $(kern.pname) $(kern.name)_impls[$(len($archs))]; 00043 const size_t $(kern.name)_n_impls; 00044 #end for 00045 }; 00046 00047 #for $machine in $machines 00048 #ifdef LV_MACHINE_$(machine.name.upper()) 00049 extern struct volk_machine volk_machine_$(machine.name); 00050 #endif 00051 #end for 00052 00053 __VOLK_DECL_END 00054 00055 #endif //INCLUDED_LIBVOLK_MACHINES_H