-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This now expects to find _Float128 when gcc-4.3+ (x86-64) for -4.5+ (other targets) is in use.
- Loading branch information
Showing
1 changed file
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,30 @@ | ||
#if defined(__clang__) | ||
#elif defined(__GNUC__) | ||
#if defined(__GNUC__) && !defined(__clang__) | ||
|
||
#ifdef __x86_64__ | ||
#define FLOAT128_MINOR_VERSION 3 | ||
#else | ||
#define FLOAT128_MINOR_VERSION 5 | ||
#endif | ||
|
||
#if __GNUC__ >= 7 | ||
#define HAS_FLOATN | ||
#elif __GNUC_PREREQ(4, FLOAT128_MINOR_VERSION) | ||
#define HAs_FLOAT128 | ||
#endif | ||
|
||
#endif | ||
|
||
#ifndef HAS_FLOATN | ||
typedef float _Float32; | ||
typedef double _Float32x; | ||
typedef double _Float64; | ||
typedef long double _Float64x; | ||
typedef long double _Float128; | ||
typedef long double _Float128x; | ||
#endif | ||
|
||
#if !defined(HAS_FLOATN) && !defined(HAS_FLOAT128) | ||
typedef long double _Float128; | ||
#endif | ||
|
||
int main(int argc, char** argv) { | ||
} |