Piotr Caban : msvcrt: Avoid using scalb function.
Alexandre Julliard
julliard at winehq.org
Mon Mar 29 09:57:58 CDT 2010
Module: wine
Branch: master
Commit: 8a57f501c84410f8478c930698d37ea7601cd55c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=8a57f501c84410f8478c930698d37ea7601cd55c
Author: Piotr Caban <piotr at codeweavers.com>
Date: Mon Mar 29 00:01:13 2010 +0200
msvcrt: Avoid using scalb function.
---
dlls/msvcrt/math.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/dlls/msvcrt/math.c b/dlls/msvcrt/math.c
index ae408b9..317c8eb 100644
--- a/dlls/msvcrt/math.c
+++ b/dlls/msvcrt/math.c
@@ -465,10 +465,8 @@ unsigned int CDECL _rotr(unsigned int num, int shift)
*/
double CDECL MSVCRT__scalb(double num, MSVCRT_long power)
{
- /* Note - Can't forward directly as libc expects y as double */
- double dblpower = (double)power;
if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
- return scalb(num, dblpower);
+ return ldexp(num, power);
}
/*********************************************************************
More information about the wine-cvs
mailing list