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
b0a40daf
Commit
b0a40daf
authored
May 22, 2009
by
Rein Klazes
Committed by
Alexandre Julliard
May 22, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win87em.dll16: Remove a unnecessary floating point instruction that can cause…
win87em.dll16: Remove a unnecessary floating point instruction that can cause invalid operation exceptions.
parent
691aa6e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
3 deletions
+0
-3
win87em.c
dlls/win87em.dll16/win87em.c
+0
-3
No files found.
dlls/win87em.dll16/win87em.c
View file @
b0a40daf
...
...
@@ -149,7 +149,6 @@ void WINAPI _fpMath( CONTEXT *context )
case
6
:
/* round top of stack to integer using method AX & 0x0C00 */
/* returns current controlword */
{
DWORD
dw
=
0
;
WORD
save
,
mask
;
/* I don't know much about asm() programming. This could be
* wrong.
...
...
@@ -160,10 +159,8 @@ void WINAPI _fpMath( CONTEXT *context )
__asm__
__volatile__
(
"orw $0xC00,%0"
:
"=m"
(
mask
)
:
:
"memory"
);
__asm__
__volatile__
(
"fldcw %0;wait"
:
:
"m"
(
mask
));
__asm__
__volatile__
(
"frndint"
);
__asm__
__volatile__
(
"fist %0;wait"
:
"=m"
(
dw
)
:
:
"memory"
);
__asm__
__volatile__
(
"fldcw %0"
:
:
"m"
(
save
));
#endif
TRACE
(
"On top of stack is %d
\n
"
,
dw
);
}
break
;
...
...
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