msvcrt: Hook up the unprefixed logb/logbf/logbl functions for msvcr120/ucrtbase.

Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Martin Storsjo 2019-04-23 13:46:57 +03:00 committed by Alexandre Julliard
parent fc1107382b
commit 8582615894
5 changed files with 23 additions and 23 deletions

View File

@ -276,9 +276,9 @@
@ cdecl log2(double) ucrtbase.log2 @ cdecl log2(double) ucrtbase.log2
@ cdecl log2f(float) ucrtbase.log2f @ cdecl log2f(float) ucrtbase.log2f
@ cdecl log2l(double) ucrtbase.log2l @ cdecl log2l(double) ucrtbase.log2l
@ stub logb @ cdecl logb(double) ucrtbase.logb
@ stub logbf @ cdecl logbf(float) ucrtbase.logbf
@ stub logbl @ cdecl logbl(double) ucrtbase.logbl
@ cdecl -arch=arm,x86_64,arm64 logf(float) ucrtbase.logf @ cdecl -arch=arm,x86_64,arm64 logf(float) ucrtbase.logf
@ cdecl lrint(double) ucrtbase.lrint @ cdecl lrint(double) ucrtbase.lrint
@ cdecl lrintf(float) ucrtbase.lrintf @ cdecl lrintf(float) ucrtbase.lrintf

View File

@ -2265,9 +2265,9 @@
@ cdecl log2(double) MSVCR120_log2 @ cdecl log2(double) MSVCR120_log2
@ cdecl log2f(float) MSVCR120_log2f @ cdecl log2f(float) MSVCR120_log2f
@ cdecl log2l(double) MSVCR120_log2l @ cdecl log2l(double) MSVCR120_log2l
@ stub logb @ cdecl logb(double) MSVCRT__logb
@ stub logbf @ cdecl logbf(float) MSVCRT__logbf
@ stub logbl @ cdecl logbl(double) MSVCRT__logb
@ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) MSVCRT_longjmp @ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) MSVCRT_longjmp
@ cdecl lrint(double) MSVCR120_lrint @ cdecl lrint(double) MSVCR120_lrint
@ cdecl lrintf(float) MSVCR120_lrintf @ cdecl lrintf(float) MSVCR120_lrintf

View File

@ -1928,9 +1928,9 @@
@ cdecl log2(double) msvcr120.log2 @ cdecl log2(double) msvcr120.log2
@ cdecl log2f(float) msvcr120.log2f @ cdecl log2f(float) msvcr120.log2f
@ cdecl log2l(double) msvcr120.log2l @ cdecl log2l(double) msvcr120.log2l
@ stub logb @ cdecl logb(double) msvcr120.logb
@ stub logbf @ cdecl logbf(float) msvcr120.logbf
@ stub logbl @ cdecl logbl(double) msvcr120.logbl
@ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) msvcr120.longjmp @ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) msvcr120.longjmp
@ cdecl lrint(double) msvcr120.lrint @ cdecl lrint(double) msvcr120.lrint
@ cdecl lrintf(float) msvcr120.lrintf @ cdecl lrintf(float) msvcr120.lrintf

View File

@ -157,6 +157,17 @@ float CDECL MSVCRT__nextafterf( float num, float next )
return nextafterf( num, next ); return nextafterf( num, next );
} }
/*********************************************************************
* _logbf (MSVCRT.@)
*/
float CDECL MSVCRT__logbf( float num )
{
float ret = logbf(num);
if (isnan(num)) math_error(_DOMAIN, "_logbf", num, 0, ret);
else if (!num) math_error(_SING, "_logbf", num, 0, ret);
return ret;
}
#endif #endif
#if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__) #if defined(__x86_64__) || defined(__arm__) || defined(__aarch64__)
@ -179,17 +190,6 @@ INT CDECL MSVCRT__isnanf( float num )
return isnan(num) != 0; return isnan(num) != 0;
} }
/*********************************************************************
* _logbf (MSVCRT.@)
*/
float CDECL MSVCRT__logbf( float num )
{
float ret = logbf(num);
if (isnan(num)) math_error(_DOMAIN, "_logbf", num, 0, ret);
else if (!num) math_error(_SING, "_logbf", num, 0, ret);
return ret;
}
/********************************************************************* /*********************************************************************
* MSVCRT_acosf (MSVCRT.@) * MSVCRT_acosf (MSVCRT.@)
*/ */

View File

@ -2398,9 +2398,9 @@
@ cdecl log2(double) MSVCR120_log2 @ cdecl log2(double) MSVCR120_log2
@ cdecl log2f(float) MSVCR120_log2f @ cdecl log2f(float) MSVCR120_log2f
@ cdecl log2l(double) MSVCR120_log2l @ cdecl log2l(double) MSVCR120_log2l
@ stub logb @ cdecl logb(double) MSVCRT__logb
@ stub logbf @ cdecl logbf(float) MSVCRT__logbf
@ stub logbl @ cdecl logbl(double) MSVCRT__logb
@ cdecl -arch=arm,x86_64,arm64 logf(float) MSVCRT_logf @ cdecl -arch=arm,x86_64,arm64 logf(float) MSVCRT_logf
@ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) MSVCRT_longjmp @ cdecl -arch=i386,x86_64,arm,arm64 longjmp(ptr long) MSVCRT_longjmp
@ cdecl lrint(double) MSVCR120_lrint @ cdecl lrint(double) MSVCR120_lrint