04 Mar, 2015
1 commit
-
Switch to div_u64 if the divisor is a numeric constant or sum of
sizeof()s. We can remove a few instances of do_div that has the hidden
semtantics of changing the 1st argument.Small power-of-two divisors are converted to bitshifts, large values are
kept intact for clarity.Signed-off-by: David Sterba
12 Dec, 2012
1 commit
-
div_factor{_fine} has been implemented for two times, cleanup it.
And I move them into a independent file named math.h because they are
common math functions.Signed-off-by: Miao Xie
Signed-off-by: Chris Mason