Forked from
Reform / reform-boundary-uboot
Source project has a limited visibility.
-
Nick Thompson authored
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>
Nick Thompson authoredModification 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>