Update of /cvsroot/pure-data/externals/zexy/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15410
Modified Files: zexy.h Log Message: added some macros for SIMD
Index: zexy.h =================================================================== RCS file: /cvsroot/pure-data/externals/zexy/src/zexy.h,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** zexy.h 21 Dec 2005 09:53:24 -0000 1.14 --- zexy.h 21 Dec 2005 14:54:53 -0000 1.15 *************** *** 50,53 **** --- 50,63 ----
#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>
*************** *** 115,119 **** * so we make it simpler: on older version we just shut up! */ ! # define z_verbose #endif
--- 125,129 ---- * so we make it simpler: on older version we just shut up! */ ! # define z_verboseab #endif