mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
msvcrt: Added implementation of _controlfp_s.
This commit is contained in:
parent
abb746002b
commit
bfd0866be8
@ -327,7 +327,7 @@
|
||||
@ stub _configthreadlocale
|
||||
@ cdecl _control87(long long) msvcrt._control87
|
||||
@ cdecl _controlfp(long long) msvcrt._controlfp
|
||||
@ stub _controlfp_s
|
||||
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
|
||||
@ cdecl _copysign( double double ) msvcrt._copysign
|
||||
@ varargs _cprintf(str) msvcrt._cprintf
|
||||
@ stub _cprintf_l
|
||||
|
@ -319,7 +319,7 @@
|
||||
@ stub _configthreadlocale
|
||||
@ cdecl _control87(long long) msvcrt._control87
|
||||
@ cdecl _controlfp(long long) msvcrt._controlfp
|
||||
@ stub _controlfp_s
|
||||
@ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
|
||||
@ cdecl _copysign( double double ) msvcrt._copysign
|
||||
@ varargs _cprintf(str) msvcrt._cprintf
|
||||
@ stub _cprintf_l
|
||||
|
@ -701,6 +701,27 @@ unsigned int CDECL _controlfp(unsigned int newval, unsigned int mask)
|
||||
#endif
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _controlfp_s (MSVCRT.@)
|
||||
*/
|
||||
int CDECL _controlfp_s(unsigned int *cur, unsigned int newval, unsigned int mask)
|
||||
{
|
||||
unsigned int flags;
|
||||
#ifdef __i386__
|
||||
FIXME("(%p %u %u) semi-stub\n", cur, newval, mask);
|
||||
|
||||
flags = _control87( newval, mask & ~MSVCRT__EM_DENORMAL );
|
||||
|
||||
if(cur)
|
||||
*cur = flags;
|
||||
|
||||
return 0;
|
||||
#else
|
||||
FIXME(":Not Implemented!\n");
|
||||
return 0;
|
||||
#endif
|
||||
}
|
||||
|
||||
/*********************************************************************
|
||||
* _copysign (MSVCRT.@)
|
||||
*/
|
||||
|
@ -299,7 +299,7 @@
|
||||
@ extern _commode MSVCRT__commode
|
||||
@ cdecl _control87(long long)
|
||||
@ cdecl _controlfp(long long)
|
||||
# stub _controlfp_s
|
||||
@ cdecl _controlfp_s(ptr long long)
|
||||
@ cdecl _copysign( double double )
|
||||
@ varargs _cprintf(str)
|
||||
# stub _cprintf_l
|
||||
|
Loading…
Reference in New Issue
Block a user