Skip to content
Snippets Groups Projects
Commit 3587bb05 authored by John Hodge's avatar John Hodge
Browse files

Kernel/armv7 - Fixed edge case in __divmod64

parent 2bad2a51
No related merge requests found
...@@ -133,7 +133,7 @@ Uint64 __divmod64(Uint64 Num, Uint64 Den, Uint64 *Rem) ...@@ -133,7 +133,7 @@ Uint64 __divmod64(Uint64 Num, Uint64 Den, Uint64 *Rem)
add >>= 1; add >>= 1;
Den >>= 1; Den >>= 1;
// If the numerator is > Den, subtract and add to return value // If the numerator is > Den, subtract and add to return value
if( Num > Den ) if( Num >= Den )
{ {
ret += add; ret += add;
Num -= Den; Num -= Den;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment