Skip to content
Commit f2d76ae4 authored by Nick Thompson's avatar Nick Thompson Committed by Wolfgang Denk
Browse files

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: default avatarNick Thompson <nick.thompson@ge.com>
Acked-by: default avatarTimur Tabi <timur@freescale.com>
parent a599cde7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment