File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change 54
54
/* Define pure C CFloat128Type and CFloat128ComplexType. */
55
55
#if LDBL_MANT_DIG == 113
56
56
typedef long double CFloat128Type ;
57
+ #ifndef __cplusplus
57
58
typedef long double _Complex CFloat128ComplexType ;
59
+ #endif
58
60
#elif HAS_FLOAT128
59
61
typedef __float128 CFloat128Type ;
62
+
63
+ #ifndef __cplusplus
60
64
/*
61
65
* Use mode() attribute supported by GCC and Clang.
62
66
* Adjust it for other compilers as needed.
@@ -66,5 +70,6 @@ typedef _Complex float __attribute__((mode(TC))) CFloat128ComplexType;
66
70
#else
67
71
typedef _Complex float __attribute__((mode (KC ))) CFloat128ComplexType ;
68
72
#endif
73
+ #endif // __cplusplus
69
74
#endif
70
75
#endif /* FORTRAN_COMMON_FLOAT128_H_ */
Original file line number Diff line number Diff line change 10
10
11
11
namespace Fortran ::runtime {
12
12
extern " C" {
13
-
13
+ #if 0
14
+ // FIXME: temporarily disabled. Need to add pure C entry point
15
+ // using C _Complex ABI.
14
16
#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
15
17
// NOTE: Flang calls the runtime APIs using C _Complex ABI
16
18
CppTypeFor<TypeCategory::Real, 16> RTDEF(CAbsF128)(CFloat128ComplexType x) {
17
19
return CAbs<RTNAME(CAbsF128)>::invoke(x);
18
20
}
19
21
#endif
20
-
22
+ # endif
21
23
} // extern "C"
22
24
} // namespace Fortran::runtime
Original file line number Diff line number Diff line change @@ -61,7 +61,6 @@ DEFINE_FALLBACK(Asinh)
61
61
DEFINE_FALLBACK (Atan)
62
62
DEFINE_FALLBACK (Atan2)
63
63
DEFINE_FALLBACK (Atanh)
64
- DEFINE_FALLBACK (CAbs)
65
64
DEFINE_FALLBACK (Ceil)
66
65
DEFINE_FALLBACK (Cos)
67
66
DEFINE_FALLBACK (Cosh)
@@ -163,7 +162,6 @@ DEFINE_SIMPLE_ALIAS(Asinh, asinhq)
163
162
DEFINE_SIMPLE_ALIAS(Atan, atanq)
164
163
DEFINE_SIMPLE_ALIAS(Atan2, atan2q)
165
164
DEFINE_SIMPLE_ALIAS(Atanh, atanhq)
166
- DEFINE_SIMPLE_ALIAS(CAbs, cabsq)
167
165
DEFINE_SIMPLE_ALIAS(Ceil, ceilq)
168
166
DEFINE_SIMPLE_ALIAS(Cos, cosq)
169
167
DEFINE_SIMPLE_ALIAS(Cosh, coshq)
You can’t perform that action at this time.
0 commit comments