50{
51 static const double
52 max_exp2_arg = 1024.0,
53 min_exp2_arg = -1074.0,
54 log2 = 6.931471805599453094178e-01,
55 log2_lead = 6.93147167563438415527E-01,
56 log2_tail = 1.29965068938898869640E-08,
57 one_by_32_lead = 0.03125;
58
59 double y, z1, z2,
z, hx, tx,
y1,
y2;
61 unsigned long long ux,
ax;
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
87 ax = ux & (~SIGNBIT_DP64);
88
89 if (
ax >= 0x4090000000000000)
90 {
91 if(
ax >= 0x7ff0000000000000)
92 {
93
95
99
100 return 0.0;
101 else
102
104 }
105 if (
x > max_exp2_arg)
106
109 else if (
x < min_exp2_arg)
110
113 }
114
115
116
117 if (
ax < 0x3fb7154764ee6c2f)
118 {
119 if (
ax < 0x3c00000000000000)
121 else
122 {
123
124 unsigned long long u;
127 u &= 0xfffffffff8000000;
130
131
133 y2 = (((hx * log2_lead -
y1) + hx * log2_tail) +
134 tx * log2_lead) + tx * log2_tail;
135
137 z = (9.99564649780173690e-1 +
138 (1.61251249355268050e-5 +
139 (2.37986978239838493e-2 +
140 2.68724774856111190e-7*
y)*
y)*
y)/
141 (9.99564649780173692e-1 +
142 (-4.99766199765151309e-1 +
143 (1.070876894098586184e-1 +
144 (-1.189773642681502232e-2 +
145 5.9480622371960190616e-4*
y)*
y)*
y)*
y);
146 z = ((
z *
y1) + (
z *
y2)) + 1.0;
147 }
148 }
149 else
150 {
151
152
153 splitexp(
x,
log2, 32.0, one_by_32_lead, 0.0, &
m, &z1, &z2);
154
155
157 z = scaleDouble_1((z1+z2),
m);
158 else
159 z = scaleDouble_2((z1+z2),
m);
160 }
162}
double __cdecl _handle_error(char *fname, int opcode, unsigned long long value, int type, int flags, int error, double arg1, double arg2, int nargs)
Handles an error condition.
GLint GLint GLint GLint GLint x
GLint GLint GLint GLint GLint GLint y
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 const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble * u
_Check_return_ __CRT_INLINE double log2(_In_ double x)
#define GET_BITS_DP64(x, ux)
#define PUT_BITS_DP64(ux, x)
ecx edi movl ebx edx edi decl ecx esi eax jecxz decl eax andl eax esi movl edx movl TEMP incl eax andl eax ecx incl ebx testl eax jnz xchgl ecx incl TEMP esp ecx subl ebx pushl ecx ecx edx ecx shrl ecx mm0 mm4 mm0 mm4 mm1 mm5 mm1 mm5 mm2 mm6 mm2 mm6 mm3 mm7 mm3 mm7 paddd mm0 paddd mm4 paddd mm0 paddd mm4 paddd mm0 paddd mm4 movq mm1 movq mm5 psrlq mm1 psrlq mm5 paddd mm0 paddd mm4 psrad mm0 psrad mm4 packssdw mm0 packssdw mm4 mm1 punpckldq mm0 pand mm1 pand mm0 por mm1 movq edi esi edx edi decl ecx jnz popl ecx andl ecx jecxz mm0 mm0 mm1 mm1 mm2 mm2 mm3 mm3 paddd mm0 paddd mm0 paddd mm0 movq mm1 psrlq mm1 paddd mm0 psrad mm0 packssdw mm0 movd eax movw ax
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG y1
_In_ CLIPOBJ _In_ BRUSHOBJ _In_ LONG _In_ LONG _In_ LONG _In_ LONG y2