Re: pow() function returning different results under Rosetta
Re: pow() function returning different results under Rosetta
- Subject: Re: pow() function returning different results under Rosetta
- From: Eric Albert <email@hidden>
- Date: Mon, 16 Jan 2006 22:21:18 -0800
On Jan 16, 2006, at 9:39 PM, Cianflone, Chris wrote:
<<I tested this just now on an iMac with the shipping build, and your
pow() example returns 923521 both natively and translated.
>>
We just tried our app on a shipping iMac and the problem still persists. I haven't yet verified this in the debugger (well via CFShow()s since this is CodeWarrior on Intel), but I suspect it is the same problem since my Calculator test still returns these results:
> And just for fun I tried a similar test on /Applications/Calculator:
>
> Intel on Intel (DTK system):
> 31 ^ 4 = 923521
>
> PPC on Intel (DTK system) with Rosetta:
> 31 ^ 4 = 923520.99999999953
Oh well, I guess we will have to make an updater for our previous version.
I'm sorry to hear that it doesn't work for you, but I'll repeat what I said before:
You should never have to change your code for Rosetta compatibility. If you ever find yourself thinking of doing that, please file a bug report. (<http://bugreport.apple.com/>)
That still holds true. Rosetta mimics a PowerPC processor. If it isn't doing this correctly, we need to know. If you do choose to work around it, be very careful to avoid doing anything that'll break if Rosetta is subsequently updated to match the behavior you see on a real PowerPC system.
Thanks,
Eric
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden