8#if !defined(_CRTBLD) && !defined(_M_IX86)
14#pragma function(log10)
19#elif (defined(TEST_UCRTBASE) || defined(TEST_STATIC_CRT))
27 { 0x0000000000000000 , 0xfff0000000000000 },
28 { 0x8000000000000000 , 0xfff0000000000000 },
29 { 0x7ff0000000000000 , 0x7ff0000000000000 },
30 { 0x7ff0000000000001 , 0x7ff8000000000001 },
31 { 0x7ff7ffffffffffff , 0x7fffffffffffffff },
32 { 0x7ff8000000000000 , 0x7ff8000000000000 },
33 { 0x7ff8000000000001 , 0x7ff8000000000001 },
34 { 0x7fffffffffffffff , 0x7fffffffffffffff },
35 { 0xfff0000000000000 , 0xfff8000000000000 },
36 { 0xfff0000000000001 , 0xfff8000000000001 },
37 { 0xfff7ffffffffffff , 0xffffffffffffffff },
38 { 0xfff8000000000000 , 0xfff8000000000000 },
39 { 0xfff8000000000001 , 0xfff8000000000001 },
40 { 0xffffffffffffffff , 0xffffffffffffffff },
57 { 0x0.0p+0, { -
INFINITY, 0x0.0p+0 }, 1 },
58 { 0x1.0000000000000p-54, { -0x1.041704c068eefp+4, -0x1.d17237c752536p-52 }, 1 },
59 { 0x1.0000000000000p-53, { -0x1.fe8bffd88220ep+3, -0x1.0a56ddbe42798p-51 }, 1 },
60 { 0x1.8000000000000p-53, { -0x1.f8e975b5a9f2ep+3, -0x1.47a0bb7b34258p-51 }, 1 },
61 { 0x1.0000000000000p-52, { -0x1.f4e9f6303263ep+3, -0x1.2bf49f98dbc95p-51 }, 1 },
62 { 0x1.0000000000000p-52, { -0x1.f4e9f6303263ep+3, -0x1.2bf49f98dbc95p-51 }, 1 },
63 { 0x1.fae147ae147b4p-3, { -0x1.367d4f9ae1922p-1, -0x1.af855331d7859p-56 }, 1 },
64 { 0x1.fae147ae147b0p-2, { -0x1.38b96a2bcb849p-2, 0x1.31516a2d33a18p-60 }, 1 },
65 { 0x1.7c28f5c28f5c3p-1, { -0x1.08d04ba18b898p-3, -0x1.102c5263181e2p-58 }, 1 },
66 { 0x1.fae147ae147aep-1, { -0x1.1e0d4874f92f2p-8, -0x1.5e74871b18f79p-62 }, 1 },
67 { 0x1.0000000000000p+0, { 0x0.0p+0, 0x0.0p+0 }, 1 },
68 { 0x1.9cccccccccccdp+1, { 0x1.045e01e00d2ebp-1, -0x1.796443a47d512p-55 }, 1 },
69 { 0x1.5cccccccccccdp+2, { 0x1.7908f65c557cfp-1, 0x1.0d7df3076a7fdp-56 }, 1 },
70 { 0x1.eb33333333334p+2, { 0x1.c528fe74a287dp-1, 0x1.a410b65224725p-58 }, 1 },
71 { 0x1.3cccccccccccdp+3, { 0x1.fdc3e56f160dap-1, 0x1.20f228496591ap-55 }, 1 },
72 { 0x1.4000000000000p+3, { 0x1.0000000000000p+0, 0x0.0p+0 }, 1 },
73 { 0x1.03ccccccccccdp+5, { 0x1.82f4e2bf66bdfp+0, 0x1.6d8b05439f637p-54 }, 1 },
74 { 0x1.b79999999999ap+5, { 0x1.bd6e85e1adb4bp+0, -0x1.3cdef74d0afd1p-54 }, 1 },
75 { 0x1.35b3333333334p+6, { 0x1.e38db82048570p+0, -0x1.1cfbf3bb4f3afp-55 }, 1 },
76 { 0x1.8f9999999999ap+6, { 0x1.ffe3861a240fep+0, -0x1.ce61059d0cd29p-57 }, 1 },
77 { 0x1.9000000000000p+6, { 0x1.0000000000000p+1, 0x0.0p+0 }, 1 },
78 { 0x1.44f999999999ap+8, { 0x1.41844c9b1087ep+1, 0x1.e9820ed2bd55ap-53 }, 1 },
79 { 0x1.12f999999999ap+9, { 0x1.5ec2e92bf1419p+1, 0x1.8bacaab4bb7c9p-53 }, 1 },
80 { 0x1.8376666666666p+9, { 0x1.71d342cc6400ep+1, 0x1.f6d7fe2385e25p-53 }, 1 },
81 { 0x1.f3f3333333333p+9, { 0x1.7ffe93ab4e811p+1, 0x1.8268646d6e9b2p-53 }, 1 },
82 { 0x1.f400000000000p+9, { 0x1.8000000000000p+1, 0x0.0p+0 }, 1 },
83 { 0x1.963f333333333p+11, { 0x1.c18548d533a15p+1, -0x1.e3ec706c8ae0dp-56 }, 1 },
84 { 0x1.57bf333333333p+12, { 0x1.dec41342b1052p+1, 0x1.51b4aceb3c9a6p-55 }, 1 },
85 { 0x1.e45ecccccccccp+12, { 0x1.f1d4801ead08dp+1, -0x1.d95ccf4d98006p-56 }, 1 },
86 { 0x1.387f333333333p+13, { 0x1.ffffdb918ce60p+1, 0x1.582eb6532b2f4p-55 }, 1 },
87 { 0x1.3880000000000p+13, { 0x1.0000000000000p+2, 0x0.0p+0 }, 1 },
88 { 0x1.fbcfe66666666p+14, { 0x1.20c2b106fc196p+2, -0x1.d07276054afefp-53 }, 1 },
89 { 0x1.adafe66666666p+15, { 0x1.2f621888b6248p+2, -0x1.ee91317318d08p-52 }, 1 },
90 { 0x1.2ebbeccccccccp+16, { 0x1.38ea4fecdb8eep+2, 0x1.aeff29ed9ce4bp-58 }, 1 },
91 { 0x1.869fe66666666p+16, { 0x1.3ffffe2dadfb7p+2, -0x1.dac48afd82008p-53 }, 1 },
92 { 0x1.86a0000000000p+16, { 0x1.4000000000000p+2, 0x0.0p+0 }, 1 },
93 { 0x1.3d61fe6666666p+18, { 0x1.60c2b249d269bp+2, -0x1.2bfb443be7da5p-52 }, 1 },
94 { 0x1.0c8dfe6666666p+19, { 0x1.6f621a063f10fp+2, 0x1.021f0c76aa49fp-55 }, 1 },
95 { 0x1.7a6afd999999ap+19, { 0x1.78ea518301f6dp+2, 0x1.3a8f2e084550ep-53 }, 1 },
96 { 0x1.e847fcccccccdp+19, { 0x1.7fffffd15e342p+2, -0x1.aedb5baa85663p-54 }, 1 },
108 "log10(%.17e) = %.17e, expected %.17e, error %I64d ULPs, max %u ULPs\n",
113#if defined(HAS_LOG10F)
118 { 0x00000000 , 0xff800000 },
119 { 0x80000000 , 0xff800000 },
120 { 0x7f800000 , 0xff800000 },
121 { 0x7f800001 , 0xff800000 },
122 { 0x7fBFffff , 0xff800000 },
123 { 0x7fC00000 , 0xff800000 },
124 { 0x7fC80001 , 0xff800000 },
125 { 0x7fFfffff , 0xff800000 },
126 { 0xff800000 , 0xff800000 },
127 { 0xff800001 , 0xff800000 },
128 { 0xffBfffff , 0xff800000 },
129 { 0xffC00000 , 0xff800000 },
130 { 0xfff80001 , 0xff800000 },
131 { 0xffffffff , 0xff800000 },
146#if defined(HAS_LOG10F) || defined(HAS_LIBM_SSE2)
151 { 0x0.0p+0, { -
INFINITY, 0x0.0p+0 }, 1 },
152 { 0x1.0000000000000p-54, { -0x1.041704c068eefp+4, -0x1.d17237c752536p-52 }, 1 },
153 { 0x1.0000000000000p-53, { -0x1.fe8bffd88220ep+3, -0x1.0a56ddbe42798p-51 }, 1 },
154 { 0x1.8000000000000p-53, { -0x1.f8e975b5a9f2ep+3, -0x1.47a0bb7b34258p-51 }, 1 },
155 { 0x1.0000000000000p-52, { -0x1.f4e9f6303263ep+3, -0x1.2bf49f98dbc95p-51 }, 1 },
156 { 0x1.0000000000000p-52, { -0x1.f4e9f6303263ep+3, -0x1.2bf49f98dbc95p-51 }, 1 },
157 { 0x1.fae1480000000p-3, { -0x1.367d4f76f1c21p-1, 0x1.39407b2675a98p-55 }, 1 },
158 { 0x1.fae1480000000p-2, { -0x1.38b969e3ebe42p-2, -0x1.c13745063ea74p-56 }, 1 },
159 { 0x1.7c28f60000000p-1, { -0x1.08d04b11cc489p-3, 0x1.2b1a06b717b31p-57 }, 1 },
160 { 0x1.fae1480000000p-1, { -0x1.1e0d367d110dfp-8, -0x1.3be0165a28612p-62 }, 1 },
161 { 0x1.0000000000000p+0, { 0x0.0p+0, 0x0.0p+0 }, 1 },
162 { 0x1.9ccccc0000000p+1, { 0x1.045e0171bbe4dp-1, -0x1.0573bd9148ad2p-55 }, 1 },
163 { 0x1.5ccccc0000000p+2, { 0x1.7908f5d9c64fcp-1, 0x1.ab1f7f7cb932bp-55 }, 1 },
164 { 0x1.eb33340000000p+2, { 0x1.c528fed158404p-1, 0x1.e8799c9e91e21p-55 }, 1 },
165 { 0x1.3ccccc0000000p+3, { 0x1.fdc3e4df56cc6p-1, 0x1.d6269bf6a3dbfp-58 }, 1 },
166 { 0x1.4000000000000p+3, { 0x1.0000000000000p+0, 0x0.0p+0 }, 1 },
167 { 0x1.03cccc0000000p+5, { 0x1.82f4e267c23eap+0, 0x1.254e66dd840e4p-54 }, 1 },
168 { 0x1.b7999a0000000p+5, { 0x1.bd6e85fb93994p+0, -0x1.40002f211d53ep-55 }, 1 },
169 { 0x1.35b3340000000p+6, { 0x1.e38db869cdc91p+0, 0x1.808cc14d0d232p-54 }, 1 },
170 { 0x1.8f999a0000000p+6, { 0x1.ffe38636a19bap+0, -0x1.f1ebee0c7da99p-54 }, 1 },
171 { 0x1.9000000000000p+6, { 0x1.0000000000000p+1, 0x0.0p+0 }, 1 },
172 { 0x1.44f99a0000000p+8, { 0x1.41844cac94b93p+1, -0x1.6a2bdd2b6f0acp-54 }, 1 },
173 { 0x1.12f99a0000000p+9, { 0x1.5ec2e940a4d4ap+1, -0x1.0adc66eb93085p-53 }, 1 },
174 { 0x1.8376660000000p+9, { 0x1.71d342bdb2fe4p+1, 0x1.a8a72c4b6a864p-55 }, 1 },
175 { 0x1.f3f3340000000p+9, { 0x1.7ffe93c21416dp+1, -0x1.d45fc1cda5430p-53 }, 1 },
176 { 0x1.f400000000000p+9, { 0x1.8000000000000p+1, 0x0.0p+0 }, 1 },
177 { 0x1.963f340000000p+11, { 0x1.c18548f139d76p+1, 0x1.f52ca2d5fbc37p-55 }, 1 },
178 { 0x1.57bf340000000p+12, { 0x1.dec41363cfa53p+1, -0x1.ff13fb71e031bp-53 }, 1 },
179 { 0x1.e45ecc0000000p+12, { 0x1.f1d480072bf12p+1, 0x1.9d279c034298ep-54 }, 1 },
180 { 0x1.387f340000000p+13, { 0x1.ffffdbb5fb650p+1, 0x1.5ad4069a247b3p-59 }, 1 },
181 { 0x1.3880000000000p+13, { 0x1.0000000000000p+2, 0x0.0p+0 }, 1 },
182 { 0x1.fbcfe60000000p+14, { 0x1.20c2b10161445p+2, -0x1.e2e44fb30b24fp-52 }, 1 },
183 { 0x1.adafe60000000p+15, { 0x1.2f621882166e7p+2, -0x1.ea0ac70988daep-52 }, 1 },
184 { 0x1.2ebbec0000000p+16, { 0x1.38ea4fda0ded1p+2, -0x1.f64fd88f2e155p-58 }, 1 },
185 { 0x1.869fe60000000p+16, { 0x1.3ffffe2664b32p+2, -0x1.d0caeeccbf02cp-53 }, 1 },
186 { 0x1.86a0000000000p+16, { 0x1.4000000000000p+2, 0x0.0p+0 }, 1 },
187 { 0x1.3d61fe0000000p+18, { 0x1.60c2b240daaecp+2, -0x1.17bafb99593c2p-57 }, 1 },
188 { 0x1.0c8dfe0000000p+19, { 0x1.6f6219fba5ee3p+2, 0x1.227f4a8b4322fp-52 }, 1 },
189 { 0x1.7a6afe0000000p+19, { 0x1.78ea518a876a5p+2, -0x1.0f08360f8c90fp-53 }, 1 },
190 { 0x1.e847fc0000000p+19, { 0x1.7fffffc5b5c12p+2, -0x1.a3921eb92e9aep-52 }, 1 },
195#if defined(HAS_LOG10F)
206 "log10(%.6e) = %.7e, expected %.7e, error %I64d ULPs, max %u ULPs\n",
213#if defined(HAS_LIBM_SSE2)
218void Test_libm_sse2_log10(
void)
230 "__libm_sse2_log10(%.17e) = %.17e, expected %.17e, error %I64d ULPs, max %u ULPs\n",
238void Test_libm_sse2_log10f(
void)
250 "__libm_sse2_log10f(%.6e) = %.7e, expected %.7e, error %I64d ULPs, max %u ULPs\n",
261#if defined(HAS_LOG10F)
265#if defined(HAS_LIBM_SSE2)
266 Test_libm_sse2_log10();
267 Test_libm_sse2_log10f();
__m128d _mm_set_sd(double w)
double _mm_cvtsd_f64(__m128d a)
GLint GLint GLint GLint GLint x
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 const GLfloat const GLdouble const GLfloat GLint i
_Check_return_ float __cdecl log10f(_In_ float x)
__ATTRIBUTE_SSE2__ __m128 __libm_sse2_log10f(__m128 Xmm0)
__ATTRIBUTE_SSE2__ __m128d __libm_sse2_log10(__m128d Xmm0)
void Test_log10_approx(void)
static TESTENTRY_DBL_APPROX s_log10f_approx_tests[]
static TESTENTRY_DBL s_log10f_exact_tests[]
void Test_log10f_approx(void)
void Test_log10_exact(void)
static TESTENTRY_DBL_APPROX s_log10_approx_tests[]
void Test_log10f_exact(void)
static TESTENTRY_DBL s_log10_exact_tests[]
#define ok_eq_dbl_exact(func, ullx, z, ullexp)
static __inline double u64_to_dbl(UINT64 x)
#define __ATTRIBUTE_SSE2__
static __inline int64_t ulp_error_precise(PRECISE_VALUE *expected, double result)
static __inline int ulp_error_flt(float expected, float result)
#define ok_eq_flt_exact(func, ux, z, uexp)
float _mm_cvtss_f32(__m128 a)
__m128 _mm_set_ps1(float a)