Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
83a0c208
Commit
83a0c208
authored
Oct 01, 2018
by
Piotr Caban
Committed by
Alexandre Julliard
Oct 01, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcr120: Added creal implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
84f5d8a6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
4 deletions
+20
-4
api-ms-win-crt-math-l1-1-0.spec
...pi-ms-win-crt-math-l1-1-0/api-ms-win-crt-math-l1-1-0.spec
+2
-1
msvcr120.spec
dlls/msvcr120/msvcr120.spec
+2
-1
msvcr120.c
dlls/msvcr120/tests/msvcr120.c
+7
-0
msvcr120_app.spec
dlls/msvcr120_app/msvcr120_app.spec
+2
-1
math.c
dlls/msvcrt/math.c
+5
-0
ucrtbase.spec
dlls/ucrtbase/ucrtbase.spec
+2
-1
No files found.
dlls/api-ms-win-crt-math-l1-1-0/api-ms-win-crt-math-l1-1-0.spec
View file @
83a0c208
...
...
@@ -202,7 +202,8 @@
@ stub cproj
@ stub cprojf
@ stub cprojl
@ stub creal
@ cdecl -arch=i386 creal(double double) ucrtbase.creal
@ cdecl -arch=arm,x86_64,arm64 creal(ptr) ucrtbase.creal
@ stub crealf
@ stub creall
@ stub csin
...
...
dlls/msvcr120/msvcr120.spec
View file @
83a0c208
...
...
@@ -2103,7 +2103,8 @@
@ stub cproj
@ stub cprojf
@ stub cprojl
@ stub creal
@ cdecl -arch=i386 creal(double double) MSVCR120_creal
@ cdecl -arch=arm,x86_64,arm64 creal(ptr) MSVCR120_creal
@ stub crealf
@ stub creall
@ stub csin
...
...
dlls/msvcr120/tests/msvcr120.c
View file @
83a0c208
...
...
@@ -191,6 +191,7 @@ static void (__cdecl *p_free_locale)(_locale_t);
static
unsigned
short
(
__cdecl
*
p_wctype
)(
const
char
*
);
static
int
(
__cdecl
*
p_vsscanf
)(
const
char
*
,
const
char
*
,
__ms_va_list
valist
);
static
_Dcomplex
*
(
__cdecl
*
p__Cbuild
)(
_Dcomplex
*
,
double
,
double
);
static
double
(
__cdecl
*
p_creal
)(
_Dcomplex
);
/* make sure we use the correct errno */
#undef errno
...
...
@@ -250,6 +251,7 @@ static BOOL init(void)
SET
(
p__clearfp
,
"_clearfp"
);
SET
(
p_vsscanf
,
"vsscanf"
);
SET
(
p__Cbuild
,
"_Cbuild"
);
SET
(
p_creal
,
"creal"
);
if
(
sizeof
(
void
*
)
==
8
)
{
/* 64-bit initialization */
SET
(
p_critical_section_ctor
,
"??0critical_section@Concurrency@@QEAA@XZ"
);
...
...
@@ -946,15 +948,20 @@ static void test_vsscanf(void)
static
void
test__Cbuild
(
void
)
{
_Dcomplex
c
;
double
d
;
memset
(
&
c
,
0
,
sizeof
(
c
));
p__Cbuild
(
&
c
,
1
.
0
,
2
.
0
);
ok
(
c
.
r
==
1
.
0
,
"c.r = %lf
\n
"
,
c
.
r
);
ok
(
c
.
i
==
2
.
0
,
"c.i = %lf
\n
"
,
c
.
i
);
d
=
p_creal
(
c
);
ok
(
d
==
1
.
0
,
"creal returned %lf
\n
"
,
d
);
p__Cbuild
(
&
c
,
3
.
0
,
NAN
);
ok
(
c
.
r
==
3
.
0
,
"c.r = %lf
\n
"
,
c
.
r
);
ok
(
_isnan
(
c
.
i
),
"c.i = %lf
\n
"
,
c
.
i
);
d
=
p_creal
(
c
);
ok
(
d
==
3
.
0
,
"creal returned %lf
\n
"
,
d
);
}
START_TEST
(
msvcr120
)
...
...
dlls/msvcr120_app/msvcr120_app.spec
View file @
83a0c208
...
...
@@ -1769,7 +1769,8 @@
@ stub cproj
@ stub cprojf
@ stub cprojl
@ stub creal
@ cdecl -arch=i386 creal(double double) msvcr120.creal
@ cdecl -arch=arm,x86_64,arm64 creal(ptr) msvcr120.creal
@ stub crealf
@ stub creall
@ stub csin
...
...
dlls/msvcrt/math.c
View file @
83a0c208
...
...
@@ -3390,4 +3390,9 @@ _Dcomplex* CDECL MSVCR120__Cbuild(_Dcomplex *ret, double r, double i)
return
ret
;
}
double
CDECL
MSVCR120_creal
(
_Dcomplex
z
)
{
return
z
.
x
;
}
#endif
/* _MSVCR_VER>=120 */
dlls/ucrtbase/ucrtbase.spec
View file @
83a0c208
...
...
@@ -2246,7 +2246,8 @@
@ stub cproj
@ stub cprojf
@ stub cprojl
@ stub creal
@ cdecl -arch=i386 creal(double double) MSVCR120_creal
@ cdecl -arch=arm,x86_64,arm64 creal(ptr) MSVCR120_creal
@ stub crealf
@ stub creall
@ stub csin
...
...
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