msvcrt: Added implementation of _controlfp_s.

This commit is contained in:
Piotr Caban 2010-04-01 12:41:06 +02:00 committed by Alexandre Julliard
parent abb746002b
commit bfd0866be8
4 changed files with 24 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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.@)
*/

View File

@ -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