summaryrefslogtreecommitdiff
path: root/ext/standard/math.c
diff options
context:
space:
mode:
authorJeroen van Wolffelaar <jeroen@php.net>2001-08-15 19:01:32 +0000
committerJeroen van Wolffelaar <jeroen@php.net>2001-08-15 19:01:32 +0000
commitd62fbbd5a856fca9b96230e89dc4b31229681782 (patch)
treeb3beff146908df94ade7d21ebc1f73457cce09af /ext/standard/math.c
parent0a6878cc0226d1dc38309b277569dcadb13f83e3 (diff)
downloadphp-git-d62fbbd5a856fca9b96230e89dc4b31229681782.tar.gz
MF407
Diffstat (limited to 'ext/standard/math.c')
-rw-r--r--ext/standard/math.c53
1 files changed, 0 insertions, 53 deletions
diff --git a/ext/standard/math.c b/ext/standard/math.c
index 678f737759..106d6efe50 100644
--- a/ext/standard/math.c
+++ b/ext/standard/math.c
@@ -510,42 +510,7 @@ PHP_FUNCTION(exp)
}
/* }}} */
-/* {{{ proto double exp2(double number)
- Returns 2 raised to the power of the number */
-PHP_FUNCTION(exp2)
-{
- zval **num;
-
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
- WRONG_PARAM_COUNT;
- }
- convert_to_double_ex(num);
- // libc function is broken in RH Linux 6.1, glibc 2.1.3
- //Z_DVAL_P(return_value) = exp2(Z_DVAL_PP(num));
- Z_DVAL_P(return_value) = pow(2.0, Z_DVAL_PP(num));
- Z_TYPE_P(return_value) = IS_DOUBLE;
-}
-
-/* }}} */
-/* {{{ proto double exp10(double number)
- Returns 10 raised to the power of the number */
-
-PHP_FUNCTION(exp10)
-{
- zval **num;
-
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
- WRONG_PARAM_COUNT;
- }
- convert_to_double_ex(num);
- // libc function is broken in RH Linux 6.1, glibc 2.1.3
- //Z_DVAL_P(return_value) = exp10(Z_DVAL_PP(num));
- Z_DVAL_P(return_value) = pow(10.0, Z_DVAL_PP(num));
- Z_TYPE_P(return_value) = IS_DOUBLE;
-}
-
-/* }}} */
#ifndef PHP_WIN32
/* {{{ proto double expm1(double number)
@@ -600,24 +565,6 @@ PHP_FUNCTION(log)
}
/* }}} */
-/* {{{ proto double log2(double number)
- Returns the base-2 logarithm of the number */
-
-PHP_FUNCTION(log2)
-{
- zval **num;
-
- if (ZEND_NUM_ARGS() != 1 || zend_get_parameters_ex(1, &num) == FAILURE) {
- WRONG_PARAM_COUNT;
- }
- convert_to_double_ex(num);
- // libc function is broken in RH Linux 6.1, glibc 2.1.3
- //Z_DVAL_P(return_value) = log2(Z_DVAL_PP(num));
- Z_DVAL_P(return_value) = log(Z_DVAL_PP(num))/log(2.0);
- Z_TYPE_P(return_value) = IS_DOUBLE;
-}
-
-/* }}} */
/* {{{ proto double log10(double number)
Returns the base-10 logarithm of the number */