function _openid_math_cmp

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

2 calls to _openid_math_cmp()
_openid_dh_long_to_binary in drupal/core/modules/openid/openid.inc
_openid_dh_rand in drupal/core/modules/openid/openid.inc

File

drupal/core/modules/openid/openid.inc, line 773
OpenID utility functions.

Code

function _openid_math_cmp($x, $y) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_cmp($x, $y);
    case 'bcmath':
      return bccomp($x, $y);
  }
}