/************************************************************************ ************************************************************************ FAUST Architecture File Copyright (C) 2003-2011 GRAME, Centre National de Creation Musicale --------------------------------------------------------------------- This Architecture section is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; If not, see . ************************************************************************ ************************************************************************/ #ifndef __misc__ #define __misc__ #include #include #include #include "faust/gui/meta.h" struct XXXX_Meta : std::map { void declare(const char* key, const char* value) { (*this)[key]=value; } }; struct MY_Meta : Meta, std::map { void declare(const char* key, const char* value) { (*this)[key]=value; } }; inline int lsr(int x, int n) { return int(((unsigned int)x) >> n); } inline int int2pow2(int x) { int r=0; while ((1<