
26 Jan
2011
26 Jan
'11
10:43 a.m.
Dear Wolfgang Denk,
Dear Reinhard Meyer,
In message 4D3FDB14.6060004@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