We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7227bac commit 2fe4c9eCopy full SHA for 2fe4c9e
regression/cbmc/ts18661_typedefs/main.c
@@ -1,18 +1,30 @@
1
-#if defined(__clang__)
2
-#elif defined(__GNUC__)
+#if defined(__GNUC__) && !defined(__clang__)
+
3
+#ifdef __x86_64__
4
+#define FLOAT128_MINOR_VERSION 3
5
+#else
6
+#define FLOAT128_MINOR_VERSION 5
7
+#endif
8
9
#if __GNUC__ >= 7
10
#define HAS_FLOATN
11
+#elif __GNUC_PREREQ(4, FLOAT128_MINOR_VERSION)
12
+#define HAs_FLOAT128
13
#endif
14
15
16
17
#ifndef HAS_FLOATN
18
typedef float _Float32;
19
typedef double _Float32x;
20
typedef double _Float64;
21
typedef long double _Float64x;
-typedef long double _Float128;
22
typedef long double _Float128x;
23
24
25
+#if !defined(HAS_FLOATN) && !defined(HAS_FLOAT128)
26
+typedef long double _Float128;
27
28
29
int main(int argc, char** argv) {
30
}
0 commit comments