Commit 9eb3adbc authored by Alexandre Julliard's avatar Alexandre Julliard

ntdll: Copy fabs() implementation from msvcrt.

parent f0d3a7d3
...@@ -183,10 +183,14 @@ double CDECL cos( double d ) ...@@ -183,10 +183,14 @@ double CDECL cos( double d )
/********************************************************************* /*********************************************************************
* fabs (NTDLL.@) * 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;
} }
/********************************************************************* /*********************************************************************
......
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