Skip to content

Commit 6170e5e

Browse files
Update src/libraries/System.Private.CoreLib/src/System/UInt128.cs
Co-authored-by: Günther Foidl <[email protected]>
1 parent a032637 commit 6170e5e

File tree

1 file changed

+2
-0
lines changed
  • src/libraries/System.Private.CoreLib/src/System

1 file changed

+2
-0
lines changed

src/libraries/System.Private.CoreLib/src/System/UInt128.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,7 +1106,9 @@ public static UInt128 Log2(UInt128 value)
11061106

11071107
// We might need 2 division to avoid overflow
11081108
if (remainder >= right._lower)
1109+
{
11091110
(highRes, remainder) = X86Base.X64.DivRem(remainder, 0, right._lower);
1111+
}
11101112

11111113
return new UInt128(highRes, X86Base.X64.DivRem(left._lower, remainder, right._lower).Quotient);
11121114
}

0 commit comments

Comments
 (0)