Commit f1dad148 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

msvcr120: Add acosh.

parent 4df7ced7
......@@ -17406,6 +17406,8 @@ $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
fi
for ac_func in \
acosh \
acoshf \
asinh \
asinhf \
cbrt \
......
......@@ -2594,6 +2594,8 @@ then
fi
AC_CHECK_FUNCS(\
acosh \
acoshf \
asinh \
asinhf \
cbrt \
......
......@@ -124,9 +124,9 @@
@ cdecl _yn(long double) ucrtbase._yn
@ cdecl acos(double) ucrtbase.acos
@ cdecl -arch=arm,x86_64 acosf(float) ucrtbase.acosf
@ stub acosh
@ stub acoshf
@ stub acoshl
@ cdecl acosh(double) ucrtbase.acosh
@ cdecl acoshf(float) ucrtbase.acoshf
@ cdecl acoshl(double) ucrtbase.acoshl
@ cdecl asin(double) ucrtbase.asin
@ cdecl -arch=arm,x86_64 asinf(float) ucrtbase.asinf
@ cdecl asinh(double) ucrtbase.asinh
......
......@@ -2011,9 +2011,9 @@
@ cdecl abs(long) MSVCRT_abs
@ cdecl acos(double) MSVCRT_acos
@ cdecl -arch=arm,x86_64 acosf(float) MSVCRT_acosf
@ stub acosh
@ stub acoshf
@ stub acoshl
@ cdecl acosh(double) MSVCR120_acosh
@ cdecl acoshf(float) MSVCR120_acoshf
@ cdecl acoshl(double) MSVCR120_acoshl
@ cdecl asctime(ptr) MSVCRT_asctime
@ cdecl asctime_s(ptr long ptr) MSVCRT_asctime_s
@ cdecl asin(double) MSVCRT_asin
......
......@@ -1677,9 +1677,9 @@
@ cdecl abs(long) msvcr120.abs
@ cdecl acos(double) msvcr120.acos
@ cdecl -arch=arm,x86_64 acosf(float) msvcr120.acosf
@ stub acosh
@ stub acoshf
@ stub acoshl
@ cdecl acosh(double) msvcr120.acosh
@ cdecl acoshf(float) msvcr120.acoshf
@ cdecl acoshl(double) msvcr120.acoshl
@ cdecl asctime(ptr) msvcr120.asctime
@ cdecl asctime_s(ptr long ptr) msvcr120.asctime_s
@ cdecl asin(double) msvcr120.asin
......
......@@ -2899,6 +2899,51 @@ LDOUBLE CDECL MSVCR120_asinhl(LDOUBLE x)
}
/*********************************************************************
* acosh (MSVCR120.@)
*/
double CDECL MSVCR120_acosh(double x)
{
if (x < 1) *MSVCRT__errno() = MSVCRT_EDOM;
#ifdef HAVE_ACOSH
return acosh(x);
#else
if (x < 1) {
MSVCRT_fenv_t env;
MSVCRT_fegetenv(&env);
env.status |= MSVCRT__SW_INVALID;
MSVCRT_fesetenv(&env);
return NAN;
}
if (!isfinite(x*x)) return log(2) + log(x);
return log(x + sqrt(x*x-1));
#endif
}
/*********************************************************************
* acoshf (MSVCR120.@)
*/
float CDECL MSVCR120_acoshf(float x)
{
#ifdef HAVE_ACOSHF
if (x < 1) *MSVCRT__errno() = MSVCRT_EDOM;
return acoshf(x);
#else
return MSVCR120_acosh(x);
#endif
}
/*********************************************************************
* acoshl (MSVCR120.@)
*/
LDOUBLE CDECL MSVCR120_acoshl(LDOUBLE x)
{
return MSVCR120_acosh(x);
}
/*********************************************************************
* _scalb (MSVCRT.@)
* scalbn (MSVCR120.@)
* scalbln (MSVCR120.@)
......
......@@ -2153,9 +2153,9 @@
@ cdecl abs(long) MSVCRT_abs
@ cdecl acos(double) MSVCRT_acos
@ cdecl -arch=arm,x86_64 acosf(float) MSVCRT_acosf
@ stub acosh
@ stub acoshf
@ stub acoshl
@ cdecl acosh(double) MSVCR120_acosh
@ cdecl acoshf(float) MSVCR120_acoshf
@ cdecl acoshl(double) MSVCR120_acoshl
@ cdecl asctime(ptr) MSVCRT_asctime
@ cdecl asctime_s(ptr long ptr) MSVCRT_asctime_s
@ cdecl asin(double) MSVCRT_asin
......
......@@ -10,6 +10,12 @@
/* Define to the file extension for executables. */
#undef EXEEXT
/* Define to 1 if you have the `acosh' function. */
#undef HAVE_ACOSH
/* Define to 1 if you have the `acoshf' function. */
#undef HAVE_ACOSHF
/* Define to 1 if you have the <alias.h> header file. */
#undef HAVE_ALIAS_H
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment