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

This commit is contained in:
Alexandre Julliard 2023-04-03 15:38:32 +02:00
parent 233eea6cfa
commit b5ba4baa51
12 changed files with 24 additions and 50 deletions

View file

@ -64,7 +64,7 @@
@ extern _commode_dll MSVCRT__commode
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _copysign(double double)
@ cdecl _copysign(double double) copysign
@ varargs _cprintf(str)
@ extern _cpumode_dll CRTDLL__cpumode_dll
@ cdecl _cputs(str)

View file

@ -733,8 +733,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl -arch=!i386 _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str)
@ stub _cprintf_l
@ stub _cprintf_p

View file

@ -1081,8 +1081,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl -arch=!i386 _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str)
@ stub _cprintf_l
@ stub _cprintf_p

View file

@ -1073,8 +1073,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl _copysignf(float float) copysignf
@ varargs _cprintf(str)
@ stub _cprintf_l
@ stub _cprintf_p
@ -2091,9 +2091,9 @@
@ stub conj
@ stub conjf
@ stub conjl
@ cdecl copysign(double double) _copysign
@ cdecl copysignf(float float) _copysignf
@ cdecl copysignl(double double) _copysign
@ cdecl copysign(double double)
@ cdecl copysignf(float float)
@ cdecl copysignl(double double) copysign
@ cdecl cos(double)
@ cdecl -arch=!i386 cosf(float)
@ cdecl cosh(double)

View file

@ -258,7 +258,7 @@
@ extern _commode MSVCRT__commode
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _copysign(double double)
@ cdecl _copysign(double double) copysign
@ varargs _cprintf(str)
@ cdecl _cputs(str)
@ cdecl _cputws(wstr)

View file

@ -253,7 +253,7 @@
@ extern _commode MSVCRT__commode
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _copysign(double double)
@ cdecl _copysign(double double) copysign
@ varargs _cprintf(str)
@ cdecl _cputs(str)
@ cdecl _cputws(wstr)

View file

@ -397,8 +397,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl -arch=!i386 _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str)
@ stub _cprintf_l
@ stub _cprintf_p

View file

@ -380,8 +380,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl -arch=!i386 _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str)
@ stub _cprintf_l
@ stub _cprintf_p

View file

@ -216,19 +216,6 @@ float CDECL _chgsignf( float num )
return u.f;
}
/*********************************************************************
* _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.@)
*
@ -5723,19 +5710,6 @@ int CDECL fesetround(int round_mode)
#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.@)
*/

View file

@ -367,8 +367,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl -arch=!i386 _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl -arch=!i386 _copysignf(float float) copysignf
@ varargs _cprintf(str)
# stub _cprintf_l(str ptr)
# stub _cprintf_p(str)

View file

@ -242,7 +242,7 @@
@ extern _commode MSVCRT__commode
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _copysign(double double)
@ cdecl _copysign(double double) copysign
@ varargs _cprintf(str)
@ cdecl _cputs(str)
@ cdecl _creat(str long)

View file

@ -237,8 +237,8 @@
@ cdecl _control87(long long)
@ cdecl _controlfp(long long)
@ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign(double double)
@ cdecl _copysignf(float float)
@ cdecl _copysign(double double) copysign
@ cdecl _copysignf(float float) copysignf
@ cdecl _cputs(str)
@ cdecl _cputws(wstr)
@ cdecl _creat(str long)
@ -2236,9 +2236,9 @@
@ stub conj
@ stub conjf
@ stub conjl
@ cdecl copysign(double double) _copysign
@ cdecl copysignf(float float) _copysignf
@ cdecl copysignl(double double) _copysign
@ cdecl copysign(double double)
@ cdecl copysignf(float float)
@ cdecl copysignl(double double) copysign
@ cdecl cos(double)
@ cdecl -arch=!i386 cosf(float)
@ cdecl cosh(double)