From: Gordon K. <kin...@us...> - 2007-04-23 08:57:38
|
Update of /cvsroot/teem/teem/src/ell In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv4776 Modified Files: ellMacros.h Log Message: added ELL_2V_COPY and ELL_4V_INCR Index: ellMacros.h =================================================================== RCS file: /cvsroot/teem/teem/src/ell/ellMacros.h,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** ellMacros.h 1 Feb 2006 17:25:05 -0000 1.62 --- ellMacros.h 23 Apr 2007 08:57:38 -0000 1.63 *************** *** 93,96 **** --- 93,99 ---- ((v)[0]=(a), (v)[1]=(b)) + #define ELL_2V_COPY(v2, v1) \ + ((v2)[0] = (v1)[0], (v2)[1] = (v1)[1]) + #define ELL_2V_DOT(v1, v2) ((v1)[0]*(v2)[0] + (v1)[1]*(v2)[1]) *************** *** 549,552 **** --- 552,561 ---- (v2)[3] = AIR_CAST(TT, (v1)[3])) + #define ELL_4V_INCR(v2, v1) \ + ((v2)[0] += (v1)[0], \ + (v2)[1] += (v1)[1], \ + (v2)[2] += (v1)[2], \ + (v2)[3] += (v1)[3]) + #define ELL_4V_ADD2(v3, v1, v2) \ ((v3)[0] = (v1)[0] + (v2)[0], \ |