Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11657
Modified Files: Tag: devel_0_38 m_simd.c Log Message: adding zerovec function
Index: m_simd.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/Attic/m_simd.c,v retrieving revision 1.1.4.6 retrieving revision 1.1.4.7 diff -C2 -d -r1.1.4.6 -r1.1.4.7 *** m_simd.c 23 Jan 2005 21:11:43 -0000 1.1.4.6 --- m_simd.c 8 Apr 2005 12:39:33 -0000 1.1.4.7 *************** *** 43,46 **** --- 43,53 ---- }
+ void zerovec(t_float *dst, int n) + { + while(n--) + *dst++ = 0; + } + + void addvec(t_float *dst,const t_float *src,int n) { *************** *** 91,114 ****
- /* float sumvec_8(t_float* in, t_int n) */ - /* { */ - /* int i; */ - /* float result = 0; */ - - /* n>>=3; */ - /* for (i = 0; i != n; ++i) */ - /* { */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* result += *in++; */ - /* } */ - /* return result; */ - /* } */ -
#ifdef DONTUSESIMD --- 98,101 ---- *************** *** 154,161 **** }
- /* float sumvec_simd(t_float* in, t_int n) */ - /* { */ - /* return sumvec_8(in,n); */ - /* } */
#endif /* DONTUSESIMD */ --- 141,144 ----