#include <precomp.h>
Go to the source code of this file.
◆ EXP_BITS
◆ I10_OUTPUT_MAX_PREC
#define I10_OUTPUT_MAX_PREC 21 |
◆ MANT_BITS
◆ fpmod
Enumerator |
---|
FP_ROUND_ZERO | |
FP_ROUND_DOWN | |
FP_ROUND_EVEN | |
FP_ROUND_UP | |
FP_VAL_INFINITY | |
FP_VAL_NAN | |
Definition at line 5 of file i10output.c.
◆ fpnum_double()
Definition at line 24 of file i10output.c.
25{
27
29 {
31 return 0;
32 }
33
35 {
40 return 0;
41 }
42
43 TRACE(
"%c %#I64x *2^%d (round %d)\n", fp->
sign == -1 ?
'-' :
'+',
46 {
48 return 0;
49 }
50
51
53 {
56 }
58 {
61 }
63
64
66 {
69 }
71 {
73 {
77 }
80 }
82
83
85 {
90 }
91 while(fp->
m && fp->
exp<0)
92 {
98 }
99
100
102 {
104
105
107 {
109 }
111 {
114 }
115 }
116
118 {
121 }
122 if (!fp->
m || fp->
exp < 0)
123 {
126 }
127
132
134 *
d = *(
double*)&
bits;
135 return 0;
136}
GLenum GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * bits
Referenced by I10_OUTPUT().
◆ I10_OUTPUT()
Definition at line 162 of file i10output.c.
163{
169
170 if ((ld80.
x80[2] & 0x7fff) == 0x7fff)
171 {
172 if (ld80.
x80[0] == 0 && ld80.
x80[1] == 0x80000000)
174 else
175 strcpy(
data->str, (ld80.
x80[1] & 0x40000000) ?
"1#QNAN" :
"1#SNAN" );
177 data->sign = (ld80.
x80[2] & 0x8000) ?
'-' :
' ';
179 return 0;
180 }
181
182 num.sign = (ld80.
x80[2] & 0x8000) ? -1 : 1;
183 num.exp = (ld80.
x80[2] & 0x7fff) - 0x3fff - 63;
188
192 } else
194
197
200 prec--;
201 }
202 prec--;
203
206 else if(prec < 0) {
208 prec = 0;
209 }
210
213
218
221
224
225 if(
buf[1]!=
'0' && prec-
data->len+1>0)
227
228 return 1;
229}
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
GLenum GLuint GLenum GLsizei const GLchar * buf
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
int fpnum_double(struct fpnum *fp, double *d)
#define I10_OUTPUT_MAX_PREC
_Check_return_ _CRTIMP double __cdecl floor(_In_ double x)
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
#define memcpy(s1, s2, n)