1/*===-- lib/quadmath/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#include "complex-math.h"
10
11#if HAS_LDBL128 || HAS_FLOAT128
12
13CFloat128Type RTDEF(CAbsF128)(CFloat128ComplexType x) { return CAbs(x); }
14CFloat128ComplexType RTDEF(CAcosF128)(CFloat128ComplexType x) {
15 return CAcos(x);
16}
17CFloat128ComplexType RTDEF(CAcoshF128)(CFloat128ComplexType x) {
18 return CAcosh(x);
19}
20CFloat128ComplexType RTDEF(CAsinF128)(CFloat128ComplexType x) {
21 return CAsin(x);
22}
23CFloat128ComplexType RTDEF(CAsinhF128)(CFloat128ComplexType x) {
24 return CAsinh(x);
25}
26CFloat128ComplexType RTDEF(CAtanF128)(CFloat128ComplexType x) {
27 return CAtan(x);
28}
29CFloat128ComplexType RTDEF(CAtanhF128)(CFloat128ComplexType x) {
30 return CAtanh(x);
31}
32CFloat128ComplexType RTDEF(CCosF128)(CFloat128ComplexType x) { return CCos(x); }
33CFloat128ComplexType RTDEF(CCoshF128)(CFloat128ComplexType x) {
34 return CCosh(x);
35}
36CFloat128ComplexType RTDEF(CExpF128)(CFloat128ComplexType x) { return CExp(x); }
37CFloat128ComplexType RTDEF(CLogF128)(CFloat128ComplexType x) { return CLog(x); }
38CFloat128ComplexType RTDEF(CPowF128)(
39 CFloat128ComplexType x, CFloat128ComplexType p) {
40 return CPow(x, p);
41}
42CFloat128ComplexType RTDEF(CSinF128)(CFloat128ComplexType x) { return CSin(x); }
43CFloat128ComplexType RTDEF(CSinhF128)(CFloat128ComplexType x) {
44 return CSinh(x);
45}
46CFloat128ComplexType RTDEF(CSqrtF128)(CFloat128ComplexType x) {
47 return CSqrt(x);
48}
49CFloat128ComplexType RTDEF(CTanF128)(CFloat128ComplexType x) { return CTan(x); }
50CFloat128ComplexType RTDEF(CTanhF128)(CFloat128ComplexType x) {
51 return CTanh(x);
52}
53
54#endif // HAS_LDBL128 || HAS_FLOAT128
55

source code of flang-rt/lib/quadmath/complex-math.c