http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b903206
)
msvcrt: Avoid using scalb function.
author
Piotr Caban
<piotr@codeweavers.com>
Sun, 28 Mar 2010 22:01:13 +0000
(
00:01
+0200)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 29 Mar 2010 13:50:19 +0000
(15:50 +0200)
dlls/msvcrt/math.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/msvcrt/math.c
b/dlls/msvcrt/math.c
index ae408b9fde65190a63dddf3f2048f4f9bfe2df9c..317c8eb7d29991f0adf4a0fcb1d0845b7302d10f 100644
(file)
--- 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, dbl
power);
+ return
ldexp(num,
power);
}
/*********************************************************************