[U-Boot] Question: is SZ_* going to be removed or not?

Reinhard Meyer u-boot at emk-elektronik.de
Wed Jan 26 10:43:14 CET 2011


Dear Wolfgang Denk,
> Dear Reinhard Meyer,
> 
> In message <4D3FDB14.6060004 at emk-elektronik.de> you wrote:
>>
>> I heard rumors that the SZ_* defines are going to be outphased.
> 
> I's on my personal hate list, indeed.
> 
>> If so, new submissions should not use them anymore, right?
> 
> Right.

OK, I can understand that for having a define for each of the 64 possible values
(1<<0) .. (1<<63) can be annoying.

Will the preffered methods be
xx << 10 for KiB
xx << 20 for MiB
xx << 30 for GiB and so on?

Or might we have a few macros like

#define KiB(x) ((x) << 10)
#define MiB(x) ((x) << 20) and so on?

That would reduce all to about 6 defines.

Best Regards,
Reinhard


More information about the U-Boot mailing list