diff options
Diffstat (limited to 'libc/shared/math')
-rw-r--r-- | libc/shared/math/atanhf16.h | 28 | ||||
-rw-r--r-- | libc/shared/math/cbrt.h | 23 |
2 files changed, 51 insertions, 0 deletions
diff --git a/libc/shared/math/atanhf16.h b/libc/shared/math/atanhf16.h new file mode 100644 index 0000000..b7b5d77 --- /dev/null +++ b/libc/shared/math/atanhf16.h @@ -0,0 +1,28 @@ +//===-- Shared atanhf16 function --------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SHARED_MATH_ATANHF16_H +#define LLVM_LIBC_SHARED_MATH_ATANHF16_H + +#include "shared/libc_common.h" + +#ifdef LIBC_TYPES_HAS_FLOAT16 + +#include "src/__support/math/atanhf16.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::atanhf16; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LIBC_TYPES_HAS_FLOAT16 + +#endif // LLVM_LIBC_SHARED_MATH_ATANHF16_H diff --git a/libc/shared/math/cbrt.h b/libc/shared/math/cbrt.h new file mode 100644 index 0000000..5e677c5 --- /dev/null +++ b/libc/shared/math/cbrt.h @@ -0,0 +1,23 @@ +//===-- Shared cbrt function ------------------------------------*- C++ -*-===// +// +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_LIBC_SHARED_MATH_CBRT_H +#define LLVM_LIBC_SHARED_MATH_CBRT_H + +#include "shared/libc_common.h" +#include "src/__support/math/cbrt.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::cbrt; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SHARED_MATH_CBRT_H |