File tree 1 file changed +17
-3
lines changed
regression/cbmc/ts18661_typedefs
1 file changed +17
-3
lines changed Original file line number Diff line number Diff line change 1
- #if defined(__clang__ )
2
- #elif defined(__GNUC__ )
1
+ #if defined(__GNUC__ ) && !defined(__clang__ )
2
+
3
+ #include <features.h> // For __GNUC_PREREQ
4
+
5
+ #ifdef __x86_64__
6
+ #define FLOAT128_MINOR_VERSION 3
7
+ #else
8
+ #define FLOAT128_MINOR_VERSION 5
9
+ #endif
10
+
3
11
#if __GNUC__ >= 7
4
12
#define HAS_FLOATN
13
+ #elif __GNUC_PREREQ (4 , FLOAT128_MINOR_VERSION )
14
+ #define HAS_FLOAT128
5
15
#endif
16
+
6
17
#endif
7
18
8
19
#ifndef HAS_FLOATN
9
20
typedef float _Float32 ;
10
21
typedef double _Float32x ;
11
22
typedef double _Float64 ;
12
23
typedef long double _Float64x ;
13
- typedef long double _Float128 ;
14
24
typedef long double _Float128x ;
15
25
#endif
16
26
27
+ #if !defined(HAS_FLOATN ) && !defined(HAS_FLOAT128 )
28
+ typedef long double _Float128 ;
29
+ #endif
30
+
17
31
int main (int argc , char * * argv ) {
18
32
}
You can’t perform that action at this time.
0 commit comments