Kernel/armv7 - Fixed edge case in __divmod64
authorJohn Hodge <[email protected]>
Wed, 12 Oct 2011 00:35:17 +0000 (08:35 +0800)
committerJohn Hodge <[email protected]>
Wed, 12 Oct 2011 00:35:17 +0000 (08:35 +0800)
Kernel/arch/armv7/lib.c

index 94c1a3a..7e54afe 100644 (file)
@@ -133,7 +133,7 @@ Uint64 __divmod64(Uint64 Num, Uint64 Den, Uint64 *Rem)
                add >>= 1;
                Den >>= 1;
                // If the numerator is > Den, subtract and add to return value
-               if( Num > Den )
+               if( Num >= Den )
                {
                        ret += add;
                        Num -= Den;

UCC git Repository :: git.ucc.asn.au