|
From: <kin...@us...> - 2004-03-08 14:56:20
|
Update of /cvsroot/teem/teem/src/ell In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29468 Modified Files: ellMacros.h Log Message: some more macros Index: ellMacros.h =================================================================== RCS file: /cvsroot/teem/teem/src/ell/ellMacros.h,v retrieving revision 1.40 retrieving revision 1.41 diff -C2 -d -r1.40 -r1.41 *** ellMacros.h 1 Mar 2004 10:19:44 -0000 1.40 --- ellMacros.h 8 Mar 2004 14:39:48 -0000 1.41 *************** *** 757,760 **** --- 757,787 ---- (v2)[6] = (v1)[6]) + #define ELL_9V_SET(v, a, b, c, d, e, f, g, h, i) \ + ((v)[0]=(a), (v)[1]=(b), (v)[2]=(c), \ + (v)[3]=(d), (v)[4]=(e), (v)[5]=(f), \ + (v)[6]=(g), (v)[7]=(h), (v)[8]=(i)) + + #define ELL_9V_COPY(v2, v1) \ + ((v2)[0] = (v1)[0], \ + (v2)[1] = (v1)[1], \ + (v2)[2] = (v1)[2], \ + (v2)[3] = (v1)[3], \ + (v2)[4] = (v1)[4], \ + (v2)[5] = (v1)[5], \ + (v2)[6] = (v1)[6], \ + (v2)[7] = (v1)[7], \ + (v2)[8] = (v1)[8]) + + #define ELL_9V_DOT(v1, v2) \ + ((v1)[0]*(v2)[0] + \ + (v1)[1]*(v2)[1] + \ + (v1)[2]*(v2)[2] + \ + (v1)[3]*(v2)[3] + \ + (v1)[4]*(v2)[4] + \ + (v1)[5]*(v2)[5] + \ + (v1)[6]*(v2)[6] + \ + (v1)[7]*(v2)[7] + \ + (v1)[8]*(v2)[8]) + #ifdef __cplusplus } |