Lines Matching refs:value

74         $this->value = '0';
90 $len = (strlen($this->value) + 3) & 0xFFFFFFFC;
92 $x = str_pad($this->value, $len, chr(0), STR_PAD_LEFT);
94 $this->value = '0';
96 $this->value = bcmul($this->value, '4294967296', 0); // 4294967296 == 2**32
97 $this->value = bcadd(
98 $this->value,
107 $this->value = '-' . $this->value;
111 $x = (strlen($this->value) & 1) ? '0' . $this->value : $this->value;
113 $this->value = $this->is_negative ? '-' . $temp->value : $temp->value;
119 $this->value = $this->value === '-' ? '0' : (string)$this->value;
130 if ($this->value === '0') {
134 return ltrim($this->value, '0');
149 $value = '';
150 $current = $this->value;
158 $value = chr($temp >> 16) . chr($temp >> 8) . chr($temp) . $value;
163 … substr(str_pad($value, $this->precision >> 3, chr(0), STR_PAD_LEFT), -($this->precision >> 3)) :
164 ltrim($value, chr(0));
176 $temp->value = bcadd($this->value, $y->value);
190 $temp->value = bcsub($this->value, $y->value);
204 $temp->value = bcmul($this->value, $x->value);
225 $quotient->value = bcdiv($this->value, $y->value, 0);
226 $remainder->value = bcmod($this->value, $y->value);
228 if ($remainder->value[0] == '-') {
229 …$remainder->value = bcadd($remainder->value, $y->value[0] == '-' ? substr($y->value, 1) : $y->valu…
265 $u = $this->value;
266 $v = $n->value;
319 $temp->value = strlen($this->value) && $this->value[0] == '-' ?
320 substr($this->value, 1) :
321 $this->value;
370 $temp->value = bcdiv($this->value, bcpow('2', $shift, 0), 0);
386 $temp->value = bcmul($this->value, bcpow('2', $shift, 0), 0);
411 return bccomp($this->value, $y->value, 0);
424 return $this->value == $x->value;
484 $result->value = bcmod($result->value, $result->bitmask->value);
532 $this->value = bcadd($this->value, '1');
543 if ($this->value === '1') {
546 if ($this->value === '2') {
549 if ($this->value[strlen($this->value) - 1] % 2 == 0) {
553 $value = $this->value;
556 $r = bcmod($this->value, $prime);
558 return $this->value == $prime;
576 $r_value = &$r->value;
596 $temp->value = bcpow($this->value, $n->value);
655 return $this->value[strlen($this->value) - 1] % 2 == 1;
666 bcmod($this->value, bcpow('2', $x + 1, 0)),
679 return strlen($this->value) && $this->value[0] == '-';
693 if (!strlen($temp->value)) {
697 $temp->value = $temp->value[0] == '-' ?
698 substr($this->value, 1) :
699 '-' . $this->value;