Commit 8a57f501 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Avoid using scalb function.

parent b9032065
......@@ -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);
}
/*********************************************************************
......
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