From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reinhard Meyer Date: Wed, 26 Jan 2011 10:43:14 +0100 Subject: [U-Boot] Question: is SZ_* going to be removed or not? In-Reply-To: <20110126092015.3B221CD1385@gemini.denx.de> References: <4D3FDB14.6060004@emk-elektronik.de> <20110126092015.3B221CD1385@gemini.denx.de> Message-ID: <4D3FECB2.1010007@emk-elektronik.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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