From cda9bb557fea6cb0005fc85033a9f04ac379d508 Mon Sep 17 00:00:00 2001 From: bogdan Date: Mon, 9 Jul 2018 12:08:48 +0300 Subject: [PATCH] lib update => 1.0.2 --- src/Util/UnsignedInt64.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Util/UnsignedInt64.php b/src/Util/UnsignedInt64.php index 46af27a..1056ea4 100644 --- a/src/Util/UnsignedInt64.php +++ b/src/Util/UnsignedInt64.php @@ -72,7 +72,7 @@ function addOne() function plus(UnsignedInt64 $oWord) { - $c = new UnsignedInt64(0, 0); + $c = UInt64Pool::getObject()->setHiLo(0, 0); // var lowest, lowMid, highMid, highest; //four parts of the whole 64 bit number.. //need to add the respective parts from each number and the carry if on is present.. $this_h = $this->hi & 0xffffffff; @@ -93,7 +93,7 @@ function plus(UnsignedInt64 $oWord) function not() { - return new UnsignedInt64(~$this->hi, ~$this->lo); + return UInt64Pool::getObject()->setHiLo(~$this->hi, ~$this->lo); } function one() @@ -347,7 +347,7 @@ function rotateRight($bits) { return $this->rotateLeft(64 - $bits); } - $c = new UnsignedInt64(0, 0); + $c = UInt64Pool::getObject()->setHiLo(0, 0); if ($bits === 0) { $c->lo = $this->lo >> 0;