Module: wine Branch: master Commit: f78a604f9bfa6cf0da57a3d0805b7bfae65223e3 URL: https://gitlab.winehq.org/wine/wine/-/commit/f78a604f9bfa6cf0da57a3d0805b7bf...
Author: Alexandre Julliard julliard@winehq.org Date: Mon Apr 10 18:46:28 2023 +0200
ntdll: Use the fabs() implementation from the bundled musl library.
---
dlls/ntdll/math.c | 29 ----------------------------- 1 file changed, 29 deletions(-)
diff --git a/dlls/ntdll/math.c b/dlls/ntdll/math.c index 18369c9896b..73a5bb8cd33 100644 --- a/dlls/ntdll/math.c +++ b/dlls/ntdll/math.c @@ -16,23 +16,6 @@ * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA - * - * - * For functions copied from musl libc (http://musl.libc.org/): - * ==================================================== - * Copyright 2005-2020 Rich Felker, et al. - * - * Permission is hereby granted, free of charge, to any person obtaining - * a copy of this software and associated documentation files (the - * "Software"), to deal in the Software without restriction, including - * without limitation the rights to use, copy, modify, merge, publish, - * distribute, sublicense, and/or sell copies of the Software, and to - * permit persons to whom the Software is furnished to do so, subject to - * the following conditions: - * - * The above copyright notice and this permission notice shall be - * included in all copies or substantial portions of the Software. - * ==================================================== */
#include <math.h> @@ -55,18 +38,6 @@ int CDECL abs( int i ) return i >= 0 ? i : -i; }
-/********************************************************************* - * fabs (NTDLL.@) - * - * Copied from musl: src/math/fabsf.c - */ -double CDECL fabs( double x ) -{ - union { double f; UINT64 i; } u = { x }; - u.i &= ~0ull >> 1; - return u.f; -} - #if (defined(__GNUC__) || defined(__clang__)) && defined(__i386__)
#define FPU_DOUBLE(var) double var; \