function _openid_math_powmod

_openid_math_powmod($x, $y, $z)

Calls the mul function from the available math library for OpenID.

File

modules/openid/openid.inc, line 817
OpenID utility functions.

Code

function _openid_math_powmod($x, $y, $z) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_powm($x, $y, $z);
    case 'bcmath':
      return bcpowmod($x, $y, $z);
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!openid!openid.inc/function/_openid_math_powmod/7.x