summaryrefslogtreecommitdiffstats
path: root/scripts/checkpatch.pl
diff options
context:
space:
mode:
authorBrian Behlendorf2010-10-26 23:23:10 +0200
committerLinus Torvalds2010-10-27 01:52:19 +0200
commit658716d19f8f155c67d4677ba68034b8e492dfbe (patch)
tree8743b9a16606a63dc33f93c580367baf36692454 /scripts/checkpatch.pl
parentlib/parser: cleanup match_number() (diff)
downloadkernel-qcow2-linux-658716d19f8f155c67d4677ba68034b8e492dfbe.tar.gz
kernel-qcow2-linux-658716d19f8f155c67d4677ba68034b8e492dfbe.tar.xz
kernel-qcow2-linux-658716d19f8f155c67d4677ba68034b8e492dfbe.zip
div64_u64(): improve precision on 32bit platforms
The current implementation of div64_u64 for 32bit systems returns an approximately correct result when the divisor exceeds 32bits. Since doing 64bit division using 32bit hardware is a long since solved problem we just use one of the existing proven methods. Additionally, add a div64_s64 function to correctly handle doing signed 64bit division. Addresses https://bugzilla.redhat.com/show_bug.cgi?id=616105 Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Oleg Nesterov <oleg@redhat.com> Cc: Ben Woodard <bwoodard@llnl.gov> Cc: Jeremy Fitzhardinge <jeremy@goop.org> Cc: Mark Grondona <mgrondona@llnl.gov> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/checkpatch.pl')
0 files changed, 0 insertions, 0 deletions