Lines Matching refs:temp

106                 $temp = new static(Hex::decode($x), 256);
107 $this->value = $temp->value;
110 $temp = new static();
129 $temp = $temp->multiply($multiplier);
130 … $temp = $temp->add(new static($this->int2bytes(substr($x, 0, static::MAX10LEN)), 256));
134 $this->value = $temp->value;
164 $temp = clone $this;
165 $temp->bitmask = false;
166 $temp->is_negative = false;
171 while (count($temp->value)) {
172 list($temp, $mod) = $temp->divide($divisor);
256 $temp = self::subtractHelper($x_value, false, $y_value, false);
257 $temp[self::SIGN] = self::compareHelper($x_value, false, $y_value, false) > 0 ?
260 return $temp;
280 $temp = static::BASE === 26 ? intval($sum / 0x4000000) : ($sum >> 31);
282 …$value[$i] = (int)($sum - static::BASE_FULL * $temp); // eg. a faster alternative to fmod($sum, 0x…
283 $value[$j] = $temp;
334 $temp = self::addHelper($x_value, false, $y_value, false);
335 $temp[self::SIGN] = $x_negative;
337 return $temp;
351 $temp = $x_value;
353 $y_value = $temp;
370 $temp = static::BASE === 26 ? intval($sum / 0x4000000) : ($sum >> 31);
372 $x_value[$i] = (int)($sum - static::BASE_FULL * $temp);
373 $x_value[$j] = $temp;
459 $temp = self::addHelper($y1, false, $y0, false);
460 $z1 = self::karatsuba($z1[self::VALUE], $temp[self::VALUE]);
461 $temp = self::addHelper($z2, false, $z0, false);
462 $z1 = self::subtractHelper($z1, false, $temp[self::VALUE], false);
501 $temp = $x_value[$j] * $y_value[0] + $carry; // $product_value[$k] == 0
502 $carry = static::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
503 $product_value[$j] = (int)($temp - static::BASE_FULL * $carry);
514 $temp = $product_value[$k] + $x_value[$j] * $y_value[$i] + $carry;
515 $carry = static::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
516 $product_value[$k] = (int)($temp - static::BASE_FULL * $carry);
560 $temp = new static();
561 $temp->value = [1];
562 $temp->is_negative = $x_sign != $y_sign;
563 return [$this->normalize($temp), $this->normalize(static::$zero[static::class])];
590 static $temp, $lhs, $rhs;
591 if (!isset($temp)) {
592 $temp = new static();
596 if (static::class != get_class($temp)) {
597 $temp = new static();
601 $temp_value = &$temp->value;
607 while ($x->compare($temp) >= 0) {
610 $x = $x->subtract($temp);
639 $lhs = $lhs->multiply($temp);
647 $lhs = $lhs->multiply($temp);
652 $temp = $temp->multiply($y);
653 $temp_value = &$temp->value;
658 $x = $x->subtract($temp);
662 $x = $x->add($temp);
699 $temp = static::BASE_FULL * $carry + $dividend[$i];
700 $result[$i] = self::safe_divide($temp, $divisor);
701 $carry = (int)($temp - $divisor * $result[$i]);
823 $temp = new static();
824 $temp->value = $this->value;
826 return $temp;
859 $temp = new static();
863 $temp->value = $this->value;
864 $temp->rshift($shift);
866 return $this->normalize($temp);
879 $temp = new static();
882 $temp->value = $this->value;
883 $temp->lshift($shift);
885 return $this->normalize($temp);
931 $temp = $this->value[$i] * $shift + $carry;
932 $carry = static::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
933 $this->value[$i] = (int)($temp - $carry * static::BASE_FULL);
970 $temp = $this->value[$i] >> $shift | $carry;
972 $this->value[$i] = $temp;
1028 $temp = $square_value[$i2] + $value[$i] * $value[$i];
1029 $carry = static::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
1030 $square_value[$i2] = (int)($temp - static::BASE_FULL * $carry);
1034 $temp = $square_value[$k] + 2 * $value[$j] * $value[$i] + $carry;
1035 $carry = static::BASE === 26 ? intval($temp / 0x4000000) : ($temp >> 31);
1036 $square_value[$k] = (int)($temp - static::BASE_FULL * $carry);
1072 $temp = self::addHelper($z2, false, $z0, false);
1073 $z1 = self::subtractHelper($z1, false, $temp[self::VALUE], false);
1137 $temp = ~$r_value[$i] & static::MAX_DIGIT;
1138 for ($j = 1; ($temp >> $j) & 1; ++$j) {
1161 $temp = clone $this;
1163 $temp = $temp->multiply($this);
1167 return $temp;
1216 $temp = clone $this;
1217 $temp->is_negative = !$temp->is_negative;
1219 return $temp;
1240 $temp = new static();
1241 $temp->value = $digit != 0 ? [$digit] : [];
1242 return $temp;
1259 $temp = isset($val[$i]) ? $val[$i] : 0;
1260 $digit[] = $temp & $mask;
1271 $temp = isset($val[$i]) ? $val[$i] : 0;
1272 $digit[] = $temp & $tempmask;
1276 $temp = $digit[$j] & $mask;
1278 $newbits = $temp;
1283 $temp = new static();
1284 $temp->value = static::trim($digit);
1285 $vals[] = $temp;