Commit bfd0866b authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

msvcrt: Added implementation of _controlfp_s.

parent abb74600
...@@ -327,7 +327,7 @@ ...@@ -327,7 +327,7 @@
@ stub _configthreadlocale @ stub _configthreadlocale
@ cdecl _control87(long long) msvcrt._control87 @ cdecl _control87(long long) msvcrt._control87
@ cdecl _controlfp(long long) msvcrt._controlfp @ cdecl _controlfp(long long) msvcrt._controlfp
@ stub _controlfp_s @ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
@ cdecl _copysign( double double ) msvcrt._copysign @ cdecl _copysign( double double ) msvcrt._copysign
@ varargs _cprintf(str) msvcrt._cprintf @ varargs _cprintf(str) msvcrt._cprintf
@ stub _cprintf_l @ stub _cprintf_l
......
...@@ -319,7 +319,7 @@ ...@@ -319,7 +319,7 @@
@ stub _configthreadlocale @ stub _configthreadlocale
@ cdecl _control87(long long) msvcrt._control87 @ cdecl _control87(long long) msvcrt._control87
@ cdecl _controlfp(long long) msvcrt._controlfp @ cdecl _controlfp(long long) msvcrt._controlfp
@ stub _controlfp_s @ cdecl _controlfp_s(ptr long long) msvcrt._controlfp_s
@ cdecl _copysign( double double ) msvcrt._copysign @ cdecl _copysign( double double ) msvcrt._copysign
@ varargs _cprintf(str) msvcrt._cprintf @ varargs _cprintf(str) msvcrt._cprintf
@ stub _cprintf_l @ stub _cprintf_l
......
...@@ -702,6 +702,27 @@ unsigned int CDECL _controlfp(unsigned int newval, unsigned int mask) ...@@ -702,6 +702,27 @@ unsigned int CDECL _controlfp(unsigned int newval, unsigned int mask)
} }
/********************************************************************* /*********************************************************************
* _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.@) * _copysign (MSVCRT.@)
*/ */
double CDECL _copysign(double num, double sign) double CDECL _copysign(double num, double sign)
......
...@@ -299,7 +299,7 @@ ...@@ -299,7 +299,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)
# stub _controlfp_s @ cdecl _controlfp_s(ptr long long)
@ cdecl _copysign( double double ) @ cdecl _copysign( double double )
@ varargs _cprintf(str) @ varargs _cprintf(str)
# stub _cprintf_l # stub _cprintf_l
......
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