mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 05:32:21 +00:00
[CRT]
Reimplemented _scalb properly. This fixes 19 tests. svn path=/trunk/; revision=54440
This commit is contained in:
parent
f3942a15e7
commit
531147c111
1 changed files with 5 additions and 18 deletions
|
@ -1,30 +1,17 @@
|
|||
/*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS system libraries
|
||||
* FILE: lib/crt/??????
|
||||
* PURPOSE: Unknown
|
||||
* PROGRAMER: Unknown
|
||||
* UPDATE HISTORY:
|
||||
* 25/11/05: Added license header
|
||||
* FILE: lib/sdk/crt/float/scalb.c
|
||||
* PURPOSE: Floating-point number scaling
|
||||
* PROGRAMER: Pierre Schweitzer (pierre@reactos.org)
|
||||
*/
|
||||
|
||||
#include <precomp.h>
|
||||
#include <internal/ieee.h>
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
double _scalb( double __x, long e )
|
||||
double _scalb(double x, long exp)
|
||||
{
|
||||
union
|
||||
{
|
||||
double* __x;
|
||||
double_s* x;
|
||||
} x;
|
||||
|
||||
x.__x = &__x;
|
||||
|
||||
x.x->exponent += e;
|
||||
|
||||
return __x;
|
||||
return ldexp(x, exp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue