function _openid_math_pow

_openid_math_pow($x, $y)

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

File

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

Code

function _openid_math_pow($x, $y) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_pow($x, $y);
    case 'bcmath':
      return bcpow($x, $y);
  }
}

© 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_pow/7.x