All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC
Date: Wed, 13 Apr 2011 22:50:13 +0200	[thread overview]
Message-ID: <20110413205013.E4FD014F02E@gemini.denx.de> (raw)
In-Reply-To: <1298478920-22044-1-git-send-email-Kyle.D.Moffett@boeing.com>

Dear Kyle Moffett,

In message <1298478920-22044-1-git-send-email-Kyle.D.Moffett@boeing.com> you wrote:
> The current FreeScale MPC-8xxx DDR SPD interpreter is using full 64-bit
> integer divide operations to convert between nanoseconds and DDR clock
> cycles given arbitrary DDR clock frequencies.
...
> +/* To avoid 64-bit full-divides, we factor this here */
> +#define ULL_2e12 2000000000000ULL
> +#define UL_5pow12 244140625UL
> +#define UL_2pow13 (1UL << 13)
> +
> +#define ULL_8Fs 0xFFFFFFFFULL

We don't allow CamelCaps macro names. Macros are all caps, please.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Man is the best computer we can put aboard a spacecraft ...  and  the
only one that can be mass produced with unskilled labor.
                                                  - Wernher von Braun

      parent reply	other threads:[~2011-04-13 20:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 16:35 [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC Kyle Moffett
2011-03-14 18:19 ` York Sun
2011-03-14 19:04   ` [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on32-bit PowerPC Moffett, Kyle D
2011-03-14 19:41     ` York Sun
2011-03-14 20:01       ` [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divideson32-bit PowerPC Moffett, Kyle D
2011-03-14 20:22 ` [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC York Sun
2011-03-14 21:35   ` [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on32-bit PowerPC Moffett, Kyle D
2011-07-28 21:41     ` York Sun
2011-07-29 17:20       ` Moffett, Kyle D
2011-07-29 18:35         ` York Sun
2011-07-29 18:46           ` York Sun
2011-07-29 21:26             ` Moffett, Kyle D
2011-07-29 21:46               ` York Sun
2011-08-03 19:07                 ` Moffett, Kyle D
2011-03-14 21:41 ` [U-Boot] [PATCHv2] fsl_ddr: Don't use full 64-bit divides on 32-bit PowerPC York Sun
2011-03-15  7:55 ` Kumar Gala
2011-03-15 15:23   ` [U-Boot] [PATCH v3] " Kyle Moffett
2011-03-31  8:25     ` Kumar Gala
2011-04-13 20:51     ` Wolfgang Denk
2011-04-13 20:50 ` Wolfgang Denk [this message]

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=20110413205013.E4FD014F02E@gemini.denx.de \
    --to=wd@denx.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.