ReactOS 0.4.15-dev-8348-gc1b9bb5
_controlfp_s.c File Reference
#include <precomp.h>
#include <float.h>
Include dependency graph for _controlfp_s.c:

Go to the source code of this file.

Macros

#define INVALID_MASK   ~(_MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC | _MCW_DN)
 

Functions

int CDECL _controlfp_s (unsigned int *cur, unsigned int newval, unsigned int mask)
 

Macro Definition Documentation

◆ INVALID_MASK

#define INVALID_MASK   ~(_MCW_EM | _MCW_IC | _MCW_RC | _MCW_PC | _MCW_DN)

Definition at line 16 of file _controlfp_s.c.

Function Documentation

◆ _controlfp_s()

int CDECL _controlfp_s ( unsigned int cur,
unsigned int  newval,
unsigned int  mask 
)

Definition at line 19 of file _controlfp_s.c.

20{
21 unsigned int val;
22
23 if (!MSVCRT_CHECK_PMT((newval & mask & INVALID_MASK) == 0))
24 {
25 if (cur) *cur = _controlfp(0, 0); /* retrieve it anyway */
26 return EINVAL;
27 }
28 val = _controlfp(newval, mask);
29 if (cur) *cur = val;
30 return 0;
31}
#define INVALID_MASK
Definition: _controlfp_s.c:16
#define EINVAL
Definition: acclib.h:90
FxCollectionEntry * cur
GLenum GLint GLuint mask
Definition: glext.h:6028
GLuint GLfloat * val
Definition: glext.h:7180
__MINGW_NOTHROW _CRTIMP unsigned int __cdecl _controlfp(_In_ unsigned int unNew, _In_ unsigned int unMask)
#define MSVCRT_CHECK_PMT(x)
Definition: mbstowcs_s.c:26

Referenced by START_TEST().