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
29717168
Commit
29717168
authored
Oct 15, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Define fpclassify().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
da8176df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
math.h
include/msvcrt/math.h
+13
-0
No files found.
include/msvcrt/math.h
View file @
29717168
...
@@ -251,11 +251,22 @@ static const union {
...
@@ -251,11 +251,22 @@ static const union {
#define FP_ILOGB0 (-0x7fffffff - _C2)
#define FP_ILOGB0 (-0x7fffffff - _C2)
#define FP_ILOGBNAN 0x7fffffff
#define FP_ILOGBNAN 0x7fffffff
#if _MSVCR_VER >= 120
_ACRTIMP
short
__cdecl
_dclass
(
double
);
_ACRTIMP
short
__cdecl
_dclass
(
double
);
_ACRTIMP
short
__cdecl
_fdclass
(
float
);
_ACRTIMP
short
__cdecl
_fdclass
(
float
);
_ACRTIMP
int
__cdecl
_dsign
(
double
);
_ACRTIMP
int
__cdecl
_dsign
(
double
);
_ACRTIMP
int
__cdecl
_fdsign
(
float
);
_ACRTIMP
int
__cdecl
_fdsign
(
float
);
#define fpclassify(x) (sizeof(x) == sizeof(float) ? _fdclass(x) : _dclass(x))
#define signbit(x) (sizeof(x) == sizeof(float) ? _fdsign(x) : _dsign(x))
#define isinf(x) (fpclassify(x) == FP_INFINITE)
#define isnan(x) (fpclassify(x) == FP_NAN)
#define isnormal(x) (fpclassify(x) == FP_NORMAL)
#define isfinite(x) (fpclassify(x) <= 0)
#else
static
inline
int
__isnanf
(
float
x
)
static
inline
int
__isnanf
(
float
x
)
{
{
union
{
float
x
;
unsigned
int
i
;
}
u
=
{
x
};
union
{
float
x
;
unsigned
int
i
;
}
u
=
{
x
};
...
@@ -303,6 +314,8 @@ static inline int __signbit(double x)
...
@@ -303,6 +314,8 @@ static inline int __signbit(double x)
#define signbit(x) (sizeof(x) == sizeof(float) ? __signbitf(x) : __signbit(x))
#define signbit(x) (sizeof(x) == sizeof(float) ? __signbitf(x) : __signbit(x))
#define isfinite(x) (!isinf(x) && !isnan(x))
#define isfinite(x) (!isinf(x) && !isnan(x))
#endif
#ifdef __cplusplus
#ifdef __cplusplus
}
}
#endif
#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