int float2int(register float in) { return (int)in; } Begin forwarded message:
> From: Erik de Castro Lopo <[EMAIL PROTECTED]> > Date: Fri Jun 07, 2002 08:54:14 PM US/Eastern > To: [EMAIL PROTECTED] > Subject: [Fink-devel] ASM in C file ; porting from CodeWarrior -> OSX > > Hi all, > > Does anyboy have any idea how to port his code from CodeWarrior > to OSX? > > inline int > float2int (register float in) > { long res [2] ; > > asm > { fctiw in,in > stfd in,res > } > > return res [1] ; > } > > Thanks in advance, > Erik > -- > +-----------------------------------------------------------+ > Erik de Castro Lopo [EMAIL PROTECTED] (Yes it's valid) > +-----------------------------------------------------------+ > "If dolphins are so smart, why do they live in igloos?" -Eric Cartman > > _______________________________________________________________ > > Don't miss the 2002 Sprint PCS Application Developer's Conference > August 25-28 in Las Vegas - > http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink > > _______________________________________________ > Fink-devel mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/fink-devel _______________________________________________________________ Don't miss the 2002 Sprint PCS Application Developer's Conference August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink _______________________________________________ Fink-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/fink-devel