Re: Generic query about bit opreation in case of 64bit OS.
Re: Generic query about bit opreation in case of 64bit OS.
- Subject: Re: Generic query about bit opreation in case of 64bit OS.
- From: Arnab Ganguly <email@hidden>
- Date: Thu, 3 Jun 2010 14:17:26 +0530
Thanks for all help.Issue has been resolved.Code snippet that I posted was not having problem but due to the calculation of a structure on basis of size which vaires from 32 bit to 64 bit was the root cause of the problem which was causing the above functions to behave differently .
-A
On Wed, Jun 2, 2010 at 1:51 PM, Axel Luttgens
<email@hidden> wrote:
Le 1 juin 2010 à 13:47:06, Arnab Ganguly a écrit :
> Dear All,
>
> I am having two below functions.
>
> void for16(unsigned char *&walker, uint16 &value)
> [...]
>
> Here uint16 is unsigned short.
>
> void for32(unsigned char *&walker, uint32 &value)
> [...]
>
> Here uint32 is unsigned long.
>
>
> I am not getting same resultant value in case of 32bit and 64bit.How can I
> make the above code return same result irrespective of 32bit or 64bit
> machine.I am not clear about the code logic also.
Hello Arnab,
Nor am I... ;-)
Nothwithstanding the type-related matters, do you mean that you really can compile the above? If yes, how are you then supposed to call for16() and for32()?
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden