Mailing Lists: Apple Mailing Lists

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

"FP precision conv" with no floats in sight



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

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

Here m_Center, getPosition(), and getSize() are vector objects, each containing 3 floats. There are operators defining addition of two vectors and multiplication of a scalar and a vector. The "double" type is not mentioned anywhere in the code. So, why would any precision conversion be needed?
--
James W. Walker, ScriptPerfection Enterprises, Inc.
<http://www.write-brain.com/>
_______________________________________________
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


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.