]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix a corner case in __div64_32
authorPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:37:02 +0000 (09:37 +1000)
committerPaul Mackerras <paulus@samba.org>
Wed, 19 Oct 2005 23:37:02 +0000 (09:37 +1000)
commite7cdca267883046d0304a86b552b2d3874a4ece1
tree43e3d75779307d9ee36f001718efe6ef6fa220d3
parente68e196a7325fa3a6842ec43c4ddf6f327d6d78e
powerpc: Fix a corner case in __div64_32

The code was incorrectly doing a division by 0 in the case where
the denominator was 0x100000000 and the divisor was 0xffffffff.
Thanks to Fred Liu of Motorola for pointing this out.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/lib/div64.S