Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
67a2fb01
Commit
67a2fb01
authored
Jan 25, 2013
by
Piotr Caban
Committed by
Alexandre Julliard
Jan 25, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcp90: Added std::sqrt(complex) tests.
parent
68f538fa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
misc.c
dlls/msvcp90/tests/misc.c
+17
-0
No files found.
dlls/msvcp90/tests/misc.c
View file @
67a2fb01
...
...
@@ -115,6 +115,7 @@ static float (__cdecl *p_complex_float__Fabs)(const complex_float*, int*);
static
complex_float
*
(
__cdecl
*
p_complex_float_tan
)(
complex_float
*
,
const
complex_float
*
);
static
complex_float
*
(
__cdecl
*
p_complex_float_tanh
)(
complex_float
*
,
const
complex_float
*
);
static
complex_float
*
(
__cdecl
*
p_complex_float_log10
)(
complex_float
*
,
const
complex_float
*
);
static
complex_float
*
(
__cdecl
*
p_complex_float_sqrt
)(
complex_float
*
,
const
complex_float
*
);
static
int
invalid_parameter
=
0
;
static
void
__cdecl
test_invalid_parameter_handler
(
const
wchar_t
*
expression
,
...
...
@@ -261,6 +262,8 @@ static BOOL init(void)
"??$tanh@M@std@@YA?AV?$complex@M@0@AEBV10@@Z"
);
SET
(
p_complex_float_log10
,
"??$log10@M@std@@YA?AV?$complex@M@0@AEBV10@@Z"
);
SET
(
p_complex_float_sqrt
,
"??$sqrt@M@std@@YA?AV?$complex@M@0@AEBV10@@Z"
);
}
else
{
SET
(
p_char_assign
,
"?assign@?$char_traits@D@std@@SAXAADABD@Z"
);
SET
(
p_wchar_assign
,
"?assign@?$char_traits@_W@std@@SAXAA_WAB_W@Z"
);
...
...
@@ -313,6 +316,8 @@ static BOOL init(void)
"??$tanh@M@std@@YA?AV?$complex@M@0@ABV10@@Z"
);
SET
(
p_complex_float_log10
,
"??$log10@M@std@@YA?AV?$complex@M@0@ABV10@@Z"
);
SET
(
p_complex_float_sqrt
,
"??$sqrt@M@std@@YA?AV?$complex@M@0@ABV10@@Z"
);
}
init_thiscall_thunk
();
...
...
@@ -732,6 +737,9 @@ static void test_complex(void)
p_complex_float_log10
(
&
c2
,
&
c1
);
ok
(
c2
.
real
<
-
FLT_MAX
/* c2.real == -inf */
,
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
c2
.
imag
==
0
,
"c2.imag = %g
\n
"
,
c2
.
imag
);
p_complex_float_sqrt
(
&
c2
,
&
c1
);
ok
(
c2
.
real
==
0
,
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
c2
.
imag
==
0
,
"c2.imag = %f
\n
"
,
c2
.
imag
);
c1
.
real
=
3
.
14159
/
2
;
c1
.
imag
=
0
;
...
...
@@ -744,6 +752,9 @@ static void test_complex(void)
p_complex_float_log10
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
0
.
196120
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
c2
.
imag
==
0
,
"c2.imag = %g
\n
"
,
c2
.
imag
);
p_complex_float_sqrt
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
1
.
253314
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
c2
.
imag
==
0
,
"c2.imag = %g
\n
"
,
c2
.
imag
);
c1
.
real
=
7
.
12
;
c1
.
imag
=
0
.
17
;
...
...
@@ -756,6 +767,9 @@ static void test_complex(void)
p_complex_float_log10
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
0
.
852604
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
almost_eq
(
c2
.
imag
,
0
.
0103674
),
"c2.imag = %g
\n
"
,
c2
.
imag
);
p_complex_float_sqrt
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
2
.
668523
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
almost_eq
(
c2
.
imag
,
0
.
031
8528
),
"c2.imag = %g
\n
"
,
c2
.
imag
);
c1
.
real
=
0
.
14
;
c1
.
imag
=
0
.
19
;
...
...
@@ -768,6 +782,9 @@ static void test_complex(void)
p_complex_float_log10
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
-
0
.
627072
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
almost_eq
(
c2
.
imag
,
0
.
4064
),
"c2.imag = %g
\n
"
,
c2
.
imag
);
p_complex_float_sqrt
(
&
c2
,
&
c1
);
ok
(
almost_eq
(
c2
.
real
,
0
.
433595
),
"c2.real = %f
\n
"
,
c2
.
real
);
ok
(
almost_eq
(
c2
.
imag
,
0
.
219099
),
"c2.imag = %g
\n
"
,
c2
.
imag
);
}
START_TEST
(
misc
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment