From b7d51f55367bebf34b83553675d4c37bc7c32e9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Wed, 21 Dec 2005 14:54:53 +0000 Subject: added some macros for SIMD svn path=/trunk/externals/zexy/; revision=4273 --- src/zexy.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/zexy.h b/src/zexy.h index 87dad24..9b0f295 100644 --- a/src/zexy.h +++ b/src/zexy.h @@ -49,6 +49,16 @@ #endif #include "m_pd.h" + +#ifdef __SSE__ +# include +# define Z_SIMD_BLOCK 16 /* must be a power of 2 */ +# define Z_SIMD_BYTEALIGN (128/8) /* assume 128 bits */ +# define Z_SIMD_CHKBLOCKSIZE(n) (!(n&(Z_SIMD_BLOCK-1))) +# define Z_SIMD_CHKALIGN(ptr) ( ((unsigned long)(ptr) & (Z_SIMD_BYTEALIGN-1)) == 0 ) + +#endif /* __SSE__ */ + #include #define VERSION "2.1" @@ -114,7 +124,7 @@ static void zexy_register(char*object){} * * so we make it simpler: on older version we just shut up! */ -# define z_verbose +# define z_verboseab #endif -- cgit v1.2.1