You are here

function _openid_math_mod in Drupal 7

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

2 calls to _openid_math_mod()
_openid_dh_long_to_binary in modules/openid/openid.inc
_openid_dh_rand in modules/openid/openid.inc

File

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

Code

function _openid_math_mod($x, $y) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_mod($x, $y);
    case 'bcmath':
      return bcmod($x, $y);
  }
}