ReactOS  0.4.15-dev-313-g8fde48b
fpieee.h
Go to the documentation of this file.
1 
6 #ifndef _INC_FPIEEE
7 #define _INC_FPIEEE
8 
9 #include <crtdefs.h>
10 
11 #pragma pack(push,_CRT_PACKING)
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
17  typedef enum {
20 
21  typedef enum {
23 #if defined(__ia64__)
24  _FpFormatFp82
25 #endif
27 
28  typedef enum {
30 #if defined(__ia64__)
31  _FpCodeFma,_FpCodeFmaSingle,_FpCodeFmaDouble,_FpCodeFms,_FpCodeFmsSingle,_FpCodeFmsDouble,_FpCodeFnma,_FpCodeFnmaSingle,_FpCodeFnmaDouble,_FpCodeFamin,_FpCodeFamax
32 #endif
34 
35  typedef enum {
38 
39  typedef enum {
41 #if defined(__ia64__)
42  _FpPrecision64,_FpPrecision113
43 #endif
45 
46  typedef float _FP32;
47  typedef double _FP64;
48  typedef short _I16;
49  typedef int _I32;
50  typedef unsigned short _U16;
51  typedef unsigned int _U32;
53 
54  typedef struct
55 #if defined(__ia64__)
56  _CRT_ALIGN(16)
57 #endif
58  {
59  unsigned short W[5];
60  } _FP80;
61 
62  typedef struct _CRT_ALIGN(16) {
63  unsigned long W[4];
64  } _FP128;
65 
66  typedef struct _CRT_ALIGN(8) {
67  unsigned long W[2];
68  } _I64;
69 
70  typedef struct _CRT_ALIGN(8) {
71  unsigned long W[2];
72  } _U64;
73 
74  typedef struct
75 #if defined(__ia64__)
76  _CRT_ALIGN(16)
77 #endif
78  {
79  unsigned short W[5];
80  } _BCD80;
81 
82  typedef struct _CRT_ALIGN(16) {
83  _Q64 W[2];
84  } _FPQ64;
85 
86  typedef struct {
87  union {
99  char *StringValue;
103  } Value;
104  unsigned int OperandValid : 1;
105  unsigned int Format : 4;
106  } _FPIEEE_VALUE;
107 
108  typedef struct {
109  unsigned int Inexact : 1;
110  unsigned int Underflow : 1;
111  unsigned int Overflow : 1;
112  unsigned int ZeroDivide : 1;
113  unsigned int InvalidOperation : 1;
115 
116  typedef struct {
117  unsigned int RoundingMode : 2;
118  unsigned int Precision : 3;
119  unsigned int Operation :12;
126 #if defined(__ia64__)
127  _FPIEEE_VALUE Operand3;
128 #endif
130 
131  struct _EXCEPTION_POINTERS;
132 
133  _CRTIMP int __cdecl _fpieee_flt(unsigned long _ExceptionCode,struct _EXCEPTION_POINTERS *_PtExceptionPtr,int (__cdecl *_Handler)(_FPIEEE_RECORD *));
134 
135 #ifdef __cplusplus
136 }
137 #endif
138 
139 #pragma pack(pop)
140 #endif
_FP32 Fp32Value
Definition: fpieee.h:88
_I64
Definition: fpieee.h:68
_FP_OPERATION_CODE
Definition: fpieee.h:28
_In_opt_ ULONG _Out_ PULONG Value
Definition: rtlfuncs.h:2373
_FPIEEE_FORMAT
Definition: fpieee.h:21
_FPIEEE_ROUNDING_MODE
Definition: fpieee.h:35
_CRTIMP int __cdecl _fpieee_flt(unsigned long _ExceptionCode, struct _EXCEPTION_POINTERS *_PtExceptionPtr, int(__cdecl *_Handler)(_FPIEEE_RECORD *))
#define __cdecl
Definition: accygwin.h:79
_FP80 Fp80Value
Definition: fpieee.h:90
#define _CRTIMP
Definition: crtdefs.h:60
Definition: fpieee.h:74
unsigned int OperandValid
Definition: fpieee.h:104
unsigned int Format
Definition: fpieee.h:105
_U16 U16Value
Definition: fpieee.h:95
_FPQ64 Fpq64Value
Definition: fpieee.h:102
_FPIEEE_EXCEPTION_FLAGS Cause
Definition: fpieee.h:120
__MINGW_EXTENSION typedef __int64 _Q64
Definition: fpieee.h:52
unsigned int ZeroDivide
Definition: fpieee.h:112
_FPIEEE_PRECISION
Definition: fpieee.h:39
_FPIEEE_VALUE Operand2
Definition: fpieee.h:124
Definition: polytest.cpp:35
char * StringValue
Definition: fpieee.h:99
_FPIEEE_VALUE Result
Definition: fpieee.h:125
_FPIEEE_EXCEPTION_FLAGS Status
Definition: fpieee.h:122
unsigned int InvalidOperation
Definition: fpieee.h:113
_FP128
Definition: fpieee.h:64
#define __MINGW_EXTENSION
Definition: _mingw.h:166
unsigned int Inexact
Definition: fpieee.h:109
_I16 I16Value
Definition: fpieee.h:92
struct _CRT_ALIGN(16)
Definition: fpieee.h:62
_FP64 Fp64Value
Definition: fpieee.h:89
short _I16
Definition: fpieee.h:48
unsigned short _U16
Definition: fpieee.h:50
_FPIEEE_COMPARE_RESULT
Definition: fpieee.h:17
float _FP32
Definition: fpieee.h:46
unsigned int _U32
Definition: fpieee.h:51
_FP128 Fp128Value
Definition: fpieee.h:91
unsigned int Precision
Definition: fpieee.h:118
unsigned int Underflow
Definition: fpieee.h:110
_U32 U32Value
Definition: fpieee.h:96
double _FP64
Definition: fpieee.h:47
__int64 _Q64
Definition: msvcrt.h:1419
_U64 U64Value
Definition: fpieee.h:97
_U64
Definition: fpieee.h:72
unsigned int Operation
Definition: fpieee.h:119
struct _FPIEEE_RECORD * _PFPIEEE_RECORD
Definition: fpieee.h:54
unsigned int RoundingMode
Definition: fpieee.h:117
int CompareValue
Definition: fpieee.h:100
_BCD80 Bcd80Value
Definition: fpieee.h:98
_FPQ64
Definition: fpieee.h:84
unsigned int Overflow
Definition: fpieee.h:111
_FPIEEE_VALUE Operand1
Definition: fpieee.h:123
_I64 I64Value
Definition: fpieee.h:94
_Q64 Q64Value
Definition: fpieee.h:101
_I32 I32Value
Definition: fpieee.h:93
int _I32
Definition: fpieee.h:49
#define __int64
Definition: basetyps.h:16
_FPIEEE_EXCEPTION_FLAGS Enable
Definition: fpieee.h:121