public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Dinh Nguyen <dinguyen@opensource.altera.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] ddr: altera: Replace float multiplication with integer one
Date: Tue, 18 Aug 2015 15:13:42 -0500	[thread overview]
Message-ID: <55D391F6.6060406@opensource.altera.com> (raw)
In-Reply-To: <1439247577-8926-1-git-send-email-marex@denx.de>



On 8/10/15 5:59 PM, Marek Vasut wrote:
> This gem is really really rare, there was an actual float used in
> the Altera DDR init code, which pulled in floating point ops from
> the libgcc, just wow.
> 
> Since we don't support floating point operations the same way Linux
> does not support them, replace this with an integer multiplication
> and division combo. This removes some 2kiB of size from the SPL as
> the floating point ops are no longer pulled in from libgcc.
> 
> This was detected by enabling CONFIG_USE_PRIVATE_LIBGCC=y , which
> does not contain the floating point bits.
> 
> Signed-off-by: Marek Vasut <marex@denx.de>
> ---
>  drivers/ddr/altera/sequencer.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c
> index 2bd0109..f3621cf 100644

Acked-by: Dinh Nguyen <dinguyen@opensource.altera.com>

Thanks,
Dinh

  parent reply	other threads:[~2015-08-18 20:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 22:59 [U-Boot] [PATCH 1/2] ddr: altera: Replace float multiplication with integer one Marek Vasut
2015-08-10 22:59 ` [U-Boot] [PATCH 2/2] ddr: altera: Repair uninited variable Marek Vasut
2015-08-18 20:14   ` Dinh Nguyen
2015-08-18 22:06     ` Marek Vasut
2015-08-18 20:13 ` Dinh Nguyen [this message]
2015-08-18 22:07   ` [U-Boot] [PATCH 1/2] ddr: altera: Replace float multiplication with integer one Marek Vasut

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=55D391F6.6060406@opensource.altera.com \
    --to=dinguyen@opensource.altera.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox