On Fri, 7 Jun 2002 21:28:20 -0400
Alexander Strange <[EMAIL PROTECTED]> wrote:

> int float2int(register float in)
> {
> return (int)in;
> }


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 of float/double to int casts by a factor of
8 or more. 

In fact, I wrote a paper on it:


Now that I have a PPC machine I will compare the standard C cast
against a function similar to the one I posted. I cannot do that
until I can convert the code, so if anyone knows how to do it,
I would appreciate hearing from them.

  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
"Reality is just a crutch for people that can't handle CyberSpace!!"
- Hank Duderstadt


Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - 

Fink-devel mailing list

Reply via email to