Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: "FP precision conv" with no doubles in sight




On 30 Oct 2004, at 10:54, Paul Sargent wrote:


On 30 Oct 2004, at 00:59, James W. Walker wrote:

Shark is showing "FP precision conv" on a line:

m_Center=getPosition()+0.5f*getSize();

Oh, and if shark is showing this as some kind of hotspot (and I assume it is otherwise why are you bothering with it) then it's simplicity to altivec this code. All the work can be done in two loads, a sub, a madd and a store.


Not sure you'd get a lot of speed up because you're probably memory bound, ... and you'd need to pad your structure out to 16-bytes (add a unused component to your 'vector' object), ... and make sure they were aligned, ... and work on more than one object at a time to give yourself enough work to hide the latencies, and ...

Anyway I'm just having fun. Just be sure to stop at 'fast enough'.

Paul

Attachment: PGP.sig
Description: This is a digitally signed message part

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
PerfOptimization-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/perfoptimization-dev/email@hidden

This email sent to email@hidden

References: 
 >"FP precision conv" with no floats in sight (From: "James W. Walker" <email@hidden>)
 >Re: "FP precision conv" with no doubles in sight (From: Paul Sargent <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.