diff options
Diffstat (limited to 'libc/shared')
-rw-r--r-- | libc/shared/math.h | 5 | ||||
-rw-r--r-- | libc/shared/math/acosf.h | 23 | ||||
-rw-r--r-- | libc/shared/math/acosf16.h | 29 | ||||
-rw-r--r-- | libc/shared/math/acoshf.h | 23 | ||||
-rw-r--r-- | libc/shared/math/acoshf16.h | 29 | ||||
-rw-r--r-- | libc/shared/math/erff.h | 23 | ||||
-rw-r--r-- | libc/shared/math/exp10f16.h | 2 | ||||
-rw-r--r-- | libc/shared/sign.h | 23 |
8 files changed, 156 insertions, 1 deletions
diff --git a/libc/shared/math.h b/libc/shared/math.h index 8dcfaf0..e3c674c 100644 --- a/libc/shared/math.h +++ b/libc/shared/math.h @@ -12,6 +12,11 @@ #include "libc_common.h" #include "math/acos.h" +#include "math/acosf.h" +#include "math/acosf16.h" +#include "math/acoshf.h" +#include "math/acoshf16.h" +#include "math/erff.h" #include "math/exp.h" #include "math/exp10.h" #include "math/exp10f.h" diff --git a/libc/shared/math/acosf.h b/libc/shared/math/acosf.h new file mode 100644 index 0000000..7cdd64e --- /dev/null +++ b/libc/shared/math/acosf.h @@ -0,0 +1,23 @@ +//===-- Shared acosf 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_ACOSF_H +#define LLVM_LIBC_SHARED_MATH_ACOSF_H + +#include "shared/libc_common.h" +#include "src/__support/math/acosf.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::acosf; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SHARED_MATH_ACOSF_H diff --git a/libc/shared/math/acosf16.h b/libc/shared/math/acosf16.h new file mode 100644 index 0000000..aaf6ed9 --- /dev/null +++ b/libc/shared/math/acosf16.h @@ -0,0 +1,29 @@ +//===-- Shared acosf16 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_ACOSF16_H +#define LLVM_LIBC_SHARED_MATH_ACOSF16_H + +#include "include/llvm-libc-macros/float16-macros.h" + +#ifdef LIBC_TYPES_HAS_FLOAT16 + +#include "shared/libc_common.h" +#include "src/__support/math/acosf16.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::acosf16; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LIBC_TYPES_HAS_FLOAT16 + +#endif // LLVM_LIBC_SHARED_MATH_ACOSF16_H diff --git a/libc/shared/math/acoshf.h b/libc/shared/math/acoshf.h new file mode 100644 index 0000000..86bdbce --- /dev/null +++ b/libc/shared/math/acoshf.h @@ -0,0 +1,23 @@ +//===-- Shared acoshf 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_ACOSHF_H +#define LLVM_LIBC_SHARED_MATH_ACOSHF_H + +#include "shared/libc_common.h" +#include "src/__support/math/acoshf.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::acoshf; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SHARED_MATH_ACOSHF_H diff --git a/libc/shared/math/acoshf16.h b/libc/shared/math/acoshf16.h new file mode 100644 index 0000000..2f0bc6e --- /dev/null +++ b/libc/shared/math/acoshf16.h @@ -0,0 +1,29 @@ +//===-- Shared acoshf16 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_ACOSHF16_H +#define LLVM_LIBC_SHARED_MATH_ACOSHF16_H + +#include "include/llvm-libc-macros/float16-macros.h" +#include "shared/libc_common.h" + +#ifdef LIBC_TYPES_HAS_FLOAT16 + +#include "src/__support/math/acoshf16.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::acoshf16; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LIBC_TYPES_HAS_FLOAT16 + +#endif // LLVM_LIBC_SHARED_MATH_ACOSHF16_H diff --git a/libc/shared/math/erff.h b/libc/shared/math/erff.h new file mode 100644 index 0000000..d0cca15 --- /dev/null +++ b/libc/shared/math/erff.h @@ -0,0 +1,23 @@ +//===-- Shared erff 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_ERFF_H +#define LLVM_LIBC_SHARED_MATH_ERFF_H + +#include "shared/libc_common.h" +#include "src/__support/math/erff.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using math::erff; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SHARED_MATH_ERFF_H diff --git a/libc/shared/math/exp10f16.h b/libc/shared/math/exp10f16.h index 8acdbdb..af00787 100644 --- a/libc/shared/math/exp10f16.h +++ b/libc/shared/math/exp10f16.h @@ -10,10 +10,10 @@ #define LLVM_LIBC_SHARED_MATH_EXP10F_H #include "include/llvm-libc-macros/float16-macros.h" +#include "shared/libc_common.h" #ifdef LIBC_TYPES_HAS_FLOAT16 -#include "shared/libc_common.h" #include "src/__support/math/exp10f16.h" namespace LIBC_NAMESPACE_DECL { diff --git a/libc/shared/sign.h b/libc/shared/sign.h new file mode 100644 index 0000000..2029b52 --- /dev/null +++ b/libc/shared/sign.h @@ -0,0 +1,23 @@ +//===-- Shared sign type ----------------------------------------*- 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_SIGN_H +#define LLVM_LIBC_SHARED_SIGN_H + +#include "libc_common.h" +#include "src/__support/sign.h" + +namespace LIBC_NAMESPACE_DECL { +namespace shared { + +using LIBC_NAMESPACE::Sign; + +} // namespace shared +} // namespace LIBC_NAMESPACE_DECL + +#endif // LLVM_LIBC_SHARED_SIGN_H |