Re: Range of 32 bit values
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