diff options
Diffstat (limited to 'libc/shared')
-rw-r--r-- | libc/shared/math.h | 2 | ||||
-rw-r--r-- | libc/shared/math/atanhf16.h | 28 | ||||
-rw-r--r-- | libc/shared/math/cbrt.h | 23 |
3 files changed, 53 insertions, 0 deletions
diff --git a/libc/shared/math.h b/libc/shared/math.h index ddf219e..3714f38 100644 --- a/libc/shared/math.h +++ b/libc/shared/math.h @@ -29,6 +29,8 @@ #include "math/atanf.h" #include "math/atanf16.h" #include "math/atanhf.h" +#include "math/atanhf16.h" +#include "math/cbrt.h" #include "math/erff.h" #include "math/exp.h" #include "math/exp10.h" 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 |