commit | f2d76ae4fdde180e120ea2d29d6ef881360b3cba | [log] [tgz] |
---|---|---|
author | Nick Thompson <nick.thompson@ge.com> | Tue May 11 11:29:52 2010 +0100 |
committer | Wolfgang Denk <wd@denx.de> | Mon May 17 23:23:39 2010 +0200 |
tree | c5627398a3f653f1889e92ce6c5ba2355d9118e5 | |
parent | a599cde7698acc5ae3d0f731b4a7d63a931aae63 [diff] |
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>