Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16421
Modified Files: Tag: devel_0_39 d_math.c Log Message: [rsqrt~] : long might be bigger than float; changing to int
Index: d_math.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_math.c,v retrieving revision 1.2.4.2 retrieving revision 1.2.4.2.2.1 diff -C2 -d -r1.2.4.2 -r1.2.4.2.2.1 *** d_math.c 10 Nov 2004 21:53:02 -0000 1.2.4.2 --- d_math.c 12 Sep 2005 03:17:15 -0000 1.2.4.2.2.1 *************** *** 84,88 **** float f; long l = (i ? (i == DUMTAB1SIZE-1 ? DUMTAB1SIZE-2 : i) : 1)<< 23; ! *(long *)(&f) = l; rsqrt_exptab[i] = 1./sqrt(f); } --- 84,88 ---- float f; long l = (i ? (i == DUMTAB1SIZE-1 ? DUMTAB1SIZE-2 : i) : 1)<< 23; ! *(int *)(&f) = l; rsqrt_exptab[i] = 1./sqrt(f); }