ntdll: Copy fabs() implementation from msvcrt.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2021-10-26 10:33:47 +02:00
parent f0d3a7d33b
commit 9eb3adbc85
1 changed files with 6 additions and 2 deletions

View File

@ -183,10 +183,14 @@ double CDECL cos( double d )
/*********************************************************************
* fabs (NTDLL.@)
*
* Copied from musl: src/math/fabsf.c
*/
double CDECL fabs( double d )
double CDECL fabs( double x )
{
return unix_funcs->fabs( d );
union { double f; UINT64 i; } u = { x };
u.i &= ~0ull >> 1;
return u.f;
}
/*********************************************************************