ReactOS 0.4.16-dev-835-gd769f56
fenv.h File Reference
#include <corecrt.h>
#include <float.h>
Include dependency graph for fenv.h:

Go to the source code of this file.

Classes

struct  fenv_t
 

Macros

#define _FENV
 
#define FE_TONEAREST   _RC_NEAR
 
#define FE_UPWARD   _RC_UP
 
#define FE_DOWNWARD   _RC_DOWN
 
#define FE_TOWARDZERO   _RC_CHOP
 
#define FE_ROUND_MASK   _MCW_RC
 
#define FE_INEXACT   _SW_INEXACT
 
#define FE_UNDERFLOW   _SW_UNDERFLOW
 
#define FE_OVERFLOW   _SW_OVERFLOW
 
#define FE_DIVBYZERO   _SW_ZERODIVIDE
 
#define FE_INVALID   _SW_INVALID
 
#define FE_ALL_EXCEPT   (FE_DIVBYZERO | FE_INEXACT | FE_INVALID | FE_OVERFLOW | FE_UNDERFLOW)
 
#define CPP_EXTERN
 
#define FE_DFL_ENV   (&_Fenv1)
 

Typedefs

typedef unsigned long fexcept_t
 
typedef struct fenv_t fenv_t
 

Functions

_ACRTIMP int __cdecl fegetround (void)
 
_ACRTIMP int __cdecl fesetround (_In_ int _Round)
 
_ACRTIMP int __cdecl fegetenv (_Out_ fenv_t *_Env)
 
_ACRTIMP int __cdecl fesetenv (_In_ fenv_t const *_Env)
 
_ACRTIMP int __cdecl feclearexcept (_In_ int _Flags)
 
_ACRTIMP _Success_ (return==0) int __cdecl feholdexcept(_Out_ fenv_t *_Env)
 Deletes the virtual mapping and optionally gives back the page & dirty bit.
 
_ACRTIMP int __cdecl fetestexcept (_In_ int _Flags)
 
_ACRTIMP int __cdecl fegetexceptflag (_Out_ fexcept_t *_Except, _In_ int _TestFlags)
 
_ACRTIMP int __cdecl fesetexceptflag (_In_ fexcept_t const *_Except, _In_ int _SetFlags)
 
CPP_EXTERN __declspec (selectany) const fenv_t _Fenv1
 

Macro Definition Documentation

◆ _FENV

#define _FENV

Definition at line 10 of file fenv.h.

◆ CPP_EXTERN

#define CPP_EXTERN

Definition at line 70 of file fenv.h.

◆ FE_ALL_EXCEPT

Definition at line 52 of file fenv.h.

◆ FE_DFL_ENV

#define FE_DFL_ENV   (&_Fenv1)

Definition at line 81 of file fenv.h.

◆ FE_DIVBYZERO

#define FE_DIVBYZERO   _SW_ZERODIVIDE

Definition at line 49 of file fenv.h.

◆ FE_DOWNWARD

#define FE_DOWNWARD   _RC_DOWN

Definition at line 25 of file fenv.h.

◆ FE_INEXACT

#define FE_INEXACT   _SW_INEXACT

Definition at line 46 of file fenv.h.

◆ FE_INVALID

#define FE_INVALID   _SW_INVALID

Definition at line 50 of file fenv.h.

◆ FE_OVERFLOW

#define FE_OVERFLOW   _SW_OVERFLOW

Definition at line 48 of file fenv.h.

◆ FE_ROUND_MASK

#define FE_ROUND_MASK   _MCW_RC

Definition at line 28 of file fenv.h.

◆ FE_TONEAREST

#define FE_TONEAREST   _RC_NEAR

Definition at line 23 of file fenv.h.

◆ FE_TOWARDZERO

#define FE_TOWARDZERO   _RC_CHOP

Definition at line 26 of file fenv.h.

◆ FE_UNDERFLOW

#define FE_UNDERFLOW   _SW_UNDERFLOW

Definition at line 47 of file fenv.h.

◆ FE_UPWARD

#define FE_UPWARD   _RC_UP

Definition at line 24 of file fenv.h.

Typedef Documentation

◆ fenv_t

typedef struct fenv_t fenv_t

◆ fexcept_t

Definition at line 37 of file fenv.h.

Function Documentation

◆ __declspec()

CPP_EXTERN __declspec ( selectany  ) const

◆ _Success_()

_ACRTIMP _Success_ ( return  )

Deletes the virtual mapping and optionally gives back the page & dirty bit.

Parameters
Process- The process this address belongs to, or NULL if system address.
Address- The address to unmap.
WasDirty- Optional param receiving the dirty bit of the PTE.
Page- Optional param receiving the page number previously mapped to this address.
Returns
Whether there was actually a page mapped at the given address.

Deletes the virtual mapping and optionally gives back the page & dirty bit.

Parameters
[in,opt]hDC An optional GDI device context handle.
[in]hFontThe GDI handle to the font.
[out]HeightIn case of success, receives the cell height size (in pixels).
[out]WidthIn case of success, receives the cell height size (in pixels).
Returns
TRUE if success, FALSE in case of failure.

Definition at line 203 of file firmware.c.

207{
210
211 /* Check input parameters */
212 if (FirmwareType == NULL)
213 {
215 return FALSE;
216 }
217
218 /* Query firmware type */
220 &BootInfo,
221 sizeof(BootInfo),
222 0);
223 if (!NT_SUCCESS(Status))
224 {
226 return FALSE;
227 }
228
229 *FirmwareType = BootInfo.FirmwareType;
230 return TRUE;
231}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
Status
Definition: gdiplustypes.h:25
@ SystemBootEnvironmentInformation
Definition: extypes.h:307
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:167
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)

◆ feclearexcept()

_ACRTIMP int __cdecl feclearexcept ( _In_ int  _Flags)

◆ fegetenv()

_ACRTIMP int __cdecl fegetenv ( _Out_ fenv_t _Env)

◆ fegetexceptflag()

_ACRTIMP int __cdecl fegetexceptflag ( _Out_ fexcept_t _Except,
_In_ int  _TestFlags 
)

◆ fegetround()

_ACRTIMP int __cdecl fegetround ( void  )

◆ fesetenv()

_ACRTIMP int __cdecl fesetenv ( _In_ fenv_t const _Env)

◆ fesetexceptflag()

_ACRTIMP int __cdecl fesetexceptflag ( _In_ fexcept_t const _Except,
_In_ int  _SetFlags 
)

◆ fesetround()

_ACRTIMP int __cdecl fesetround ( _In_ int  _Round)

◆ fetestexcept()

_ACRTIMP int __cdecl fetestexcept ( _In_ int  _Flags)