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