summaryrefslogtreecommitdiff
path: root/board/xes
diff options
context:
space:
mode:
authorNick Thompson <nick.thompson@ge.com>2010-05-11 11:29:52 +0100
committerWolfgang Denk <wd@denx.de>2010-05-17 23:23:39 +0200
commitf2d76ae4fdde180e120ea2d29d6ef881360b3cba (patch)
treec5627398a3f653f1889e92ce6c5ba2355d9118e5 /board/xes
parenta599cde7698acc5ae3d0f731b4a7d63a931aae63 (diff)
downloadu-boot-imx-f2d76ae4fdde180e120ea2d29d6ef881360b3cba.zip
u-boot-imx-f2d76ae4fdde180e120ea2d29d6ef881360b3cba.tar.gz
u-boot-imx-f2d76ae4fdde180e120ea2d29d6ef881360b3cba.tar.bz2
Avoid use of divides in print_size
Modification of print_size to avoid use of divides and especially long long divides. Keep the binary scale factor in terms of bit shifts instead. This should be faster, since the previous code gave the compiler no clues that the divides where always powers of two, preventing optimisation. Signed-off-by: Nick Thompson <nick.thompson@ge.com> Acked-by: Timur Tabi <timur@freescale.com>
Diffstat (limited to 'board/xes')
0 files changed, 0 insertions, 0 deletions