From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Wed, 19 Aug 2015 00:07:26 +0200 Subject: [U-Boot] [PATCH 1/2] ddr: altera: Replace float multiplication with integer one In-Reply-To: <55D391F6.6060406@opensource.altera.com> References: <1439247577-8926-1-git-send-email-marex@denx.de> <55D391F6.6060406@opensource.altera.com> Message-ID: <201508190007.26717.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Tuesday, August 18, 2015 at 10:13:42 PM, Dinh Nguyen wrote: > 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. Private libgcc is indeed helpful! :-) > > Signed-off-by: Marek Vasut > > --- > > > > 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 Applied to u-boot-socfpga/master, thanks! Best regards, Marek Vasut