On this page
function _openid_math_cmp
_openid_math_cmp($x, $y)Calls the cmp function from the available math library for OpenID.
File
- modules/openid/openid.inc, line 778
- 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);
  }
}
© 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_cmp/7.x