Commit b5ba4baa authored by Alexandre Julliard's avatar Alexandre Julliard

msvcrt: Use the copysign()/copysignf() implementation from the bundled musl library.

parent 233eea6c
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
@ extern _commode_dll MSVCRT__commode @ extern _commode_dll MSVCRT__commode
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ extern _cpumode_dll CRTDLL__cpumode_dll @ extern _cpumode_dll CRTDLL__cpumode_dll
@ cdecl _cputs(str) @ cdecl _cputs(str)
......
...@@ -733,8 +733,8 @@ ...@@ -733,8 +733,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) @ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ stub _cprintf_l @ stub _cprintf_l
@ stub _cprintf_p @ stub _cprintf_p
......
...@@ -1081,8 +1081,8 @@ ...@@ -1081,8 +1081,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) @ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ stub _cprintf_l @ stub _cprintf_l
@ stub _cprintf_p @ stub _cprintf_p
......
...@@ -1073,8 +1073,8 @@ ...@@ -1073,8 +1073,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl _copysignf(float float) @ cdecl _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ stub _cprintf_l @ stub _cprintf_l
@ stub _cprintf_p @ stub _cprintf_p
...@@ -2091,9 +2091,9 @@ ...@@ -2091,9 +2091,9 @@
@ stub conj @ stub conj
@ stub conjf @ stub conjf
@ stub conjl @ stub conjl
@ cdecl copysign(double double) _copysign @ cdecl copysign(double double)
@ cdecl copysignf(float float) _copysignf @ cdecl copysignf(float float)
@ cdecl copysignl(double double) _copysign @ cdecl copysignl(double double) copysign
@ cdecl cos(double) @ cdecl cos(double)
@ cdecl -arch=!i386 cosf(float) @ cdecl -arch=!i386 cosf(float)
@ cdecl cosh(double) @ cdecl cosh(double)
......
...@@ -258,7 +258,7 @@ ...@@ -258,7 +258,7 @@
@ extern _commode MSVCRT__commode @ extern _commode MSVCRT__commode
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ cdecl _cputs(str) @ cdecl _cputs(str)
@ cdecl _cputws(wstr) @ cdecl _cputws(wstr)
......
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
@ extern _commode MSVCRT__commode @ extern _commode MSVCRT__commode
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ cdecl _cputs(str) @ cdecl _cputs(str)
@ cdecl _cputws(wstr) @ cdecl _cputws(wstr)
......
...@@ -397,8 +397,8 @@ ...@@ -397,8 +397,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) @ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ stub _cprintf_l @ stub _cprintf_l
@ stub _cprintf_p @ stub _cprintf_p
......
...@@ -380,8 +380,8 @@ ...@@ -380,8 +380,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) @ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ stub _cprintf_l @ stub _cprintf_l
@ stub _cprintf_p @ stub _cprintf_p
......
...@@ -217,19 +217,6 @@ float CDECL _chgsignf( float num ) ...@@ -217,19 +217,6 @@ float CDECL _chgsignf( float num )
} }
/********************************************************************* /*********************************************************************
* _copysignf (MSVCRT.@)
*
* Copied from musl: src/math/copysignf.c
*/
float CDECL _copysignf( float x, float y )
{
union { float f; UINT32 i; } ux = { x }, uy = { y };
ux.i &= 0x7fffffff;
ux.i |= uy.i & 0x80000000;
return ux.f;
}
/*********************************************************************
* _nextafterf (MSVCRT.@) * _nextafterf (MSVCRT.@)
* *
* Copied from musl: src/math/nextafterf.c * Copied from musl: src/math/nextafterf.c
...@@ -5724,19 +5711,6 @@ int CDECL fesetround(int round_mode) ...@@ -5724,19 +5711,6 @@ int CDECL fesetround(int round_mode)
#endif /* _MSVCR_VER>=120 */ #endif /* _MSVCR_VER>=120 */
/********************************************************************* /*********************************************************************
* _copysign (MSVCRT.@)
*
* Copied from musl: src/math/copysign.c
*/
double CDECL _copysign( double x, double y )
{
union { double f; UINT64 i; } ux = { x }, uy = { y };
ux.i &= ~0ull >> 1;
ux.i |= uy.i & 1ull << 63;
return ux.f;
}
/*********************************************************************
* _finite (MSVCRT.@) * _finite (MSVCRT.@)
*/ */
int CDECL _finite(double num) int CDECL _finite(double num)
......
...@@ -367,8 +367,8 @@ ...@@ -367,8 +367,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) @ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str) @ varargs _cprintf(str)
# stub _cprintf_l(str ptr) # stub _cprintf_l(str ptr)
# stub _cprintf_p(str) # stub _cprintf_p(str)
......
...@@ -242,7 +242,7 @@ ...@@ -242,7 +242,7 @@
@ extern _commode MSVCRT__commode @ extern _commode MSVCRT__commode
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ varargs _cprintf(str) @ varargs _cprintf(str)
@ cdecl _cputs(str) @ cdecl _cputs(str)
@ cdecl _creat(str long) @ cdecl _creat(str long)
......
...@@ -237,8 +237,8 @@ ...@@ -237,8 +237,8 @@
@ cdecl _control87(long long) @ cdecl _control87(long long)
@ cdecl _controlfp(long long) @ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long) @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double) @ cdecl _copysign(double double) copysign
@ cdecl _copysignf(float float) @ cdecl _copysignf(float float) copysignf
@ cdecl _cputs(str) @ cdecl _cputs(str)
@ cdecl _cputws(wstr) @ cdecl _cputws(wstr)
@ cdecl _creat(str long) @ cdecl _creat(str long)
...@@ -2236,9 +2236,9 @@ ...@@ -2236,9 +2236,9 @@
@ stub conj @ stub conj
@ stub conjf @ stub conjf
@ stub conjl @ stub conjl
@ cdecl copysign(double double) _copysign @ cdecl copysign(double double)
@ cdecl copysignf(float float) _copysignf @ cdecl copysignf(float float)
@ cdecl copysignl(double double) _copysign @ cdecl copysignl(double double) copysign
@ cdecl cos(double) @ cdecl cos(double)
@ cdecl -arch=!i386 cosf(float) @ cdecl -arch=!i386 cosf(float)
@ cdecl cosh(double) @ cdecl cosh(double)
......
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