All of lore.kernel.org
 help / color / mirror / Atom feed
From: Reinhard Meyer <u-boot@emk-elektronik.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Question: is SZ_* going to be removed or not?
Date: Wed, 26 Jan 2011 10:43:14 +0100	[thread overview]
Message-ID: <4D3FECB2.1010007@emk-elektronik.de> (raw)
In-Reply-To: <20110126092015.3B221CD1385@gemini.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

  parent reply	other threads:[~2011-01-26  9:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-26  8:28 [U-Boot] Question: is SZ_* going to be removed or not? Reinhard Meyer
2011-01-26  9:20 ` Wolfgang Denk
2011-01-26  9:29   ` Eric Bénard
2011-01-26  9:43     ` Wolfgang Denk
2011-01-26  9:43   ` Reinhard Meyer [this message]
2011-01-26 12:59     ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4D3FECB2.1010007@emk-elektronik.de \
    --to=u-boot@emk-elektronik.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.