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
32eae492
Commit
32eae492
authored
Nov 19, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Use gcc builtin for HUGE_VAL.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6482ce76
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
math.h
include/msvcrt/math.h
+2
-12
No files found.
include/msvcrt/math.h
View file @
32eae492
...
...
@@ -201,21 +201,10 @@ float __cdecl _hypotf(float, float);
int
__cdecl
_matherr
(
struct
_exception
*
);
double
__cdecl
_cabs
(
struct
_complex
);
#ifndef HUGE_VAL
# if defined(__GNUC__) && (__GNUC__ >= 3)
# define HUGE_VAL (__extension__ 0x1.0p2047)
# else
static
const
union
{
unsigned
char
__c
[
8
];
double
__d
;
}
__huge_val
=
{
{
0
,
0
,
0
,
0
,
0
,
0
,
0xf0
,
0x7f
}
};
# define HUGE_VAL (__huge_val.__d)
# endif
#endif
#if (defined(__GNUC__) && ((__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)))) || defined(__clang__)
# define INFINITY __builtin_inff()
# define NAN __builtin_nanf("")
# define HUGE_VAL __builtin_huge_val()
#else
static
const
union
{
unsigned
int
__i
;
...
...
@@ -223,6 +212,7 @@ static const union {
}
__inff
=
{
0x7f800000
},
__nanf
=
{
0x7fc00000
};
# define INFINITY (__inff.__f)
# define NAN (__nanf.__f)
# define HUGE_VAL ((double)INFINITY)
#endif
#define FP_INFINITE 1
...
...
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