msvcr120: Add acosh.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
oldstable
Alex Henrie 2017-07-12 18:05:09 +02:00 committed by Alexandre Julliard
parent 4df7ced7b0
commit f1dad14807
8 changed files with 67 additions and 12 deletions

2
configure vendored
View File

@ -17406,6 +17406,8 @@ $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
fi
for ac_func in \
acosh \
acoshf \
asinh \
asinhf \
cbrt \

View File

@ -2594,6 +2594,8 @@ then
fi
AC_CHECK_FUNCS(\
acosh \
acoshf \
asinh \
asinhf \
cbrt \

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -2898,6 +2898,51 @@ LDOUBLE CDECL MSVCR120_asinhl(LDOUBLE x)
return MSVCR120_asinh(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.@)

View File

@ -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

View File

@ -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