X-Git-Url: https://scm.cri.ensmp.fr/git/Faustine.git/blobdiff_plain/1059e1cc0c2ecfa237406949aa26155b6a5b9154:/interpretor/preprocessor/faust-0.9.47mr3/architecture/misc.h..66f23d4fabf89ad09adbd4dfc15ac6b5b2b7da83:/interpreter/preprocessor/faust-0.9.47mr3/architecture/static/git-favicon.png diff --git a/interpretor/preprocessor/faust-0.9.47mr3/architecture/misc.h b/interpretor/preprocessor/faust-0.9.47mr3/architecture/misc.h deleted file mode 100644 index 900643a..0000000 --- a/interpretor/preprocessor/faust-0.9.47mr3/architecture/misc.h +++ /dev/null @@ -1,57 +0,0 @@ - -#ifndef __misc__ -#define __misc__ - -#include -#include -#include - -// On Intel set FZ (Flush to Zero) and DAZ (Denormals Are Zero) -// flags to avoid costly denormals -#ifdef __SSE__ - #include - #ifdef __SSE2__ - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8040) - #else - #define AVOIDDENORMALS _mm_setcsr(_mm_getcsr() | 0x8000) - #endif -#else - #define AVOIDDENORMALS -#endif - -struct XXXX_Meta : std::map -{ - void declare (const char* key, const char* value) { (*this)[key]=value; } -}; - -struct Meta -{ - virtual void declare (const char* key, const char* value) = 0; -}; - -struct MY_Meta : Meta, std::map -{ - void declare (const char* key, const char* value) { (*this)[key]=value; } -}; - -#define max(x,y) (((x)>(y)) ? (x) : (y)) -#define min(x,y) (((x)<(y)) ? (x) : (y)) - -inline int lsr (int x, int n) { return int(((unsigned int)x) >> n); } -inline int int2pow2 (int x) { int r=0; while ((1<