• 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: Range of 32 bit values
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Range of 32 bit values


  • Subject: Re: Range of 32 bit values
  • From: Greg Guerin <email@hidden>
  • Date: Mon, 9 Apr 2007 12:11:47 -0700

Luigi Castelli wrote:

>the casting with wrapping is an optimization trick that the algorithm
>uses.
>So adding an instruction (or several) by using fmod() really defeats
>the purpose.
>Also, I cannot use only integers. The parameters before casting must be
>floats.
>
>These are the restriction that I have to deal with.

Then I think your optimization trick just failed.


>So my question remains as if there is a way to make the range of an
>integer wrap after casting or if it's an operation entirely dependant
>on hardware and the programmer has no control over it.

I'm pretty sure it's the latter.  To find out for sure, you should refer to
the C spec, and/or the gcc reference manual.

  -- GG


 _______________________________________________
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

  • Prev by Date: Re: Range of 32 bit values
  • Next by Date: Re: Range of 32 bit values
  • Previous by thread: RE: Range of 32 bit values
  • Next by thread: Re: Range of 32 bit values
  • Index(es):
    • Date
    • Thread