function _openid_math_add

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

3 calls to _openid_math_add()

File

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

Code

function _openid_math_add($x, $y) {
  $library = _openid_get_math_library();
  switch ($library) {
    case 'gmp':
      return gmp_strval(gmp_add($x, $y));
    case 'bcmath':
      return bcadd($x, $y);
  }
}