Lines Matching refs:exponent
220 * @param int $exponent
223 abstract protected function pow($base, $exponent); argument
248 function pow($base, $exponent) argument
250 return bcpow($base, $exponent);
283 * @param int $exponent
287 function _powmod($base, $exponent, $modulus) argument
291 while($this->cmp($exponent, 0) > 0) {
292 if ($this->mod($exponent, 2)) {
296 $exponent = $this->div($exponent, 2);
301 function powmod($base, $exponent, $modulus) argument
304 return bcpowmod($base, $exponent, $modulus);
306 return $this->_powmod($base, $exponent, $modulus);
338 function pow($base, $exponent) argument
340 return gmp_pow($base, $exponent);
368 function powmod($base, $exponent, $modulus) argument
370 return gmp_powm($base, $exponent, $modulus);