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

In fact, I wrote a paper on it:

    http://mega-nerd.com/FPcast/

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.

Regards,
Erik
-- 
+-----------------------------------------------------------+
  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 - 
http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink

_______________________________________________
Fink-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to