aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-21 14:54:53 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2005-12-21 14:54:53 +0000
commitb7d51f55367bebf34b83553675d4c37bc7c32e9b (patch)
treec739aa359cedb7c5cb3f71faa2c5cf3d91608585
parent1eaecc5ded6201de9722c147a70270234aa611f1 (diff)
added some macros for SIMD
svn path=/trunk/externals/zexy/; revision=4273
-rw-r--r--src/zexy.h12
1 files changed, 11 insertions, 1 deletions
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 <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