| 7 openid.inc | _openid_get_math_library() |
| 8 openid.inc | _openid_get_math_library() |
Determine the available math library GMP vs. BCMath, favouring GMP for performance.
8 calls to _openid_get_math_library()
File
- modules/
openid/ openid.inc, line 704 - OpenID utility functions.
Code
function _openid_get_math_library() {
// Not drupal_static(), because a function is not going to disappear and
// change the output of this under any circumstances.
static $library;
if (empty($library)) {
if (function_exists('gmp_add')) {
$library = 'gmp';
}
elseif (function_exists('bcadd')) {
$library = 'bcmath';
}
}
return $library;
}
Login or register to post comments