On Sat, Jan 17, 2009 at 04:44:35AM +0000, Jacob Meuser wrote: > On Fri, Jan 16, 2009 at 08:29:39PM -0800, patrick keshishian wrote:
> > fails on macppc. > > #ifdef ASM_F2I_YES > > #define F2I(f,i) __asm__ __volatile__ ("fistpl %0" : "=m" (i) : "t" > > (f-0.4999999 > > 9) : "st") ; > > #else > > #define F2I(f,i) (i)=((f>0) ? ( (int)(f) ) :( (int)(f-1.0) )); > > #endif > > Does that help ... a little? > led me to this interesting paper: > > http://www.cs.cmu.edu/~poladian/arch/project/report_ning_poladian.htm which led me to this, which says to use lrintf: http://mega-nerd.com/FPcast/ so, here's a version thst uses lrintf instead of assembly. I didn't find any other uses of assembly. -- jake...@sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org
zynaddsubfx-2.2.1-port.tgz
Description: application/tar-gz