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
stfdin,res
}
return res [1] ;
}
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
On Fri, 7 Jun 2002 21:28:20 -0400
Alexander Strange [EMAIL PROTECTED] wrote:
int float2int(register float in)
{
return (int)in;
}
Hmm.
I'm not an expert on PPC, in fact I've only had one for three days.
However I know that on x86 a bit of inline assember can improve
the execution speed