ReactOS 0.4.16-dev-942-g91fadeb
anonymous_namespace{cfout.cpp}::fp_control_word_guard Class Reference

Public Member Functions

 fp_control_word_guard (unsigned int const mask=~0u)
 
 fp_control_word_guard (unsigned int const new_control, unsigned int const mask)
 
 ~fp_control_word_guard ()
 

Private Attributes

unsigned int _original_control_word
 
unsigned int _mask
 

Detailed Description

Definition at line 20 of file cfout.cpp.

Constructor & Destructor Documentation

◆ fp_control_word_guard() [1/2]

anonymous_namespace{cfout.cpp}::fp_control_word_guard::fp_control_word_guard ( unsigned int const  mask = ~0u)
inlineexplicit

Definition at line 23 of file cfout.cpp.

23 : _mask(mask)
24 {
26 }
GLenum GLint GLuint mask
Definition: glext.h:6028
_CRT_MANAGED_FP_DEPRECATE _ACRTIMP errno_t __cdecl _controlfp_s(_Out_opt_ unsigned int *_CurrentState, _In_ unsigned int _NewValue, _In_ unsigned int _Mask)

◆ fp_control_word_guard() [2/2]

anonymous_namespace{cfout.cpp}::fp_control_word_guard::fp_control_word_guard ( unsigned int const  new_control,
unsigned int const  mask 
)
inline

Definition at line 28 of file cfout.cpp.

28 : _mask(mask)
29 {
30 unsigned int float_control;
32 _controlfp_s(&float_control, new_control, _mask);
33 }

◆ ~fp_control_word_guard()

anonymous_namespace{cfout.cpp}::fp_control_word_guard::~fp_control_word_guard ( )
inline

Definition at line 35 of file cfout.cpp.

36 {
37 unsigned int reset_cw;
39 }

Member Data Documentation

◆ _mask

unsigned int anonymous_namespace{cfout.cpp}::fp_control_word_guard::_mask
private

Definition at line 43 of file cfout.cpp.

◆ _original_control_word

unsigned int anonymous_namespace{cfout.cpp}::fp_control_word_guard::_original_control_word
private

Definition at line 42 of file cfout.cpp.


The documentation for this class was generated from the following file: