diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-12-21 14:54:53 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2005-12-21 14:54:53 +0000 |
commit | b7d51f55367bebf34b83553675d4c37bc7c32e9b (patch) | |
tree | c739aa359cedb7c5cb3f71faa2c5cf3d91608585 | |
parent | 1eaecc5ded6201de9722c147a70270234aa611f1 (diff) |
added some macros for SIMD
svn path=/trunk/externals/zexy/; revision=4273
-rw-r--r-- | src/zexy.h | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -49,6 +49,16 @@ #endif #include "m_pd.h" + +#ifdef __SSE__ +# include <xmmintrin.h> +# 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 <math.h> #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 |