Skip to content

Commit cda9bb5

Browse files
author
bogdan
committed
lib update => 1.0.2
1 parent fe11724 commit cda9bb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Util/UnsignedInt64.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function addOne()
7272

7373
function plus(UnsignedInt64 $oWord)
7474
{
75-
$c = new UnsignedInt64(0, 0);
75+
$c = UInt64Pool::getObject()->setHiLo(0, 0);
7676
// var lowest, lowMid, highMid, highest; //four parts of the whole 64 bit number..
7777
//need to add the respective parts from each number and the carry if on is present..
7878
$this_h = $this->hi & 0xffffffff;
@@ -93,7 +93,7 @@ function plus(UnsignedInt64 $oWord)
9393

9494
function not()
9595
{
96-
return new UnsignedInt64(~$this->hi, ~$this->lo);
96+
return UInt64Pool::getObject()->setHiLo(~$this->hi, ~$this->lo);
9797
}
9898

9999
function one()
@@ -347,7 +347,7 @@ function rotateRight($bits)
347347
{
348348
return $this->rotateLeft(64 - $bits);
349349
}
350-
$c = new UnsignedInt64(0, 0);
350+
$c = UInt64Pool::getObject()->setHiLo(0, 0);
351351
if ($bits === 0)
352352
{
353353
$c->lo = $this->lo >> 0;

0 commit comments

Comments
 (0)