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
522e13e6
Commit
522e13e6
authored
May 13, 2021
by
Piotr Caban
Committed by
Alexandre Julliard
May 14, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Fix denormals handling in _fpclassf inline implementation.
Signed-off-by:
Piotr Caban
<
piotr@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
04cf91ed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
math.h
include/msvcrt/math.h
+14
-1
No files found.
include/msvcrt/math.h
View file @
522e13e6
...
...
@@ -166,7 +166,20 @@ static inline float fmodf(float x, float y) { return fmod(x, y); }
static
inline
int
_finitef
(
float
x
)
{
return
_finite
(
x
);
}
static
inline
int
_isnanf
(
float
x
)
{
return
_isnan
(
x
);
}
static
inline
int
_fpclassf
(
float
x
)
{
return
_fpclass
(
x
);
}
static
inline
int
_fpclassf
(
float
x
)
{
unsigned
int
ix
=
*
(
int
*
)
&
x
;
double
d
=
x
;
/* construct denormal double */
if
(
!
(
ix
>>
23
&
0xff
)
&&
(
ix
<<
1
))
{
unsigned
__int64
id
=
(((
unsigned
__int64
)
ix
>>
31
)
<<
63
)
|
1
;
d
=
*
(
double
*
)
&
id
;
}
return
_fpclass
(
d
);
}
#endif
...
...
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