Lines Matching refs:x
60 * @param mixed $x integer Base-10 number or base-$base number if $base set.
64 public function __construct($x = 0, $base = 10) argument
73 if ($x instanceof \GMP) {
74 $this->value = $x;
80 parent::__construct($x, $base);
197 * @param GMP $x
200 public function multiply(GMP $x) argument
203 $temp->value = $this->value * $x->value;
269 * @param GMP $x
272 public function equals(GMP $x) argument
274 return $this->value == $x->value;
346 * @param GMP $x
349 public function bitwise_and(GMP $x) argument
352 $temp->value = $this->value & $x->value;
360 * @param GMP $x
363 public function bitwise_or(GMP $x) argument
366 $temp->value = $this->value | $x->value;
374 * @param GMP $x
377 public function bitwise_xor(GMP $x) argument
380 $temp->value = $this->value ^ $x->value;
489 * @param Engine $x
494 protected static function randomRangePrimeInner(Engine $x, Engine $min, Engine $max) argument
496 $p = gmp_nextprime($x->value);
502 if ($min->value != $x->value) {
503 $x = new self($x->value - 1);
506 return self::randomRangePrime($min, $x);
638 return function (GMP $x) use ($temp) {
639 return new GMP($x->value % $temp);
673 public function testBit($x) argument
675 return gmp_testbit($this->value, $x);