ReactOS  0.4.14-dev-77-gd9e7c48
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_ ( 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 }
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
PVOID pBuffer
#define KeRestoreFloatingPointState(x)
Definition: kmixer.h:33
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
Status
Definition: gdiplustypes.h:24

◆ _Success_() [2/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);
65  if (Status != STATUS_SUCCESS)
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 }
#define TRUE
Definition: types.h:120
LONG NTSTATUS
Definition: precomp.h:26
smooth NULL
Definition: ftsmooth.c:416
PVOID pBuffer
#define KeRestoreFloatingPointState(x)
Definition: kmixer.h:33
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define KeSaveFloatingPointState(x)
Definition: kmixer.h:32
Status
Definition: gdiplustypes.h:24
return STATUS_SUCCESS
Definition: btrfs.c:2966