msvcrt: Avoid using scalb function.
This commit is contained in:
parent
b90320652d
commit
8a57f501c8
|
@ -465,10 +465,8 @@ unsigned int CDECL _rotr(unsigned int num, int shift)
|
||||||
*/
|
*/
|
||||||
double CDECL MSVCRT__scalb(double num, MSVCRT_long power)
|
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;
|
if (!finite(num)) *MSVCRT__errno() = MSVCRT_EDOM;
|
||||||
return scalb(num, dblpower);
|
return ldexp(num, power);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*********************************************************************
|
/*********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue