]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
include/linux/math64.h: add div64_ul()
authorAlex Shi <alex.shi@intel.com>
Wed, 12 Jun 2013 21:05:10 +0000 (14:05 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Aug 2014 17:07:37 +0000 (18:07 +0100)
commit79e70e9dc0cb707ad58ce8d3ed75b50610581edd
tree89e18c3db66dba0153c7303272c725340196f912
parent0be53320ade39c226e9781c7ad72671625df6edf
include/linux/math64.h: add div64_ul()

commit c2853c8df57f49620d26f317d7d43347c29bfc2e upstream.

There is div64_long() to handle the s64/long division, but no mocro do
u64/ul division.  It is necessary in some scenarios, so add this
function.

[akpm@linux-foundation.org: coding-style fixes]
Signed-off-by: Alex Shi <alex.shi@intel.com>
Cc: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
include/linux/math64.h