commit | dd7e6c153c3cb414defc09f1669b1d47cfa5ef8c | [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 | ac2b8145b6fcf1dc32db1b77c37ca0d85f637895 [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>