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
dbda71f7
Commit
dbda71f7
authored
Nov 16, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Reimplement _chgsign().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4619140b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
math.c
dlls/msvcrt/math.c
+6
-4
No files found.
dlls/msvcrt/math.c
View file @
dbda71f7
...
...
@@ -170,8 +170,9 @@ int CDECL MSVCRT__set_FMA3_enable(int flag)
*/
float
CDECL
MSVCRT__chgsignf
(
float
num
)
{
/* FIXME: +-infinity,Nan not tested */
return
-
num
;
union
{
float
f
;
UINT32
i
;
}
u
=
{
num
};
u
.
i
^=
0x80000000
;
return
u
.
f
;
}
/*********************************************************************
...
...
@@ -1786,8 +1787,9 @@ double CDECL MSVCRT__cabs(struct MSVCRT__complex num)
*/
double
CDECL
MSVCRT__chgsign
(
double
num
)
{
/* FIXME: +-infinity,Nan not tested */
return
-
num
;
union
{
double
f
;
UINT64
i
;
}
u
=
{
num
};
u
.
i
^=
1ull
<<
63
;
return
u
.
f
;
}
/*********************************************************************
...
...
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