• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: pow() function returning different results under Rosetta
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >pow() function returning different results under Rosetta (From: "Cianflone, Chris" <email@hidden>)
 >Re: pow() function returning different results under Rosetta (From: Eric Albert <email@hidden>)
 >RE: pow() function returning different results under Rosetta (From: "Cianflone, Chris" <email@hidden>)

  • Prev by Date: RE: pow() function returning different results under Rosetta
  • Next by Date: Re: Undefined symbol __error()
  • Previous by thread: RE: pow() function returning different results under Rosetta
  • Next by thread: Quotes not persisting in Project Settings
  • Index(es):
    • Date
    • Thread