Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14898
Modified Files: Tag: devel_0_37 d_dac.c Log Message: simd instructions for dac summing
Index: d_dac.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_dac.c,v retrieving revision 1.1.1.2.2.5 retrieving revision 1.1.1.2.2.6 diff -C2 -d -r1.1.1.2.2.5 -r1.1.1.2.2.6 *** d_dac.c 23 Dec 2003 01:15:39 -0000 1.1.1.2.2.5 --- d_dac.c 9 Oct 2004 11:58:53 -0000 1.1.1.2.2.6 *************** *** 54,60 **** if ((*sp2)->s_n != DEFDACBLKSIZE) error("dac~: bad vector size"); ! else if (ch >= 0 && ch < sys_get_outchannels()) ! dsp_add(plus_perform, 4, sys_soundout + DEFDACBLKSIZE*ch, ! (*sp2)->s_vec, sys_soundout + DEFDACBLKSIZE*ch, DEFDACBLKSIZE); } } --- 54,66 ---- if ((*sp2)->s_n != DEFDACBLKSIZE) error("dac~: bad vector size"); ! else ! if (ch >= 0 && ch < sys_get_outchannels()) ! if(SIMD_CHECK3(DEFDACBLKSIZE,sys_soundout + DEFDACBLKSIZE*ch, ! (*sp2)->s_vec,sys_soundout + DEFDACBLKSIZE*ch)) ! dsp_add(plus_perf_simd, 4, sys_soundout + DEFDACBLKSIZE*ch, ! (*sp2)->s_vec, sys_soundout + DEFDACBLKSIZE*ch, DEFDACBLKSIZE); ! else ! dsp_add(plus_perform, 4, sys_soundout + DEFDACBLKSIZE*ch, ! (*sp2)->s_vec, sys_soundout + DEFDACBLKSIZE*ch, DEFDACBLKSIZE); } }