Re: NSInteger vs int vs int32_t
Re: NSInteger vs int vs int32_t
- Subject: Re: NSInteger vs int vs int32_t
- From: Nathan Day <email@hidden>
- Date: Thu, 05 Jul 2012 15:41:00 +1000
It must if 64bits is read in that mean you have just read in two 32bit words. So to put a 32bit word in a 64bit register some bit must be ditched, in some way, and if the CPU is optimise to only work with 64bit word alignment (don't know how intel does it), then to get 32 bit aligned words it must do some bit shift.
On 05/07/2012, at 3:33 PM, Scott Ribe <email@hidden> wrote:
> On Jul 4, 2012, at 11:28 PM, Nathan Day wrote:
>
>> You are saying that the CPU read two 32bit int from the cache at the same time, and then does some bit manipulation to get the high or low 32bit word into a 64bit register.
>
> No, I'm not saying that at all.
>
> --
> Scott Ribe
> email@hidden
> http://www.elevated-dev.com/
> (303) 722-0567 voice
>
>
>
>
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden