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
0b5bea5e
Commit
0b5bea5e
authored
Feb 22, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win87em.dll16: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
5531c3d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
Makefile.in
dlls/win87em.dll16/Makefile.in
+0
-1
win87em.c
dlls/win87em.dll16/win87em.c
+2
-2
No files found.
dlls/win87em.dll16/Makefile.in
View file @
0b5bea5e
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
win87em.dll16
MODULE
=
win87em.dll16
EXTRADLLFLAGS
=
-m16
EXTRADLLFLAGS
=
-m16
...
...
dlls/win87em.dll16/win87em.c
View file @
0b5bea5e
...
@@ -101,7 +101,7 @@ static void WIN87_Init( CONTEXT *context )
...
@@ -101,7 +101,7 @@ static void WIN87_Init( CONTEXT *context )
*/
*/
void
WINAPI
_fpMath
(
CONTEXT
*
context
)
void
WINAPI
_fpMath
(
CONTEXT
*
context
)
{
{
TRACE
(
"(cs:eip=%04
x:%04x es=%04x bx=%04x ax=%04x dx=%04
x)
\n
"
,
TRACE
(
"(cs:eip=%04
lx:%04lx es=%04lx bx=%04lx ax=%04lx dx=%04l
x)
\n
"
,
context
->
SegCs
,
context
->
Eip
,
context
->
SegEs
,
context
->
Ebx
,
context
->
SegCs
,
context
->
Eip
,
context
->
SegEs
,
context
->
Ebx
,
context
->
Eax
,
context
->
Edx
);
context
->
Eax
,
context
->
Edx
);
...
@@ -174,7 +174,7 @@ void WINAPI _fpMath( CONTEXT *context )
...
@@ -174,7 +174,7 @@ void WINAPI _fpMath( CONTEXT *context )
*/
*/
/* FIXME: could someone who really understands asm() fix this please? --AJ */
/* FIXME: could someone who really understands asm() fix this please? --AJ */
/* __asm__("fistp %0;wait" : "=m" (dw) : : "memory"); */
/* __asm__("fistp %0;wait" : "=m" (dw) : : "memory"); */
TRACE
(
"On top of stack was %d
\n
"
,
dw
);
TRACE
(
"On top of stack was %
l
d
\n
"
,
dw
);
context
->
Eax
=
(
context
->
Eax
&
~
0xffff
)
|
LOWORD
(
dw
);
context
->
Eax
=
(
context
->
Eax
&
~
0xffff
)
|
LOWORD
(
dw
);
context
->
Edx
=
(
context
->
Edx
&
~
0xffff
)
|
HIWORD
(
dw
);
context
->
Edx
=
(
context
->
Edx
&
~
0xffff
)
|
HIWORD
(
dw
);
}
}
...
...
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