Searched hist:f2d76ae4fdde180e120ea2d29d6ef881360b3cba (Results 1 – 1 of 1) sorted by relevance
| /rk3399_rockchip-uboot/lib/ |
| H A D | display_options.c | f2d76ae4fdde180e120ea2d29d6ef881360b3cba Tue May 11 10:29:52 UTC 2010 Nick Thompson <nick.thompson@ge.com> 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>
|