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: vpowf parameters backwards on Intel?




On Apr 24, 2006, at 3:50 PM, Ian Ollmann wrote:


This is a known problem that we intend to fix. <rdar://problem/ 4485735>


In certain cases, you might be able to use the vImageGamma functions or vForce instead. Apart from that, I'm not sure that there are any very good workarounds at the moment.

Ian


My approach to define an inline function to be called instead, which on PPC calls as is, while SSE will flip their order (it first checks to see if this is needed by calling vpowf(2,0.5) and seeing what it gets, saving that all in a static variable to determine if the bug has been fixed).

It seems to work so long as vpowf(x,y) is actually vpowf(y,x) (but hey, there could be something stranger going on here than just being reversed - but if it's ever broken again to calculate vpowf(1/x,1/y) I'm in trouble).


Glenn Andreas email@hidden <http://www.gandreas.com/> wicked fun! quadrium | build, mutate, evolve | images, textures, backgrounds, art

_______________________________________________
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: 
 >vpowf parameters backwards on Intel? (From: glenn andreas <email@hidden>)
 >Re: vpowf parameters backwards on Intel? (From: Ian Ollmann <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.