ReactOS 0.4.15-dev-7842-g558ab78
float.c File Reference
#include <win32k.h>
#include <debug.h>
Include dependency graph for float.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

_Check_return_ _Success_ (return)
 
_Check_return_ _Success_ (((pBuffer !=NULL &&cjBufferSize !=0) &&return==1)||((pBuffer==NULL||cjBufferSize==0) &&return > 0))
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file float.c.

Function Documentation

◆ _Success_() [1/2]

_Check_return_ _Success_ ( ((pBuffer !=NULL &&cjBufferSize !=0) &&return==1)||((pBuffer==NULL||cjBufferSize==0) &&return > 0)  )

Definition at line 45 of file float.c.

57{
58 KFLOATING_SAVE TempBuffer;
60
61 if ((pBuffer == NULL) || (cjBufferSize == 0))
62 {
63 /* Check for floating point support. */
64 Status = KeSaveFloatingPointState(&TempBuffer);
66 {
67 return(0);
68 }
69
70 KeRestoreFloatingPointState(&TempBuffer);
71 return(sizeof(KFLOATING_SAVE));
72 }
73
74 if (cjBufferSize < sizeof(KFLOATING_SAVE))
75 {
76 return(0);
77 }
78
80 if (!NT_SUCCESS(Status))
81 {
82 return FALSE;
83 }
84
85 return TRUE;
86}
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:32
Status
Definition: gdiplustypes.h:25
#define KeSaveFloatingPointState(x)
Definition: kmixer.h:32
#define KeRestoreFloatingPointState(x)
Definition: kmixer.h:33
PVOID pBuffer
#define STATUS_SUCCESS
Definition: shellext.h:65

◆ _Success_() [2/2]

_Check_return_ _Success_ ( return  )

Definition at line 23 of file float.c.

32{
34
36 if (!NT_SUCCESS(Status))
37 {
38 return FALSE;
39 }
40
41 return TRUE;
42}