mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
fix acosh for vs2012 and earlier
This commit is contained in:
parent
3aa5583cab
commit
f4ed876db1
1 changed files with 8 additions and 0 deletions
|
@ -240,7 +240,15 @@ static double php_acosh(double x)
|
|||
#ifdef HAVE_ACOSH
|
||||
return(acosh(x));
|
||||
#else
|
||||
# ifdef _WIN64
|
||||
if (x >= 1) {
|
||||
return log(x + sqrt(x * x - 1));
|
||||
} else {
|
||||
return (DBL_MAX+DBL_MAX)-(DBL_MAX+DBL_MAX);
|
||||
}
|
||||
# else
|
||||
return(log(x + sqrt(x * x - 1)));
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
/* }}} */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue