[U-Boot] [PATCH] allow print_size to print large numbers on 32-bit systems

Nick Thompson nick.thompson at ge.com
Mon Apr 12 18:27:48 CEST 2010


On 12/04/10 17:21, Timur Tabi wrote:
> Nick Thompson wrote:
> 
>> To differentiate from "K", which means 1000, rather than 1024.
> 
> I don't think that's correct.  I understand the 1000/1024 debate, but my understanding is that
> 
> KB = 1000 bytes
> KiB = 1024 bytes
> 
> (personally, I think the whole kibi-byte thing is stupid, and we should just say that K=1024 when talking about memory sizes, but whatever)
> 
> I've never seen K=1000 and k=1024.  Then why don't we do "mB" instead of MB?  By your logical, M=1000000 and m=1048576
> 

Hmm, yes, my bad. http://physics.nist.gov/cuu/Units/prefixes.html lists SI prefixes and "k" = 1000. "m" is milli of course. "K" is not used by SI, so might be free for 1024...?

Nick.




More information about the U-Boot mailing list