[U-Boot] [PATCH V4] nitrogen: Use unsigned long to specify the total RAM size

Wolfgang Denk wd at denx.de
Thu Mar 14 12:38:29 CET 2013


Dear Stefano Babic,

In message <1363248561-11974-1-git-send-email-sbabic at denx.de> you wrote:
> 
> 2GB can not fit in 32-bits, so use ulong instead.

<nitpick>

unsigned long is 32 bits, too.

And, strictly speaking, GB is a decimal unit, so 2 GB = 2e9 = 0x77359400
which fits nicely into a signed 32 bit number.

What you actually mean is:
	
	2 GiB cannot be expressed as a 32 bit signed number.

</nitpick>

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Of all the things I've lost, I miss my mind the most.


More information about the U-Boot mailing list