1/*===-- runtime/Float128Math/complex-math.c -------------------------*- C -*-===
2 *
3 * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 * See https://llvm.org/LICENSE.txt for license information.
5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 *
7 * ===-----------------------------------------------------------------------===
8 */
9
10#include "complex-math.h"
11
12#if LDBL_MANT_DIG == 113 || HAS_FLOAT128
13
14CFloat128Type RTDEF(CAbsF128)(CFloat128ComplexType x) { return CAbs(x); }
15CFloat128ComplexType RTDEF(CAcosF128)(CFloat128ComplexType x) {
16 return CAcos(x);
17}
18CFloat128ComplexType RTDEF(CAcoshF128)(CFloat128ComplexType x) {
19 return CAcosh(x);
20}
21CFloat128ComplexType RTDEF(CAsinF128)(CFloat128ComplexType x) {
22 return CAsin(x);
23}
24CFloat128ComplexType RTDEF(CAsinhF128)(CFloat128ComplexType x) {
25 return CAsinh(x);
26}
27CFloat128ComplexType RTDEF(CAtanF128)(CFloat128ComplexType x) {
28 return CAtan(x);
29}
30CFloat128ComplexType RTDEF(CAtanhF128)(CFloat128ComplexType x) {
31 return CAtanh(x);
32}
33CFloat128ComplexType RTDEF(CCosF128)(CFloat128ComplexType x) { return CCos(x); }
34CFloat128ComplexType RTDEF(CCoshF128)(CFloat128ComplexType x) {
35 return CCosh(x);
36}
37CFloat128ComplexType RTDEF(CExpF128)(CFloat128ComplexType x) { return CExp(x); }
38CFloat128ComplexType RTDEF(CLogF128)(CFloat128ComplexType x) { return CLog(x); }
39CFloat128ComplexType RTDEF(CPowF128)(
40 CFloat128ComplexType x, CFloat128ComplexType p) {
41 return CPow(x, p);
42}
43CFloat128ComplexType RTDEF(CSinF128)(CFloat128ComplexType x) { return CSin(x); }
44CFloat128ComplexType RTDEF(CSinhF128)(CFloat128ComplexType x) {
45 return CSinh(x);
46}
47CFloat128ComplexType RTDEF(CSqrtF128)(CFloat128ComplexType x) {
48 return CSqrt(x);
49}
50CFloat128ComplexType RTDEF(CTanF128)(CFloat128ComplexType x) { return CTan(x); }
51CFloat128ComplexType RTDEF(CTanhF128)(CFloat128ComplexType x) {
52 return CTanh(x);
53}
54
55#endif // LDBL_MANT_DIG == 113 || HAS_FLOAT128
56

source code of flang/runtime/Float128Math/complex-math.c