diff options
author | Nick Thompson <nick.thompson@ge.com> | 2010-05-11 11:29:52 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2010-05-17 23:23:39 +0200 |
commit | f2d76ae4fdde180e120ea2d29d6ef881360b3cba (patch) | |
tree | c5627398a3f653f1889e92ce6c5ba2355d9118e5 /common/cmd_flash.c | |
parent | a599cde7698acc5ae3d0f731b4a7d63a931aae63 (diff) | |
download | u-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 'common/cmd_flash.c')
0 files changed, 0 insertions, 0 deletions