diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-10-30 09:21:36 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2007-10-30 09:21:36 +0000 |
commit | 6d61e2a46722b75c1a3734e3419ee2886b11b2b3 (patch) | |
tree | 1647b83b0857c4731ce05e6d1208413b939c08c6 /src | |
parent | 21ff032fa838b3aa2adf2db77ce2a27d12813c4b (diff) |
added a macro for type-checking
svn path=/trunk/externals/zexy/; revision=8906
Diffstat (limited to 'src')
-rw-r--r-- | src/zexy.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -55,7 +55,6 @@ # 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> @@ -88,6 +87,8 @@ #define ZEXY_USEVAR(x) x=x +#define ZEXY_TYPE_EQUAL(type1, type2) (sizeof(type1) == sizeof(type2)) + typedef struct _mypdlist { t_object x_obj; |