File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1513,14 +1513,14 @@ library Lib512MathArithmetic {
1513
1513
// from 3 by adjusting the minuend.
1514
1514
uint256 MY2 = _inaccurateMulHi (M, Y2); // scale: 2¹⁸
1515
1515
uint256 T = 1.5 * 2 ** 18 - MY2; // scale: 2¹⁸
1516
- Y = Y * T; // scale: 2²⁷
1516
+ Y *= T; // scale: 2²⁷
1517
1517
}
1518
1518
// `Y` is Q229.27
1519
1519
{
1520
1520
uint256 Y2 = Y * Y; // scale: 2⁵⁴
1521
1521
uint256 MY2 = _inaccurateMulHi (M, Y2); // scale: 2⁵⁴
1522
1522
uint256 T = 1.5 * 2 ** 54 - MY2; // scale: 2⁵⁴
1523
- Y = Y * T; // scale: 2⁸¹
1523
+ Y *= T; // scale: 2⁸¹
1524
1524
}
1525
1525
// `Y` is Q175.81
1526
1526
{
@@ -1538,7 +1538,6 @@ library Lib512MathArithmetic {
1538
1538
uint256 MY2 = _inaccurateMulHi (M, Y2); // scale: 2²⁵⁴
1539
1539
uint256 T = 1.5 * 2 ** 254 - MY2; // scale: 2²⁵⁴
1540
1540
Y = _inaccurateMulHi (Y << 2 , T); // scale: 2¹²⁷
1541
-
1542
1541
}
1543
1542
// `Y` is Q129.127
1544
1543
{
You can’t perform that action at this time.
0 commit comments