[libc-commits] [libc] [llvm] [libc][math][c23] Add cosbf16 math function (PR #185801)
via libc-commits
libc-commits at lists.llvm.org
Tue Nov 24 11:46:48 PST 2026
https://github.com/Sukumarsawant updated https://github.com/llvm/llvm-project/pull/185801
>From 2381c11d0a33d3e0eec424ee1706d9202579dc50 Mon Sep 17 00:00:00 2001
From: Sukumarsawant <sawantsukumar at gmail.com>
Date: Tue, 10 Mar 2026 19:30:18 +0530
Subject: [PATCH 1/2] feat: added entrypoints
---
libc/config/baremetal/aarch64/entrypoints.txt | 1 +
libc/config/baremetal/arm/entrypoints.txt | 1 +
libc/config/baremetal/riscv/entrypoints.txt | 1 +
libc/config/darwin/aarch64/entrypoints.txt | 1 +
libc/config/darwin/x86_64/entrypoints.txt | 1 +
libc/config/gpu/amdgpu/entrypoints.txt | 1 +
libc/config/gpu/nvptx/entrypoints.txt | 1 +
libc/config/linux/aarch64/entrypoints.txt | 1 +
libc/config/linux/arm/entrypoints.txt | 1 +
libc/config/linux/riscv/entrypoints.txt | 1 +
libc/config/linux/x86_64/entrypoints.txt | 1 +
libc/config/windows/entrypoints.txt | 1 +
12 files changed, 12 insertions(+)
diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index e3d5c8c0a68399..747dbfec3f8f5f 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -852,6 +852,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index fc937dcc7670c0..4d5638e504ce51 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -863,6 +863,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index ae01bdda48a8ed..6e0d204c39a6f4 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -855,6 +855,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/darwin/aarch64/entrypoints.txt b/libc/config/darwin/aarch64/entrypoints.txt
index b0fa44ccbd6df0..361ea952759ccc 100644
--- a/libc/config/darwin/aarch64/entrypoints.txt
+++ b/libc/config/darwin/aarch64/entrypoints.txt
@@ -673,6 +673,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/darwin/x86_64/entrypoints.txt b/libc/config/darwin/x86_64/entrypoints.txt
index a85ea90f123e79..8c40f28e4aca73 100644
--- a/libc/config/darwin/x86_64/entrypoints.txt
+++ b/libc/config/darwin/x86_64/entrypoints.txt
@@ -317,6 +317,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizef80
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt
index d2b1050abf66b6..e5d8b672ada003 100644
--- a/libc/config/gpu/amdgpu/entrypoints.txt
+++ b/libc/config/gpu/amdgpu/entrypoints.txt
@@ -742,6 +742,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt
index 8dba78c330a5f5..b394d1237febfa 100644
--- a/libc/config/gpu/nvptx/entrypoints.txt
+++ b/libc/config/gpu/nvptx/entrypoints.txt
@@ -758,6 +758,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index 99678f528cda26..3baf24804331eb 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -1134,6 +1134,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/linux/arm/entrypoints.txt b/libc/config/linux/arm/entrypoints.txt
index 7a9e287839f9a7..7472bd5bd3ed36 100644
--- a/libc/config/linux/arm/entrypoints.txt
+++ b/libc/config/linux/arm/entrypoints.txt
@@ -737,6 +737,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizef80
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index d1232ae7d11013..ef051d23564b80 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -1236,6 +1236,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 28d2d4881dbefd..5bf669322d0a53 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -1236,6 +1236,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
diff --git a/libc/config/windows/entrypoints.txt b/libc/config/windows/entrypoints.txt
index 7046934c029380..ef87a69fea7912 100644
--- a/libc/config/windows/entrypoints.txt
+++ b/libc/config/windows/entrypoints.txt
@@ -416,6 +416,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizef80
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.exp2bf16
libc.src.math.expbf16
>From 3721f15a0a4bd71b49cb989223816ebae7cc9403 Mon Sep 17 00:00:00 2001
From: Sukumarsawant <sawantsukumar at gmail.com>
Date: Tue, 10 Mar 2026 23:09:24 +0530
Subject: [PATCH 2/2] chore: squashed for conflicts
feat: final Implementation for cosbf16
temp
feat: Implementation for cosbf16
nit
checked index.rst
nits
add freebsd entrypoint
Update libc/test/src/math/smoke/cosbf16_test.cpp
Co-authored-by: Muhammad Bassiouni <60100307+bassiounix at users.noreply.github.com>
nits
nit
---
libc/config/freebsd/x86_64/entrypoints.txt | 1 +
libc/shared/math.h | 1 +
libc/shared/math/cosbf16.h | 23 +
libc/src/__support/math/CMakeLists.txt | 16 +
libc/src/__support/math/cosbf16.h | 75 +
libc/src/math/CMakeLists.txt | 1 +
libc/src/math/cosbf16.h | 21 +
libc/src/math/generic/CMakeLists.txt | 10 +
libc/src/math/generic/cosbf16.cpp | 16 +
libc/test/shared/CMakeLists.txt | 2007 +++----
libc/test/src/math/CMakeLists.txt | 13 +
libc/test/src/math/cosbf16_test.cpp | 45 +
libc/test/src/math/smoke/CMakeLists.txt | 13 +
libc/test/src/math/smoke/cosbf16_test.cpp | 41 +
.../llvm-project-overlay/libc/BUILD.bazel | 4859 +++++++++--------
.../libc/src/__support/math/BUILD.bazel | 16 +
.../libc/src/math/BUILD.bazel | 7 +
.../libc/test/src/math/BUILD.bazel | 7 +
.../libc/test/src/math/smoke/BUILD.bazel | 7 +
19 files changed, 3747 insertions(+), 3432 deletions(-)
create mode 100644 libc/shared/math/cosbf16.h
create mode 100644 libc/src/__support/math/cosbf16.h
create mode 100644 libc/src/math/cosbf16.h
create mode 100644 libc/src/math/generic/cosbf16.cpp
create mode 100644 libc/test/src/math/cosbf16_test.cpp
create mode 100644 libc/test/src/math/smoke/cosbf16_test.cpp
diff --git a/libc/config/freebsd/x86_64/entrypoints.txt b/libc/config/freebsd/x86_64/entrypoints.txt
index 862a421c473d36..160c3c61ee755b 100644
--- a/libc/config/freebsd/x86_64/entrypoints.txt
+++ b/libc/config/freebsd/x86_64/entrypoints.txt
@@ -606,6 +606,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.canonicalizebf16
libc.src.math.ceilbf16
libc.src.math.copysignbf16
+ libc.src.math.cosbf16
libc.src.math.coshbf16
libc.src.math.expbf16
libc.src.math.fabsbf16
diff --git a/libc/shared/math.h b/libc/shared/math.h
index 503c78bc1bd3e2..28c8e6f9765a82 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -85,6 +85,7 @@
#include "math/copysignf80.h"
#include "math/copysignl.h"
#include "math/cos.h"
+#include "math/cosbf16.h"
#include "math/cosf.h"
#include "math/cosf16.h"
#include "math/cosh.h"
diff --git a/libc/shared/math/cosbf16.h b/libc/shared/math/cosbf16.h
new file mode 100644
index 00000000000000..5ff8ce8dea8dd6
--- /dev/null
+++ b/libc/shared/math/cosbf16.h
@@ -0,0 +1,23 @@
+//===-- Shared cosbf16 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_COSBF16_H
+#define LLVM_LIBC_SHARED_MATH_COSBF16_H
+
+#include "shared/libc_common.h"
+#include "src/__support/math/cosbf16.h"
+
+namespace LIBC_NAMESPACE_DECL {
+namespace shared {
+
+using math::cosbf16;
+
+} // namespace shared
+} // namespace LIBC_NAMESPACE_DECL
+
+#endif // LLVM_LIBC_SHARED_MATH_COSBF16_H
diff --git a/libc/src/__support/math/CMakeLists.txt b/libc/src/__support/math/CMakeLists.txt
index 9a312dd0fded88..d0aa30a8d79dbd 100644
--- a/libc/src/__support/math/CMakeLists.txt
+++ b/libc/src/__support/math/CMakeLists.txt
@@ -3002,6 +3002,22 @@ add_header_library(
libc.src.__support.macros.optimization
)
+add_header_library(
+ cosbf16
+ HDRS
+ cosbf16.h
+ DEPENDS
+ .sincosf_utils
+ libc.hdr.errno_macros
+ libc.hdr.fenv_macros
+ libc.src.__support.FPUtil.cast
+ libc.src.__support.FPUtil.fenv_impl
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.FPUtil.multiply_add
+ libc.src.__support.macros.optimization
+ libc.src.__support.FPUtil.bfloat16
+)
+
add_header_library(
cosf_float_eval
HDRS
diff --git a/libc/src/__support/math/cosbf16.h b/libc/src/__support/math/cosbf16.h
new file mode 100644
index 00000000000000..ce161f0e5e071f
--- /dev/null
+++ b/libc/src/__support/math/cosbf16.h
@@ -0,0 +1,75 @@
+//===-- Implementation header for cosbf16 -----------------------*- 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_SRC___SUPPORT_MATH_COSBF16_H
+#define LLVM_LIBC_SRC___SUPPORT_MATH_COSBF16_H
+
+#include "hdr/errno_macros.h"
+#include "hdr/fenv_macros.h"
+#include "sincosf_utils.h"
+#include "src/__support/FPUtil/FEnvImpl.h"
+#include "src/__support/FPUtil/FPBits.h"
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/__support/FPUtil/cast.h"
+#include "src/__support/FPUtil/multiply_add.h"
+#include "src/__support/macros/optimization.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+namespace math {
+
+LIBC_INLINE bfloat16 cosbf16(bfloat16 x) {
+ using namespace sincosf_utils_internal;
+
+ using FPBits = fputil::FPBits<bfloat16>;
+ FPBits xbits(x);
+
+ uint16_t x_u = xbits.uintval();
+ uint16_t x_abs = x_u & 0x7fff;
+ float xf = x;
+
+ if (x_abs < 0x7f80) {
+ // cos(+/-0) = 1
+ if (LIBC_UNLIKELY(x_abs == 0))
+ return fputil::cast<bfloat16>(1.0f);
+
+ double xd = static_cast<double>(xf);
+ uint32_t x_abs_f = fputil::FPBits<float>(xf).uintval() & 0x7fffffff;
+ double sin_k, cos_k, sin_y, cosm1_y;
+
+ sincosf_eval(xd, x_abs_f, sin_k, cos_k, sin_y, cosm1_y);
+ // using cos(a + b) = cos(a)*cos(b) - sin(a)*sin(b)
+ // cos(x) = cos_k*cos_y - sin_k*sin_y
+ // but cosm1_y = cos_y - 1 --> cos_y = cosm1_y + 1
+ // cos(x) = cos_k*cosm1_y + cos_k - sin_k * sin_y
+
+ return fputil::cast<bfloat16>(fputil::multiply_add(
+ cosm1_y, cos_k, fputil::multiply_add(-sin_y, sin_k, cos_k)));
+ }
+
+ // NaN
+ if (xbits.is_nan()) {
+ if (xbits.is_signaling_nan()) {
+ fputil::raise_except_if_required(FE_INVALID);
+ return FPBits::quiet_nan().get_val();
+ }
+ return x;
+ }
+
+ // +/- inf
+ fputil::set_errno_if_required(EDOM);
+ fputil::raise_except_if_required(FE_INVALID);
+
+ return x + FPBits::quiet_nan().get_val();
+}
+
+} // namespace math
+
+} // namespace LIBC_NAMESPACE_DECL
+
+#endif // LLVM_LIBC_SRC___SUPPORT_MATH_COSBF16_H
diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt
index aa2c720f47df16..f48d21e3564a52 100644
--- a/libc/src/math/CMakeLists.txt
+++ b/libc/src/math/CMakeLists.txt
@@ -120,6 +120,7 @@ add_math_entrypoint_object(copysignf80)
add_math_entrypoint_object(copysignbf16)
add_math_entrypoint_object(cos)
+add_math_entrypoint_object(cosbf16)
add_math_entrypoint_object(cosf)
add_math_entrypoint_object(cosf16)
diff --git a/libc/src/math/cosbf16.h b/libc/src/math/cosbf16.h
new file mode 100644
index 00000000000000..75306265cb35de
--- /dev/null
+++ b/libc/src/math/cosbf16.h
@@ -0,0 +1,21 @@
+//===-- Implementation header for cosbf16 -----------------------*- 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_SRC_MATH_COSBF16_H
+#define LLVM_LIBC_SRC_MATH_COSBF16_H
+
+#include "src/__support/macros/config.h"
+#include "src/__support/macros/properties/types.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+bfloat16 cosbf16(bfloat16 x);
+
+} // namespace LIBC_NAMESPACE_DECL
+
+#endif // LLVM_LIBC_SRC_MATH_COSBF16_H
diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt
index 0c495701e97886..2bd87029ebb67a 100644
--- a/libc/src/math/generic/CMakeLists.txt
+++ b/libc/src/math/generic/CMakeLists.txt
@@ -323,6 +323,16 @@ add_entrypoint_object(
libc.src.__support.math.cosf
)
+add_entrypoint_object(
+ cosbf16
+ SRCS
+ cosbf16.cpp
+ HDRS
+ ../cosbf16.h
+ DEPENDS
+ libc.src.__support.math.cosbf16
+)
+
add_entrypoint_object(
cosf16
SRCS
diff --git a/libc/src/math/generic/cosbf16.cpp b/libc/src/math/generic/cosbf16.cpp
new file mode 100644
index 00000000000000..b65480a718174f
--- /dev/null
+++ b/libc/src/math/generic/cosbf16.cpp
@@ -0,0 +1,16 @@
+//===-- Implementation for cosbf16 function -------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/math/cosbf16.h"
+#include "src/__support/math/cosbf16.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+LLVM_LIBC_FUNCTION(bfloat16, cosbf16, (bfloat16 x)) { return math::cosbf16(x); }
+
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/test/shared/CMakeLists.txt b/libc/test/shared/CMakeLists.txt
index be3df9fa6e6ab6..e8a3c6549dbf8c 100644
--- a/libc/test/shared/CMakeLists.txt
+++ b/libc/test/shared/CMakeLists.txt
@@ -1,1003 +1,1004 @@
-add_libc_testsuite(libc-shared-tests)
-
-if(NOT LLVM_LIBC_FULL_BUILD AND "${LIBC_CONF_ERRNO_MODE}" STREQUAL "LIBC_ERRNO_MODE_DEFAULT")
- set(shared_test_errno_options "")
- libc_add_definition(shared_test_errno_options "LIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SYSTEM_INLINE")
- add_compile_options(${shared_test_errno_options})
-endif()
-
-# Shared headers are included together by external consumers that build with
-# -Werror -Wshadow; enable -Wshadow here to catch cross-header shadow warnings.
-# Older Clang versions emit false positive shadow warnings for lambda captures
-# inside static member functions (fixed in Clang 22, see PR #157667 and #165919).
-if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "22.0.0")
- if(LIBC_WNO_ERROR)
- add_compile_options(-Wshadow)
- else()
- add_compile_options(-Wshadow -Werror=shadow)
- endif()
-endif()
-
-# Shared math tests include the entire math library headers into a single file
-# so it might take some time to compile the tests. We do have dedicated
-# precommit CIs to build and test shared tests. So we provide a cmake option
-# LIBC_TEST_SKIP_SHARED_TESTS to reduce redundant testings and reduce test time
-# for other precommit CIs.
-if(LIBC_TEST_SKIP_SHARED_TESTS)
- if(LIBC_CMAKE_VERBOSE_LOGGING)
- message(STATUS "LIBC_TEST_SKIP_SHARED_MATH_TESTS is set. Skipping libc-shared-tests.")
- endif()
-else()
- add_fp_unittest(
- shared_math_test
- SUITE
- libc-shared-tests
- SRCS
- shared_math_test.cpp
- DEPENDS
- libc.hdr.fenv_macros
- libc.src.__support.FPUtil.float128
- libc.src.__support.FPUtil.float80
- libc.src.__support.FPUtil.fp_bits
- libc.src.__support.math.acos
- libc.src.__support.math.acosbf16
- libc.src.__support.math.acosf
- libc.src.__support.math.acosf16
- libc.src.__support.math.acoshf
- libc.src.__support.math.acoshbf16
- libc.src.__support.math.acoshf16
- libc.src.__support.math.acospif
- libc.src.__support.math.acospif16
- libc.src.__support.math.asin
- libc.src.__support.math.asinbf16
- libc.src.__support.math.asinf
- libc.src.__support.math.asinf16
- libc.src.__support.math.asinhf
- libc.src.__support.math.asinhf16
- libc.src.__support.math.asinpi
- libc.src.__support.math.asinpif
- libc.src.__support.math.asinpif16
- libc.src.__support.math.atan
- libc.src.__support.math.atan2
- libc.src.__support.math.atan2f
- libc.src.__support.math.atan2f128
- libc.src.__support.math.atan2f16
- libc.src.__support.math.atanbf16
- libc.src.__support.math.atanf
- libc.src.__support.math.atanf16
- libc.src.__support.math.atanhf
- libc.src.__support.math.atanhf16
- libc.src.__support.math.atanpif16
- libc.src.__support.math.bf16add
- libc.src.__support.math.bf16addf
- libc.src.__support.math.bf16addl
- libc.src.__support.math.bf16addf128
- libc.src.__support.math.bf16div
- libc.src.__support.math.bf16divf
- libc.src.__support.math.bf16divf128
- libc.src.__support.math.bf16divl
- libc.src.__support.math.bf16fma
- libc.src.__support.math.bf16fmaf
- libc.src.__support.math.bf16fmaf128
- libc.src.__support.math.bf16fmal
- libc.src.__support.math.bf16mul
- libc.src.__support.math.bf16mulf
- libc.src.__support.math.bf16mulf128
- libc.src.__support.math.bf16mull
- libc.src.__support.math.bf16sub
- libc.src.__support.math.bf16subf
- libc.src.__support.math.bf16subf128
- libc.src.__support.math.bf16subl
- libc.src.__support.math.canonicalize
- libc.src.__support.math.canonicalizebf16
- libc.src.__support.math.canonicalizef
- libc.src.__support.math.canonicalizef128
- libc.src.__support.math.canonicalizef80
- libc.src.__support.math.canonicalizef16
- libc.src.__support.math.canonicalizel
- libc.src.__support.math.cbrt
- libc.src.__support.math.cbrtbf16
- libc.src.__support.math.cbrtf
- libc.src.__support.math.cbrtf16
- libc.src.__support.math.ceil
- libc.src.__support.math.ceilbf16
- libc.src.__support.math.ceilf
- libc.src.__support.math.ceilf128
- libc.src.__support.math.ceilf16
- libc.src.__support.math.ceill
- libc.src.__support.math.copysign
- libc.src.__support.math.copysignbf16
- libc.src.__support.math.copysignf
- libc.src.__support.math.copysignf128
- libc.src.__support.math.copysignf80
- libc.src.__support.math.copysignf16
- libc.src.__support.math.copysignl
- libc.src.__support.math.cos
- libc.src.__support.math.cosf
- libc.src.__support.math.cosf16
- libc.src.__support.math.cosh
- libc.src.__support.math.coshbf16
- libc.src.__support.math.coshf
- libc.src.__support.math.coshf16
- libc.src.__support.math.cospif
- libc.src.__support.math.cospif16
- libc.src.__support.math.daddf128
- libc.src.__support.math.daddl
- libc.src.__support.math.ddivf128
- libc.src.__support.math.ddivl
- libc.src.__support.math.dfmaf128
- libc.src.__support.math.dfmal
- libc.src.__support.math.dmulf128
- libc.src.__support.math.dmull
- libc.src.__support.math.dsqrtf128
- libc.src.__support.math.dsqrtl
- libc.src.__support.math.dsubf128
- libc.src.__support.math.dsubl
- libc.src.__support.math.exp10m1f
- libc.src.__support.math.exp10m1f16
- libc.src.__support.math.erfcf16
- libc.src.__support.math.erff
- libc.src.__support.math.erff16
- libc.src.__support.math.exp
- libc.src.__support.math.exp2
- libc.src.__support.math.exp2f
- libc.src.__support.math.exp2f16
- libc.src.__support.math.exp2m1f
- libc.src.__support.math.exp2m1f16
- libc.src.__support.math.expm1
- libc.src.__support.math.expm1f
- libc.src.__support.math.expm1f16
- libc.src.__support.math.exp10
- libc.src.__support.math.exp10f
- libc.src.__support.math.exp10f16
- libc.src.__support.math.expf
- libc.src.__support.math.expbf16
- libc.src.__support.math.expf16
- libc.src.__support.math.f16add
- libc.src.__support.math.f16addf
- libc.src.__support.math.f16addf128
- libc.src.__support.math.f16addl
- libc.src.__support.math.f16div
- libc.src.__support.math.f16divf
- libc.src.__support.math.f16divf128
- libc.src.__support.math.f16divl
- libc.src.__support.math.f16fma
- libc.src.__support.math.f16fmaf
- libc.src.__support.math.f16fmaf128
- libc.src.__support.math.f16fmal
- libc.src.__support.math.f16mul
- libc.src.__support.math.f16mulf
- libc.src.__support.math.f16mulf128
- libc.src.__support.math.f16mull
- libc.src.__support.math.f16sqrt
- libc.src.__support.math.f16sqrtf
- libc.src.__support.math.f16sqrtf128
- libc.src.__support.math.f16sqrtl
- libc.src.__support.math.f16sub
- libc.src.__support.math.f16subf
- libc.src.__support.math.f16subf128
- libc.src.__support.math.f16subl
- libc.src.__support.math.fabs
- libc.src.__support.math.fabsbf16
- libc.src.__support.math.fabsf
- libc.src.__support.math.fabsf128
- libc.src.__support.math.fabsf80
- libc.src.__support.math.fabsf16
- libc.src.__support.math.fabsl
- libc.src.__support.math.fadd
- libc.src.__support.math.faddf128
- libc.src.__support.math.faddl
- libc.src.__support.math.fdim
- libc.src.__support.math.fdimbf16
- libc.src.__support.math.fdimf
- libc.src.__support.math.fdimf128
- libc.src.__support.math.fdimf16
- libc.src.__support.math.fdimf80
- libc.src.__support.math.fdiml
- libc.src.__support.math.fdiv
- libc.src.__support.math.fdivf128
- libc.src.__support.math.fdivl
- libc.src.__support.math.ffma
- libc.src.__support.math.ffmaf128
- libc.src.__support.math.ffmal
- libc.src.__support.math.floor
- libc.src.__support.math.floorbf16
- libc.src.__support.math.floorf
- libc.src.__support.math.floorf128
- libc.src.__support.math.floorf16
- libc.src.__support.math.floorl
- libc.src.__support.math.fma
- libc.src.__support.math.fmaf
- libc.src.__support.math.fmaf16
- libc.src.__support.math.fmabf16
- libc.src.__support.math.fmax
- libc.src.__support.math.fmaxbf16
- libc.src.__support.math.fmaxf
- libc.src.__support.math.fmaxf128
- libc.src.__support.math.fmaxf16
- libc.src.__support.math.fmaxf80
- libc.src.__support.math.fmaximum
- libc.src.__support.math.fmaximum_mag
- libc.src.__support.math.fmaximum_mag_num
- libc.src.__support.math.fmaximum_mag_numbf16
- libc.src.__support.math.fmaximum_mag_numf
- libc.src.__support.math.fmaximum_mag_numf128
- libc.src.__support.math.fmaximum_mag_numf16
- libc.src.__support.math.fmaximum_mag_numf80
- libc.src.__support.math.fmaximum_mag_numl
- libc.src.__support.math.fmaximum_magbf16
- libc.src.__support.math.fmaximum_magf
- libc.src.__support.math.fmaximum_magf128
- libc.src.__support.math.fmaximum_magf16
- libc.src.__support.math.fmaximum_magf80
- libc.src.__support.math.fmaximum_magl
- libc.src.__support.math.fmaximum_num
- libc.src.__support.math.fmaximum_numbf16
- libc.src.__support.math.fmaximum_numf
- libc.src.__support.math.fmaximum_numf128
- libc.src.__support.math.fmaximum_numf16
- libc.src.__support.math.fmaximum_numf80
- libc.src.__support.math.fmaximum_numl
- libc.src.__support.math.fmaximumbf16
- libc.src.__support.math.fmaximumf
- libc.src.__support.math.fmaximumf128
- libc.src.__support.math.fmaximumf16
- libc.src.__support.math.fmaximumf80
- libc.src.__support.math.fmaximuml
- libc.src.__support.math.fmaxl
- libc.src.__support.math.fmin
- libc.src.__support.math.fminbf16
- libc.src.__support.math.fminf
- libc.src.__support.math.fminf128
- libc.src.__support.math.fminf16
- libc.src.__support.math.fminf80
- libc.src.__support.math.fminimum
- libc.src.__support.math.fminimum_mag
- libc.src.__support.math.fminimum_mag_num
- libc.src.__support.math.fminimum_mag_numbf16
- libc.src.__support.math.fminimum_mag_numf
- libc.src.__support.math.fminimum_mag_numf128
- libc.src.__support.math.fminimum_mag_numf16
- libc.src.__support.math.fminimum_mag_numf80
- libc.src.__support.math.fminimum_mag_numl
- libc.src.__support.math.fminimum_magbf16
- libc.src.__support.math.fminimum_magf
- libc.src.__support.math.fminimum_magf128
- libc.src.__support.math.fminimum_magf16
- libc.src.__support.math.fminimum_magf80
- libc.src.__support.math.fminimum_magl
- libc.src.__support.math.fminimum_num
- libc.src.__support.math.fminimum_numbf16
- libc.src.__support.math.fminimum_numf
- libc.src.__support.math.fminimum_numf128
- libc.src.__support.math.fminimum_numf16
- libc.src.__support.math.fminimum_numf80
- libc.src.__support.math.fminimum_numl
- libc.src.__support.math.fminimumbf16
- libc.src.__support.math.fminimumf
- libc.src.__support.math.fminimumf128
- libc.src.__support.math.fminimumf16
- libc.src.__support.math.fminimumf80
- libc.src.__support.math.fminimuml
- libc.src.__support.math.fminl
- libc.src.__support.math.fmod
- libc.src.__support.math.fmodbf16
- libc.src.__support.math.fmodf
- libc.src.__support.math.fmodf128
- libc.src.__support.math.fmodf16
- libc.src.__support.math.fmodl
- libc.src.__support.math.fmul
- libc.src.__support.math.fmulf128
- libc.src.__support.math.fmull
- libc.src.__support.math.frexp
- libc.src.__support.math.frexpbf16
- libc.src.__support.math.frexpf
- libc.src.__support.math.frexpf128
- libc.src.__support.math.frexpf16
- libc.src.__support.math.frexpl
- libc.src.__support.math.fromfp
- libc.src.__support.math.fromfpbf16
- libc.src.__support.math.fromfpf
- libc.src.__support.math.fromfpf128
- libc.src.__support.math.fromfpf16
- libc.src.__support.math.fromfpl
- libc.src.__support.math.fromfpx
- libc.src.__support.math.fromfpxbf16
- libc.src.__support.math.fromfpxf
- libc.src.__support.math.fromfpxf128
- libc.src.__support.math.fromfpxf16
- libc.src.__support.math.fromfpxl
- libc.src.__support.math.fsqrt
- libc.src.__support.math.fsqrtf128
- libc.src.__support.math.fsqrtl
- libc.src.__support.math.fsub
- libc.src.__support.math.fsubf128
- libc.src.__support.math.fsubl
- libc.src.__support.math.getpayload
- libc.src.__support.math.getpayloadbf16
- libc.src.__support.math.getpayloadf
- libc.src.__support.math.getpayloadf128
- libc.src.__support.math.getpayloadf16
- libc.src.__support.math.getpayloadl
- libc.src.__support.math.hypot
- libc.src.__support.math.hypotf
- libc.src.__support.math.hypotbf16
- libc.src.__support.math.hypotf16
- libc.src.__support.math.ilogb
- libc.src.__support.math.ilogbbf16
- libc.src.__support.math.ilogbf
- libc.src.__support.math.ilogbf16
- libc.src.__support.math.ilogbf128
- libc.src.__support.math.ilogbl
- libc.src.__support.math.iscanonical
- libc.src.__support.math.iscanonicalbf16
- libc.src.__support.math.iscanonicalf
- libc.src.__support.math.iscanonicalf128
- libc.src.__support.math.iscanonicalf80
- libc.src.__support.math.iscanonicalf16
- libc.src.__support.math.iscanonicall
- libc.src.__support.math.isnan
- libc.src.__support.math.isnanf
- libc.src.__support.math.isnanf128
- libc.src.__support.math.isnanf80
- libc.src.__support.math.isnanf16
- libc.src.__support.math.isnanl
- libc.src.__support.math.issignaling
- libc.src.__support.math.issignalingbf16
- libc.src.__support.math.issignalingf
- libc.src.__support.math.issignalingf128
- libc.src.__support.math.issignalingf80
- libc.src.__support.math.issignalingf16
- libc.src.__support.math.issignalingl
- libc.src.__support.math.ldexp
- libc.src.__support.math.ldexpbf16
- libc.src.__support.math.ldexpf
- libc.src.__support.math.ldexpl
- libc.src.__support.math.llogb
- libc.src.__support.math.llogbbf16
- libc.src.__support.math.llrint
- libc.src.__support.math.llrintbf16
- libc.src.__support.math.llrintf
- libc.src.__support.math.llrintf128
- libc.src.__support.math.llrintf16
- libc.src.__support.math.llrintl
- libc.src.__support.math.llround
- libc.src.__support.math.llroundbf16
- libc.src.__support.math.llroundf
- libc.src.__support.math.llroundf128
- libc.src.__support.math.llroundf16
- libc.src.__support.math.llroundl
- libc.src.__support.math.log
- libc.src.__support.math.log10
- libc.src.__support.math.log10f16
- libc.src.__support.math.log10p1bf16
- libc.src.__support.math.log10p1f16
- libc.src.__support.math.log10f
- libc.src.__support.math.log1p
- libc.src.__support.math.log1pf
- libc.src.__support.math.log2
- libc.src.__support.math.logb
- libc.src.__support.math.log2f
- libc.src.__support.math.log2f16
- libc.src.__support.math.log2p1f16
- libc.src.__support.math.logbf
- libc.src.__support.math.logbbf16
- libc.src.__support.math.logbf128
- libc.src.__support.math.logbf16
- libc.src.__support.math.logf
- libc.src.__support.math.log_bf16
- libc.src.__support.math.ldexpf
- libc.src.__support.math.ldexpf128
- libc.src.__support.math.ldexpf16
- libc.src.__support.math.lgammaf16
- libc.src.__support.math.llogbf
- libc.src.__support.math.llogbf128
- libc.src.__support.math.llogbf16
- libc.src.__support.math.logbl
- libc.src.__support.math.logf16
- libc.src.__support.math.llogbl
- libc.src.__support.math.lrint
- libc.src.__support.math.lrintbf16
- libc.src.__support.math.lrintf
- libc.src.__support.math.lrintf128
- libc.src.__support.math.lrintf16
- libc.src.__support.math.lrintl
- libc.src.__support.math.lround
- libc.src.__support.math.lroundbf16
- libc.src.__support.math.lroundf
- libc.src.__support.math.lroundf128
- libc.src.__support.math.lroundf16
- libc.src.__support.math.lroundl
- libc.src.__support.math.modf
- libc.src.__support.math.modfbf16
- libc.src.__support.math.modff
- libc.src.__support.math.modff128
- libc.src.__support.math.modff16
- libc.src.__support.math.modfl
- libc.src.__support.math.nan
- libc.src.__support.math.nanbf16
- libc.src.__support.math.nanf
- libc.src.__support.math.nanf128
- libc.src.__support.math.nanf16
- libc.src.__support.math.nanl
- libc.src.__support.math.nearbyint
- libc.src.__support.math.nearbyintbf16
- libc.src.__support.math.nearbyintf
- libc.src.__support.math.nearbyintf128
- libc.src.__support.math.nearbyintf16
- libc.src.__support.math.nearbyintl
- libc.src.__support.math.nextdown
- libc.src.__support.math.nextdownbf16
- libc.src.__support.math.nextdownf
- libc.src.__support.math.nextdownf128
- libc.src.__support.math.nextdownf16
- libc.src.__support.math.nextdownl
- libc.src.__support.math.nextup
- libc.src.__support.math.nextupbf16
- libc.src.__support.math.nextupf
- libc.src.__support.math.nextupf128
- libc.src.__support.math.nextupf16
- libc.src.__support.math.nextupl
- libc.src.__support.math.nexttoward
- libc.src.__support.math.nexttowardbf16
- libc.src.__support.math.nexttowardf
- libc.src.__support.math.nexttowardf16
- libc.src.__support.math.nexttowardl
- libc.src.__support.math.nextafter
- libc.src.__support.math.nextafterbf16
- libc.src.__support.math.nextafterf
- libc.src.__support.math.nextafterf16
- libc.src.__support.math.nextafterl
- libc.src.__support.math.nextafterf128
- libc.src.__support.math.pow
- libc.src.__support.math.powf
- libc.src.__support.math.remainder
- libc.src.__support.math.remainderbf16
- libc.src.__support.math.remainderf
- libc.src.__support.math.remainderf128
- libc.src.__support.math.remainderf16
- libc.src.__support.math.remainderl
- libc.src.__support.math.remquo
- libc.src.__support.math.remquobf16
- libc.src.__support.math.remquof
- libc.src.__support.math.remquof128
- libc.src.__support.math.remquof16
- libc.src.__support.math.remquol
- libc.src.__support.math.rint
- libc.src.__support.math.rintbf16
- libc.src.__support.math.rintf
- libc.src.__support.math.rintf128
- libc.src.__support.math.rintf16
- libc.src.__support.math.rintl
- libc.src.__support.math.round
- libc.src.__support.math.roundbf16
- libc.src.__support.math.roundeven
- libc.src.__support.math.roundevenbf16
- libc.src.__support.math.roundevenf
- libc.src.__support.math.roundevenf128
- libc.src.__support.math.roundevenf16
- libc.src.__support.math.roundevenl
- libc.src.__support.math.roundf
- libc.src.__support.math.roundf128
- libc.src.__support.math.roundf16
- libc.src.__support.math.roundl
- libc.src.__support.math.rsqrtf
- libc.src.__support.math.rsqrtf16
- libc.src.__support.math.scalbln
- libc.src.__support.math.scalblnbf16
- libc.src.__support.math.scalblnf
- libc.src.__support.math.scalblnf128
- libc.src.__support.math.scalblnf16
- libc.src.__support.math.scalblnl
- libc.src.__support.math.scalbn
- libc.src.__support.math.scalbnbf16
- libc.src.__support.math.scalbnf
- libc.src.__support.math.scalbnf128
- libc.src.__support.math.scalbnf16
- libc.src.__support.math.scalbnl
- libc.src.__support.math.setpayload
- libc.src.__support.math.setpayloadbf16
- libc.src.__support.math.setpayloadf
- libc.src.__support.math.setpayloadf128
- libc.src.__support.math.setpayloadf16
- libc.src.__support.math.setpayloadl
- libc.src.__support.math.setpayloadsig
- libc.src.__support.math.setpayloadsigbf16
- libc.src.__support.math.setpayloadsigf
- libc.src.__support.math.setpayloadsigf128
- libc.src.__support.math.setpayloadsigf16
- libc.src.__support.math.setpayloadsigl
- libc.src.__support.math.sqrtf16
- libc.src.__support.math.sin
- libc.src.__support.math.sinbf16
- libc.src.__support.math.sincos
- libc.src.__support.math.sincosf
- libc.src.__support.math.sinf
- libc.src.__support.math.sinf16
- libc.src.__support.math.sinh
- libc.src.__support.math.sinhf
- libc.src.__support.math.sinhbf16
- libc.src.__support.math.sinhf16
- libc.src.__support.math.sqrtf128
- libc.src.__support.math.sinpif
- libc.src.__support.math.sinpif16
- libc.src.__support.math.sqrt
- libc.src.__support.math.sqrtbf16
- libc.src.__support.math.sqrtf
- libc.src.__support.math.sqrtl
- libc.src.__support.math.tan
- libc.src.__support.math.tanbf16
- libc.src.__support.math.tanf
- libc.src.__support.math.tanf16
- libc.src.__support.math.tanh
- libc.src.__support.math.tanhf
- libc.src.__support.math.tanhf16
- libc.src.__support.math.tanpif
- libc.src.__support.math.tanpif16
- libc.src.__support.math.trunc
- libc.src.__support.math.truncbf16
- libc.src.__support.math.truncf
- libc.src.__support.math.truncf128
- libc.src.__support.math.truncf16
- libc.src.__support.math.truncl
- libc.src.__support.math.ufromfp
- libc.src.__support.math.ufromfpbf16
- libc.src.__support.math.ufromfpf
- libc.src.__support.math.ufromfpf128
- libc.src.__support.math.ufromfpf16
- libc.src.__support.math.ufromfpl
- libc.src.__support.math.ufromfpx
- libc.src.__support.math.ufromfpxbf16
- libc.src.__support.math.ufromfpxf
- libc.src.__support.math.ufromfpxf128
- libc.src.__support.math.ufromfpxf16
- libc.src.__support.math.ufromfpxl
- libc.src.__support.math.totalorder
- libc.src.__support.math.totalorderbf16
- libc.src.__support.math.totalorderf
- libc.src.__support.math.totalorderf128
- libc.src.__support.math.totalorderf80
- libc.src.__support.math.totalorderf16
- libc.src.__support.math.totalorderl
- libc.src.__support.math.totalordermag
- libc.src.__support.math.totalordermagbf16
- libc.src.__support.math.totalordermagf
- libc.src.__support.math.totalordermagf128
- libc.src.__support.math.totalordermagf80
- libc.src.__support.math.totalordermagf16
- libc.src.__support.math.totalordermagl
- )
-
- add_fp_unittest(
- shared_math_constexpr_test
- SUITE
- libc-shared-tests
- SRCS
- shared_math_constexpr_test.cpp
- DEPENDS
- libc.src.__support.FPUtil.float128
- libc.src.__support.FPUtil.float80
- libc.src.__support.math.acoshbf16
- libc.src.__support.math.asinbf16
- libc.src.__support.math.bf16subl
- libc.src.__support.math.canonicalize
- libc.src.__support.math.canonicalizebf16
- libc.src.__support.math.canonicalizef
- libc.src.__support.math.canonicalizef128
- libc.src.__support.math.canonicalizef80
- libc.src.__support.math.canonicalizef16
- libc.src.__support.math.canonicalizel
- libc.src.__support.math.ceil
- libc.src.__support.math.ceilbf16
- libc.src.__support.math.ceilf
- libc.src.__support.math.ceilf128
- libc.src.__support.math.ceilf16
- libc.src.__support.math.ceill
- libc.src.__support.math.copysign
- libc.src.__support.math.copysignbf16
- libc.src.__support.math.copysignf
- libc.src.__support.math.copysignf128
- libc.src.__support.math.copysignf80
- libc.src.__support.math.copysignf16
- libc.src.__support.math.copysignl
- libc.src.__support.math.daddf128
- libc.src.__support.math.ddivf128
- libc.src.__support.math.ddivl
- libc.src.__support.math.dmulf128
- libc.src.__support.math.dmull
- libc.src.__support.math.dsqrtf128
- libc.src.__support.math.dsubf128
- libc.src.__support.math.f16add
- libc.src.__support.math.f16addf
- libc.src.__support.math.f16addf128
- libc.src.__support.math.f16addl
- libc.src.__support.math.fadd
- libc.src.__support.math.faddf128
- libc.src.__support.math.faddl
- libc.src.__support.math.fdim
- libc.src.__support.math.fdimbf16
- libc.src.__support.math.fdimf
- libc.src.__support.math.fdimf128
- libc.src.__support.math.fdimf16
- libc.src.__support.math.fdimf80
- libc.src.__support.math.fdiml
- libc.src.__support.math.fdiv
- libc.src.__support.math.fdivf128
- libc.src.__support.math.fdivl
- libc.src.__support.math.ffma
- libc.src.__support.math.ffmal
- libc.src.__support.math.ffmaf128
- libc.src.__support.math.floor
- libc.src.__support.math.floorbf16
- libc.src.__support.math.floorf
- libc.src.__support.math.floorf128
- libc.src.__support.math.floorf16
- libc.src.__support.math.floorl
- libc.src.__support.math.fabs
- libc.src.__support.math.fabsbf16
- libc.src.__support.math.fabsf
- libc.src.__support.math.fabsf128
- libc.src.__support.math.fabsf80
- libc.src.__support.math.fabsf16
- libc.src.__support.math.fabsl
- libc.src.__support.math.fmaximum
- libc.src.__support.math.fmaximum_mag
- libc.src.__support.math.fmaximum_mag_num
- libc.src.__support.math.fmaximum_mag_numbf16
- libc.src.__support.math.fmaximum_mag_numf
- libc.src.__support.math.fmaximum_mag_numf128
- libc.src.__support.math.fmaximum_mag_numf16
- libc.src.__support.math.fmaximum_mag_numf80
- libc.src.__support.math.fmaximum_mag_numl
- libc.src.__support.math.fmaximum_magbf16
- libc.src.__support.math.fmaximum_magf
- libc.src.__support.math.fmaximum_magf128
- libc.src.__support.math.fmaximum_magf16
- libc.src.__support.math.fmaximum_magf80
- libc.src.__support.math.fmaximum_magl
- libc.src.__support.math.fmaximum_num
- libc.src.__support.math.fmaximum_numbf16
- libc.src.__support.math.fmaximum_numf
- libc.src.__support.math.fmaximum_numf128
- libc.src.__support.math.fmaximum_numf16
- libc.src.__support.math.fmaximum_numf80
- libc.src.__support.math.fmaximum_numl
- libc.src.__support.math.fmaximumbf16
- libc.src.__support.math.fmaximumf
- libc.src.__support.math.fmaximumf128
- libc.src.__support.math.fmaximumf16
- libc.src.__support.math.fmaximumf80
- libc.src.__support.math.fmaximuml
- libc.src.__support.math.fmin
- libc.src.__support.math.fminbf16
- libc.src.__support.math.fminf
- libc.src.__support.math.fminf128
- libc.src.__support.math.fminf16
- libc.src.__support.math.fminf80
- libc.src.__support.math.fminimum
- libc.src.__support.math.fminimum_mag
- libc.src.__support.math.fminimum_mag_num
- libc.src.__support.math.fminimum_mag_numbf16
- libc.src.__support.math.fminimum_mag_numf
- libc.src.__support.math.fminimum_mag_numf128
- libc.src.__support.math.fminimum_mag_numf16
- libc.src.__support.math.fminimum_mag_numf80
- libc.src.__support.math.fminimum_mag_numl
- libc.src.__support.math.fminimum_magbf16
- libc.src.__support.math.fminimum_magf
- libc.src.__support.math.fminimum_magf128
- libc.src.__support.math.fminimum_magf16
- libc.src.__support.math.fminimum_magf80
- libc.src.__support.math.fminimum_magl
- libc.src.__support.math.fminimum_num
- libc.src.__support.math.fminimum_numbf16
- libc.src.__support.math.fminimum_numf
- libc.src.__support.math.fminimum_numf128
- libc.src.__support.math.fminimum_numf16
- libc.src.__support.math.fminimum_numf80
- libc.src.__support.math.fminimum_numl
- libc.src.__support.math.fminimumbf16
- libc.src.__support.math.fminimumf
- libc.src.__support.math.fminimumf128
- libc.src.__support.math.fminimumf16
- libc.src.__support.math.fminimumf80
- libc.src.__support.math.fminimuml
- libc.src.__support.math.fminl
- libc.src.__support.math.fmod
- libc.src.__support.math.fmodbf16
- libc.src.__support.math.fmodf
- libc.src.__support.math.fmodf128
- libc.src.__support.math.fmodf16
- libc.src.__support.math.fmodl
- libc.src.__support.math.fmul
- libc.src.__support.math.fmulf128
- libc.src.__support.math.fmull
- libc.src.__support.math.frexp
- libc.src.__support.math.frexpbf16
- libc.src.__support.math.frexpl
- libc.src.__support.math.fromfp
- libc.src.__support.math.fromfpbf16
- libc.src.__support.math.fromfpf
- libc.src.__support.math.fromfpf128
- libc.src.__support.math.fromfpf16
- libc.src.__support.math.fromfpl
- libc.src.__support.math.fromfpx
- libc.src.__support.math.fromfpxbf16
- libc.src.__support.math.fromfpxf
- libc.src.__support.math.fromfpxf128
- libc.src.__support.math.fromfpxf16
- libc.src.__support.math.fromfpxl
- libc.src.__support.math.fsub
- libc.src.__support.math.fsubf128
- libc.src.__support.math.fsubl
- libc.src.__support.math.getpayload
- libc.src.__support.math.getpayloadbf16
- libc.src.__support.math.getpayloadf
- libc.src.__support.math.getpayloadf128
- libc.src.__support.math.getpayloadf16
- libc.src.__support.math.getpayloadl
- libc.src.__support.math.iscanonical
- libc.src.__support.math.iscanonicalbf16
- libc.src.__support.math.iscanonicalf
- libc.src.__support.math.iscanonicalf128
- libc.src.__support.math.iscanonicalf80
- libc.src.__support.math.iscanonicalf16
- libc.src.__support.math.iscanonicall
- libc.src.__support.math.isnan
- libc.src.__support.math.isnanf
- libc.src.__support.math.isnanf128
- libc.src.__support.math.isnanf80
- libc.src.__support.math.isnanf16
- libc.src.__support.math.isnanl
- libc.src.__support.math.issignaling
- libc.src.__support.math.issignalingbf16
- libc.src.__support.math.issignalingf
- libc.src.__support.math.issignalingf128
- libc.src.__support.math.issignalingf80
- libc.src.__support.math.issignalingf16
- libc.src.__support.math.issignalingl
- libc.src.__support.math.ldexp
- libc.src.__support.math.ldexpbf16
- libc.src.__support.math.ldexpl
- libc.src.__support.math.llogbbf16
- libc.src.__support.math.llrint
- libc.src.__support.math.llrintbf16
- libc.src.__support.math.llrintf
- libc.src.__support.math.llrintf128
- libc.src.__support.math.llrintf16
- libc.src.__support.math.llrintl
- libc.src.__support.math.llround
- libc.src.__support.math.llroundbf16
- libc.src.__support.math.llroundf
- libc.src.__support.math.llroundf128
- libc.src.__support.math.llroundf16
- libc.src.__support.math.llroundl
- libc.src.__support.math.log
- libc.src.__support.math.logbbf16
- libc.src.__support.math.ilogbbf16
- libc.src.__support.math.lrint
- libc.src.__support.math.lrintbf16
- libc.src.__support.math.lrintf
- libc.src.__support.math.lrintf128
- libc.src.__support.math.lrintf16
- libc.src.__support.math.lrintl
- libc.src.__support.math.lround
- libc.src.__support.math.lroundbf16
- libc.src.__support.math.lroundf
- libc.src.__support.math.lroundf128
- libc.src.__support.math.lroundf16
- libc.src.__support.math.lroundl
- libc.src.__support.math.modf
- libc.src.__support.math.modfbf16
- libc.src.__support.math.modff
- libc.src.__support.math.modff128
- libc.src.__support.math.modff16
- libc.src.__support.math.modfl
- libc.src.__support.math.nan
- libc.src.__support.math.nanbf16
- libc.src.__support.math.nanf
- libc.src.__support.math.nanf128
- libc.src.__support.math.nanf16
- libc.src.__support.math.nanl
- libc.src.__support.math.nearbyint
- libc.src.__support.math.nearbyintbf16
- libc.src.__support.math.nearbyintf
- libc.src.__support.math.nearbyintf128
- libc.src.__support.math.nearbyintf16
- libc.src.__support.math.nearbyintl
- libc.src.__support.math.nextafter
- libc.src.__support.math.nextafterbf16
- libc.src.__support.math.nextafterf
- libc.src.__support.math.nextafterf16
- libc.src.__support.math.nextafterl
- libc.src.__support.math.nextafterf128
- libc.src.__support.math.remainder
- libc.src.__support.math.remainderbf16
- libc.src.__support.math.remainderf
- libc.src.__support.math.remainderf128
- libc.src.__support.math.remainderf16
- libc.src.__support.math.remainderl
- libc.src.__support.math.remquo
- libc.src.__support.math.remquobf16
- libc.src.__support.math.remquof
- libc.src.__support.math.remquof128
- libc.src.__support.math.remquof16
- libc.src.__support.math.remquol
- libc.src.__support.math.rint
- libc.src.__support.math.rintbf16
- libc.src.__support.math.rintf
- libc.src.__support.math.rintf128
- libc.src.__support.math.rintf16
- libc.src.__support.math.rintl
- libc.src.__support.math.round
- libc.src.__support.math.roundbf16
- libc.src.__support.math.roundeven
- libc.src.__support.math.roundevenbf16
- libc.src.__support.math.roundevenf
- libc.src.__support.math.roundevenf128
- libc.src.__support.math.roundevenf16
- libc.src.__support.math.roundevenl
- libc.src.__support.math.roundf
- libc.src.__support.math.roundf128
- libc.src.__support.math.roundf16
- libc.src.__support.math.roundl
- libc.src.__support.math.scalbln
- libc.src.__support.math.scalblnbf16
- libc.src.__support.math.scalblnf
- libc.src.__support.math.scalblnf128
- libc.src.__support.math.scalblnf16
- libc.src.__support.math.scalblnl
- libc.src.__support.math.scalbn
- libc.src.__support.math.scalbnbf16
- libc.src.__support.math.scalbnf
- libc.src.__support.math.scalbnf128
- libc.src.__support.math.scalbnf16
- libc.src.__support.math.scalbnl
- libc.src.__support.math.setpayload
- libc.src.__support.math.setpayloadbf16
- libc.src.__support.math.setpayloadf
- libc.src.__support.math.setpayloadf128
- libc.src.__support.math.setpayloadf16
- libc.src.__support.math.setpayloadl
- libc.src.__support.math.setpayloadsig
- libc.src.__support.math.setpayloadsigbf16
- libc.src.__support.math.setpayloadsigf
- libc.src.__support.math.setpayloadsigf128
- libc.src.__support.math.setpayloadsigf16
- libc.src.__support.math.setpayloadsigl
- libc.src.__support.math.sqrtl
- libc.src.__support.math.trunc
- libc.src.__support.math.truncbf16
- libc.src.__support.math.truncf
- libc.src.__support.math.truncf128
- libc.src.__support.math.truncf16
- libc.src.__support.math.truncl
- libc.src.__support.math.ufromfp
- libc.src.__support.math.ufromfpbf16
- libc.src.__support.math.ufromfpf
- libc.src.__support.math.ufromfpf128
- libc.src.__support.math.ufromfpf16
- libc.src.__support.math.ufromfpl
- libc.src.__support.math.ufromfpx
- libc.src.__support.math.ufromfpxbf16
- libc.src.__support.math.ufromfpxf
- libc.src.__support.math.ufromfpxf128
- libc.src.__support.math.ufromfpxf16
- libc.src.__support.math.ufromfpxl
- libc.src.__support.math.totalorder
- libc.src.__support.math.totalorderbf16
- libc.src.__support.math.totalorderf
- libc.src.__support.math.totalorderf128
- libc.src.__support.math.totalorderf80
- libc.src.__support.math.totalorderf16
- libc.src.__support.math.totalorderl
- libc.src.__support.math.totalordermag
- libc.src.__support.math.totalordermagbf16
- libc.src.__support.math.totalordermagf
- libc.src.__support.math.totalordermagf128
- libc.src.__support.math.totalordermagf80
- libc.src.__support.math.totalordermagf16
- libc.src.__support.math.totalordermagl
- )
-endif() # LIBC_TEST_SKIP_SHARED_MATH_TESTS
-
-add_fp_unittest(
- shared_builtins_test
- SUITE
- libc-shared-tests
- SRCS
- shared_builtins_test.cpp
- DEPENDS
- libc.src.__support.builtins.adddf3
- libc.src.__support.builtins.addsf3
- libc.src.__support.builtins.addtf3
- libc.src.__support.builtins.divdf3
- libc.src.__support.builtins.divsf3
- libc.src.__support.builtins.divtf3
- libc.src.__support.builtins.extenddftf2
- libc.src.__support.builtins.extendhfdf2
- libc.src.__support.builtins.extendhfsf2
- libc.src.__support.builtins.extendhftf2
- libc.src.__support.builtins.extendsfdf2
- libc.src.__support.builtins.extendsftf2
- libc.src.__support.builtins.extendxftf2
- libc.src.__support.builtins.fixdfdi
- libc.src.__support.builtins.fixdfsi
- libc.src.__support.builtins.fixdfti
- libc.src.__support.builtins.fixsfdi
- libc.src.__support.builtins.fixsfsi
- libc.src.__support.builtins.fixsfti
- libc.src.__support.builtins.fixunsdfdi
- libc.src.__support.builtins.fixunsdfsi
- libc.src.__support.builtins.fixunsdfti
- libc.src.__support.builtins.fixunssfdi
- libc.src.__support.builtins.fixunssfsi
- libc.src.__support.builtins.fixunssfti
- libc.src.__support.builtins.floatdidf
- libc.src.__support.builtins.floatdisf
- libc.src.__support.builtins.floatsidf
- libc.src.__support.builtins.floatsisf
- libc.src.__support.builtins.floattidf
- libc.src.__support.builtins.floattisf
- libc.src.__support.builtins.floatundidf
- libc.src.__support.builtins.floatundisf
- libc.src.__support.builtins.floatunsidf
- libc.src.__support.builtins.floatunsisf
- libc.src.__support.builtins.floatuntidf
- libc.src.__support.builtins.floatuntisf
- libc.src.__support.builtins.muldf3
- libc.src.__support.builtins.mulsf3
- libc.src.__support.builtins.multf3
- libc.src.__support.builtins.negdf3
- libc.src.__support.builtins.negsf3
- libc.src.__support.builtins.subdf3
- libc.src.__support.builtins.subsf3
- libc.src.__support.builtins.subtf3
- libc.src.__support.builtins.truncdfhf2
- libc.src.__support.builtins.truncdfsf2
- libc.src.__support.builtins.truncsfhf2
- libc.src.__support.builtins.trunctfdf2
- libc.src.__support.builtins.trunctfhf2
- libc.src.__support.builtins.trunctfsf2
- libc.src.__support.builtins.trunctfxf2
- libc.src.__support.uint128
-)
-
-add_fp_unittest(
- shared_str_to_num_test
- SUITE
- libc-shared-tests
- SRCS
- shared_str_to_num_test.cpp
- DEPENDS
- libc.src.__support.str_to_float
- libc.src.__support.str_to_integer
-)
-
-# FIXME: The LLVM libc full build does not support 'system' yet.
-if(NOT LLVM_LIBC_FULL_BUILD)
- add_libc_test(
- shared_rpc_test
- SUITE
- libc-shared-tests
- SRCS
- shared_rpc_test.cpp
- DEPENDS
- libc.src.__support.printf_core.converter
- libc.src.__support.printf_core.parser
- libc.src.__support.printf_core.writer
- libc.src.__support.arg_list
- )
-endif()
-
-add_fp_unittest(
- shared_math_check_exp_test
- SUITE
- libc-shared-tests
- SRCS
- shared_math_check_exp_test.cpp
- DEPENDS
- libc.hdr.fenv_macros
- libc.src.__support.CPP.array
- libc.src.__support.FPUtil.fp_bits
-)
+add_libc_testsuite(libc-shared-tests)
+
+if(NOT LLVM_LIBC_FULL_BUILD AND "${LIBC_CONF_ERRNO_MODE}" STREQUAL "LIBC_ERRNO_MODE_DEFAULT")
+ set(shared_test_errno_options "")
+ libc_add_definition(shared_test_errno_options "LIBC_ERRNO_MODE=LIBC_ERRNO_MODE_SYSTEM_INLINE")
+ add_compile_options(${shared_test_errno_options})
+endif()
+
+# Shared headers are included together by external consumers that build with
+# -Werror -Wshadow; enable -Wshadow here to catch cross-header shadow warnings.
+# Older Clang versions emit false positive shadow warnings for lambda captures
+# inside static member functions (fixed in Clang 22, see PR #157667 and #165919).
+if(CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "22.0.0")
+ if(LIBC_WNO_ERROR)
+ add_compile_options(-Wshadow)
+ else()
+ add_compile_options(-Wshadow -Werror=shadow)
+ endif()
+endif()
+
+# Shared math tests include the entire math library headers into a single file
+# so it might take some time to compile the tests. We do have dedicated
+# precommit CIs to build and test shared tests. So we provide a cmake option
+# LIBC_TEST_SKIP_SHARED_TESTS to reduce redundant testings and reduce test time
+# for other precommit CIs.
+if(LIBC_TEST_SKIP_SHARED_TESTS)
+ if(LIBC_CMAKE_VERBOSE_LOGGING)
+ message(STATUS "LIBC_TEST_SKIP_SHARED_MATH_TESTS is set. Skipping libc-shared-tests.")
+ endif()
+else()
+ add_fp_unittest(
+ shared_math_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_math_test.cpp
+ DEPENDS
+ libc.hdr.fenv_macros
+ libc.src.__support.FPUtil.float128
+ libc.src.__support.FPUtil.float80
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.math.acos
+ libc.src.__support.math.acosbf16
+ libc.src.__support.math.acosf
+ libc.src.__support.math.acosf16
+ libc.src.__support.math.acoshf
+ libc.src.__support.math.acoshbf16
+ libc.src.__support.math.acoshf16
+ libc.src.__support.math.acospif
+ libc.src.__support.math.acospif16
+ libc.src.__support.math.asin
+ libc.src.__support.math.asinbf16
+ libc.src.__support.math.asinf
+ libc.src.__support.math.asinf16
+ libc.src.__support.math.asinhf
+ libc.src.__support.math.asinhf16
+ libc.src.__support.math.asinpi
+ libc.src.__support.math.asinpif
+ libc.src.__support.math.asinpif16
+ libc.src.__support.math.atan
+ libc.src.__support.math.atan2
+ libc.src.__support.math.atan2f
+ libc.src.__support.math.atan2f128
+ libc.src.__support.math.atan2f16
+ libc.src.__support.math.atanbf16
+ libc.src.__support.math.atanf
+ libc.src.__support.math.atanf16
+ libc.src.__support.math.atanhf
+ libc.src.__support.math.atanhf16
+ libc.src.__support.math.atanpif16
+ libc.src.__support.math.bf16add
+ libc.src.__support.math.bf16addf
+ libc.src.__support.math.bf16addl
+ libc.src.__support.math.bf16addf128
+ libc.src.__support.math.bf16div
+ libc.src.__support.math.bf16divf
+ libc.src.__support.math.bf16divf128
+ libc.src.__support.math.bf16divl
+ libc.src.__support.math.bf16fma
+ libc.src.__support.math.bf16fmaf
+ libc.src.__support.math.bf16fmaf128
+ libc.src.__support.math.bf16fmal
+ libc.src.__support.math.bf16mul
+ libc.src.__support.math.bf16mulf
+ libc.src.__support.math.bf16mulf128
+ libc.src.__support.math.bf16mull
+ libc.src.__support.math.bf16sub
+ libc.src.__support.math.bf16subf
+ libc.src.__support.math.bf16subf128
+ libc.src.__support.math.bf16subl
+ libc.src.__support.math.canonicalize
+ libc.src.__support.math.canonicalizebf16
+ libc.src.__support.math.canonicalizef
+ libc.src.__support.math.canonicalizef128
+ libc.src.__support.math.canonicalizef80
+ libc.src.__support.math.canonicalizef16
+ libc.src.__support.math.canonicalizel
+ libc.src.__support.math.cbrt
+ libc.src.__support.math.cbrtbf16
+ libc.src.__support.math.cbrtf
+ libc.src.__support.math.cbrtf16
+ libc.src.__support.math.ceil
+ libc.src.__support.math.ceilbf16
+ libc.src.__support.math.ceilf
+ libc.src.__support.math.ceilf128
+ libc.src.__support.math.ceilf16
+ libc.src.__support.math.ceill
+ libc.src.__support.math.copysign
+ libc.src.__support.math.copysignbf16
+ libc.src.__support.math.copysignf
+ libc.src.__support.math.copysignf128
+ libc.src.__support.math.copysignf80
+ libc.src.__support.math.copysignf16
+ libc.src.__support.math.copysignl
+ libc.src.__support.math.cos
+ libc.src.__support.math.cosbf16
+ libc.src.__support.math.cosf
+ libc.src.__support.math.cosf16
+ libc.src.__support.math.cosh
+ libc.src.__support.math.coshbf16
+ libc.src.__support.math.coshf
+ libc.src.__support.math.coshf16
+ libc.src.__support.math.cospif
+ libc.src.__support.math.cospif16
+ libc.src.__support.math.daddf128
+ libc.src.__support.math.daddl
+ libc.src.__support.math.ddivf128
+ libc.src.__support.math.ddivl
+ libc.src.__support.math.dfmaf128
+ libc.src.__support.math.dfmal
+ libc.src.__support.math.dmulf128
+ libc.src.__support.math.dmull
+ libc.src.__support.math.dsqrtf128
+ libc.src.__support.math.dsqrtl
+ libc.src.__support.math.dsubf128
+ libc.src.__support.math.dsubl
+ libc.src.__support.math.exp10m1f
+ libc.src.__support.math.exp10m1f16
+ libc.src.__support.math.erfcf16
+ libc.src.__support.math.erff
+ libc.src.__support.math.erff16
+ libc.src.__support.math.exp
+ libc.src.__support.math.exp2
+ libc.src.__support.math.exp2f
+ libc.src.__support.math.exp2f16
+ libc.src.__support.math.exp2m1f
+ libc.src.__support.math.exp2m1f16
+ libc.src.__support.math.expm1
+ libc.src.__support.math.expm1f
+ libc.src.__support.math.expm1f16
+ libc.src.__support.math.exp10
+ libc.src.__support.math.exp10f
+ libc.src.__support.math.exp10f16
+ libc.src.__support.math.expf
+ libc.src.__support.math.expbf16
+ libc.src.__support.math.expf16
+ libc.src.__support.math.f16add
+ libc.src.__support.math.f16addf
+ libc.src.__support.math.f16addf128
+ libc.src.__support.math.f16addl
+ libc.src.__support.math.f16div
+ libc.src.__support.math.f16divf
+ libc.src.__support.math.f16divf128
+ libc.src.__support.math.f16divl
+ libc.src.__support.math.f16fma
+ libc.src.__support.math.f16fmaf
+ libc.src.__support.math.f16fmaf128
+ libc.src.__support.math.f16fmal
+ libc.src.__support.math.f16mul
+ libc.src.__support.math.f16mulf
+ libc.src.__support.math.f16mulf128
+ libc.src.__support.math.f16mull
+ libc.src.__support.math.f16sqrt
+ libc.src.__support.math.f16sqrtf
+ libc.src.__support.math.f16sqrtf128
+ libc.src.__support.math.f16sqrtl
+ libc.src.__support.math.f16sub
+ libc.src.__support.math.f16subf
+ libc.src.__support.math.f16subf128
+ libc.src.__support.math.f16subl
+ libc.src.__support.math.fabs
+ libc.src.__support.math.fabsbf16
+ libc.src.__support.math.fabsf
+ libc.src.__support.math.fabsf128
+ libc.src.__support.math.fabsf80
+ libc.src.__support.math.fabsf16
+ libc.src.__support.math.fabsl
+ libc.src.__support.math.fadd
+ libc.src.__support.math.faddf128
+ libc.src.__support.math.faddl
+ libc.src.__support.math.fdim
+ libc.src.__support.math.fdimbf16
+ libc.src.__support.math.fdimf
+ libc.src.__support.math.fdimf128
+ libc.src.__support.math.fdimf16
+ libc.src.__support.math.fdimf80
+ libc.src.__support.math.fdiml
+ libc.src.__support.math.fdiv
+ libc.src.__support.math.fdivf128
+ libc.src.__support.math.fdivl
+ libc.src.__support.math.ffma
+ libc.src.__support.math.ffmaf128
+ libc.src.__support.math.ffmal
+ libc.src.__support.math.floor
+ libc.src.__support.math.floorbf16
+ libc.src.__support.math.floorf
+ libc.src.__support.math.floorf128
+ libc.src.__support.math.floorf16
+ libc.src.__support.math.floorl
+ libc.src.__support.math.fma
+ libc.src.__support.math.fmaf
+ libc.src.__support.math.fmaf16
+ libc.src.__support.math.fmabf16
+ libc.src.__support.math.fmax
+ libc.src.__support.math.fmaxbf16
+ libc.src.__support.math.fmaxf
+ libc.src.__support.math.fmaxf128
+ libc.src.__support.math.fmaxf16
+ libc.src.__support.math.fmaxf80
+ libc.src.__support.math.fmaximum
+ libc.src.__support.math.fmaximum_mag
+ libc.src.__support.math.fmaximum_mag_num
+ libc.src.__support.math.fmaximum_mag_numbf16
+ libc.src.__support.math.fmaximum_mag_numf
+ libc.src.__support.math.fmaximum_mag_numf128
+ libc.src.__support.math.fmaximum_mag_numf16
+ libc.src.__support.math.fmaximum_mag_numf80
+ libc.src.__support.math.fmaximum_mag_numl
+ libc.src.__support.math.fmaximum_magbf16
+ libc.src.__support.math.fmaximum_magf
+ libc.src.__support.math.fmaximum_magf128
+ libc.src.__support.math.fmaximum_magf16
+ libc.src.__support.math.fmaximum_magf80
+ libc.src.__support.math.fmaximum_magl
+ libc.src.__support.math.fmaximum_num
+ libc.src.__support.math.fmaximum_numbf16
+ libc.src.__support.math.fmaximum_numf
+ libc.src.__support.math.fmaximum_numf128
+ libc.src.__support.math.fmaximum_numf16
+ libc.src.__support.math.fmaximum_numf80
+ libc.src.__support.math.fmaximum_numl
+ libc.src.__support.math.fmaximumbf16
+ libc.src.__support.math.fmaximumf
+ libc.src.__support.math.fmaximumf128
+ libc.src.__support.math.fmaximumf16
+ libc.src.__support.math.fmaximumf80
+ libc.src.__support.math.fmaximuml
+ libc.src.__support.math.fmaxl
+ libc.src.__support.math.fmin
+ libc.src.__support.math.fminbf16
+ libc.src.__support.math.fminf
+ libc.src.__support.math.fminf128
+ libc.src.__support.math.fminf16
+ libc.src.__support.math.fminf80
+ libc.src.__support.math.fminimum
+ libc.src.__support.math.fminimum_mag
+ libc.src.__support.math.fminimum_mag_num
+ libc.src.__support.math.fminimum_mag_numbf16
+ libc.src.__support.math.fminimum_mag_numf
+ libc.src.__support.math.fminimum_mag_numf128
+ libc.src.__support.math.fminimum_mag_numf16
+ libc.src.__support.math.fminimum_mag_numf80
+ libc.src.__support.math.fminimum_mag_numl
+ libc.src.__support.math.fminimum_magbf16
+ libc.src.__support.math.fminimum_magf
+ libc.src.__support.math.fminimum_magf128
+ libc.src.__support.math.fminimum_magf16
+ libc.src.__support.math.fminimum_magf80
+ libc.src.__support.math.fminimum_magl
+ libc.src.__support.math.fminimum_num
+ libc.src.__support.math.fminimum_numbf16
+ libc.src.__support.math.fminimum_numf
+ libc.src.__support.math.fminimum_numf128
+ libc.src.__support.math.fminimum_numf16
+ libc.src.__support.math.fminimum_numf80
+ libc.src.__support.math.fminimum_numl
+ libc.src.__support.math.fminimumbf16
+ libc.src.__support.math.fminimumf
+ libc.src.__support.math.fminimumf128
+ libc.src.__support.math.fminimumf16
+ libc.src.__support.math.fminimumf80
+ libc.src.__support.math.fminimuml
+ libc.src.__support.math.fminl
+ libc.src.__support.math.fmod
+ libc.src.__support.math.fmodbf16
+ libc.src.__support.math.fmodf
+ libc.src.__support.math.fmodf128
+ libc.src.__support.math.fmodf16
+ libc.src.__support.math.fmodl
+ libc.src.__support.math.fmul
+ libc.src.__support.math.fmulf128
+ libc.src.__support.math.fmull
+ libc.src.__support.math.frexp
+ libc.src.__support.math.frexpbf16
+ libc.src.__support.math.frexpf
+ libc.src.__support.math.frexpf128
+ libc.src.__support.math.frexpf16
+ libc.src.__support.math.frexpl
+ libc.src.__support.math.fromfp
+ libc.src.__support.math.fromfpbf16
+ libc.src.__support.math.fromfpf
+ libc.src.__support.math.fromfpf128
+ libc.src.__support.math.fromfpf16
+ libc.src.__support.math.fromfpl
+ libc.src.__support.math.fromfpx
+ libc.src.__support.math.fromfpxbf16
+ libc.src.__support.math.fromfpxf
+ libc.src.__support.math.fromfpxf128
+ libc.src.__support.math.fromfpxf16
+ libc.src.__support.math.fromfpxl
+ libc.src.__support.math.fsqrt
+ libc.src.__support.math.fsqrtf128
+ libc.src.__support.math.fsqrtl
+ libc.src.__support.math.fsub
+ libc.src.__support.math.fsubf128
+ libc.src.__support.math.fsubl
+ libc.src.__support.math.getpayload
+ libc.src.__support.math.getpayloadbf16
+ libc.src.__support.math.getpayloadf
+ libc.src.__support.math.getpayloadf128
+ libc.src.__support.math.getpayloadf16
+ libc.src.__support.math.getpayloadl
+ libc.src.__support.math.hypot
+ libc.src.__support.math.hypotf
+ libc.src.__support.math.hypotbf16
+ libc.src.__support.math.hypotf16
+ libc.src.__support.math.ilogb
+ libc.src.__support.math.ilogbbf16
+ libc.src.__support.math.ilogbf
+ libc.src.__support.math.ilogbf16
+ libc.src.__support.math.ilogbf128
+ libc.src.__support.math.ilogbl
+ libc.src.__support.math.iscanonical
+ libc.src.__support.math.iscanonicalbf16
+ libc.src.__support.math.iscanonicalf
+ libc.src.__support.math.iscanonicalf128
+ libc.src.__support.math.iscanonicalf80
+ libc.src.__support.math.iscanonicalf16
+ libc.src.__support.math.iscanonicall
+ libc.src.__support.math.isnan
+ libc.src.__support.math.isnanf
+ libc.src.__support.math.isnanf128
+ libc.src.__support.math.isnanf80
+ libc.src.__support.math.isnanf16
+ libc.src.__support.math.isnanl
+ libc.src.__support.math.issignaling
+ libc.src.__support.math.issignalingbf16
+ libc.src.__support.math.issignalingf
+ libc.src.__support.math.issignalingf128
+ libc.src.__support.math.issignalingf80
+ libc.src.__support.math.issignalingf16
+ libc.src.__support.math.issignalingl
+ libc.src.__support.math.ldexp
+ libc.src.__support.math.ldexpbf16
+ libc.src.__support.math.ldexpf
+ libc.src.__support.math.ldexpl
+ libc.src.__support.math.llogb
+ libc.src.__support.math.llogbbf16
+ libc.src.__support.math.llrint
+ libc.src.__support.math.llrintbf16
+ libc.src.__support.math.llrintf
+ libc.src.__support.math.llrintf128
+ libc.src.__support.math.llrintf16
+ libc.src.__support.math.llrintl
+ libc.src.__support.math.llround
+ libc.src.__support.math.llroundbf16
+ libc.src.__support.math.llroundf
+ libc.src.__support.math.llroundf128
+ libc.src.__support.math.llroundf16
+ libc.src.__support.math.llroundl
+ libc.src.__support.math.log
+ libc.src.__support.math.log10
+ libc.src.__support.math.log10f16
+ libc.src.__support.math.log10p1bf16
+ libc.src.__support.math.log10p1f16
+ libc.src.__support.math.log10f
+ libc.src.__support.math.log1p
+ libc.src.__support.math.log1pf
+ libc.src.__support.math.log2
+ libc.src.__support.math.logb
+ libc.src.__support.math.log2f
+ libc.src.__support.math.log2f16
+ libc.src.__support.math.log2p1f16
+ libc.src.__support.math.logbf
+ libc.src.__support.math.logbbf16
+ libc.src.__support.math.logbf128
+ libc.src.__support.math.logbf16
+ libc.src.__support.math.logf
+ libc.src.__support.math.log_bf16
+ libc.src.__support.math.ldexpf
+ libc.src.__support.math.ldexpf128
+ libc.src.__support.math.ldexpf16
+ libc.src.__support.math.lgammaf16
+ libc.src.__support.math.llogbf
+ libc.src.__support.math.llogbf128
+ libc.src.__support.math.llogbf16
+ libc.src.__support.math.logbl
+ libc.src.__support.math.logf16
+ libc.src.__support.math.llogbl
+ libc.src.__support.math.lrint
+ libc.src.__support.math.lrintbf16
+ libc.src.__support.math.lrintf
+ libc.src.__support.math.lrintf128
+ libc.src.__support.math.lrintf16
+ libc.src.__support.math.lrintl
+ libc.src.__support.math.lround
+ libc.src.__support.math.lroundbf16
+ libc.src.__support.math.lroundf
+ libc.src.__support.math.lroundf128
+ libc.src.__support.math.lroundf16
+ libc.src.__support.math.lroundl
+ libc.src.__support.math.modf
+ libc.src.__support.math.modfbf16
+ libc.src.__support.math.modff
+ libc.src.__support.math.modff128
+ libc.src.__support.math.modff16
+ libc.src.__support.math.modfl
+ libc.src.__support.math.nan
+ libc.src.__support.math.nanbf16
+ libc.src.__support.math.nanf
+ libc.src.__support.math.nanf128
+ libc.src.__support.math.nanf16
+ libc.src.__support.math.nanl
+ libc.src.__support.math.nearbyint
+ libc.src.__support.math.nearbyintbf16
+ libc.src.__support.math.nearbyintf
+ libc.src.__support.math.nearbyintf128
+ libc.src.__support.math.nearbyintf16
+ libc.src.__support.math.nearbyintl
+ libc.src.__support.math.nextdown
+ libc.src.__support.math.nextdownbf16
+ libc.src.__support.math.nextdownf
+ libc.src.__support.math.nextdownf128
+ libc.src.__support.math.nextdownf16
+ libc.src.__support.math.nextdownl
+ libc.src.__support.math.nextup
+ libc.src.__support.math.nextupbf16
+ libc.src.__support.math.nextupf
+ libc.src.__support.math.nextupf128
+ libc.src.__support.math.nextupf16
+ libc.src.__support.math.nextupl
+ libc.src.__support.math.nexttoward
+ libc.src.__support.math.nexttowardbf16
+ libc.src.__support.math.nexttowardf
+ libc.src.__support.math.nexttowardf16
+ libc.src.__support.math.nexttowardl
+ libc.src.__support.math.nextafter
+ libc.src.__support.math.nextafterbf16
+ libc.src.__support.math.nextafterf
+ libc.src.__support.math.nextafterf16
+ libc.src.__support.math.nextafterl
+ libc.src.__support.math.nextafterf128
+ libc.src.__support.math.pow
+ libc.src.__support.math.powf
+ libc.src.__support.math.remainder
+ libc.src.__support.math.remainderbf16
+ libc.src.__support.math.remainderf
+ libc.src.__support.math.remainderf128
+ libc.src.__support.math.remainderf16
+ libc.src.__support.math.remainderl
+ libc.src.__support.math.remquo
+ libc.src.__support.math.remquobf16
+ libc.src.__support.math.remquof
+ libc.src.__support.math.remquof128
+ libc.src.__support.math.remquof16
+ libc.src.__support.math.remquol
+ libc.src.__support.math.rint
+ libc.src.__support.math.rintbf16
+ libc.src.__support.math.rintf
+ libc.src.__support.math.rintf128
+ libc.src.__support.math.rintf16
+ libc.src.__support.math.rintl
+ libc.src.__support.math.round
+ libc.src.__support.math.roundbf16
+ libc.src.__support.math.roundeven
+ libc.src.__support.math.roundevenbf16
+ libc.src.__support.math.roundevenf
+ libc.src.__support.math.roundevenf128
+ libc.src.__support.math.roundevenf16
+ libc.src.__support.math.roundevenl
+ libc.src.__support.math.roundf
+ libc.src.__support.math.roundf128
+ libc.src.__support.math.roundf16
+ libc.src.__support.math.roundl
+ libc.src.__support.math.rsqrtf
+ libc.src.__support.math.rsqrtf16
+ libc.src.__support.math.scalbln
+ libc.src.__support.math.scalblnbf16
+ libc.src.__support.math.scalblnf
+ libc.src.__support.math.scalblnf128
+ libc.src.__support.math.scalblnf16
+ libc.src.__support.math.scalblnl
+ libc.src.__support.math.scalbn
+ libc.src.__support.math.scalbnbf16
+ libc.src.__support.math.scalbnf
+ libc.src.__support.math.scalbnf128
+ libc.src.__support.math.scalbnf16
+ libc.src.__support.math.scalbnl
+ libc.src.__support.math.setpayload
+ libc.src.__support.math.setpayloadbf16
+ libc.src.__support.math.setpayloadf
+ libc.src.__support.math.setpayloadf128
+ libc.src.__support.math.setpayloadf16
+ libc.src.__support.math.setpayloadl
+ libc.src.__support.math.setpayloadsig
+ libc.src.__support.math.setpayloadsigbf16
+ libc.src.__support.math.setpayloadsigf
+ libc.src.__support.math.setpayloadsigf128
+ libc.src.__support.math.setpayloadsigf16
+ libc.src.__support.math.setpayloadsigl
+ libc.src.__support.math.sqrtf16
+ libc.src.__support.math.sin
+ libc.src.__support.math.sinbf16
+ libc.src.__support.math.sincos
+ libc.src.__support.math.sincosf
+ libc.src.__support.math.sinf
+ libc.src.__support.math.sinf16
+ libc.src.__support.math.sinh
+ libc.src.__support.math.sinhf
+ libc.src.__support.math.sinhbf16
+ libc.src.__support.math.sinhf16
+ libc.src.__support.math.sqrtf128
+ libc.src.__support.math.sinpif
+ libc.src.__support.math.sinpif16
+ libc.src.__support.math.sqrt
+ libc.src.__support.math.sqrtbf16
+ libc.src.__support.math.sqrtf
+ libc.src.__support.math.sqrtl
+ libc.src.__support.math.tan
+ libc.src.__support.math.tanbf16
+ libc.src.__support.math.tanf
+ libc.src.__support.math.tanf16
+ libc.src.__support.math.tanh
+ libc.src.__support.math.tanhf
+ libc.src.__support.math.tanhf16
+ libc.src.__support.math.tanpif
+ libc.src.__support.math.tanpif16
+ libc.src.__support.math.trunc
+ libc.src.__support.math.truncbf16
+ libc.src.__support.math.truncf
+ libc.src.__support.math.truncf128
+ libc.src.__support.math.truncf16
+ libc.src.__support.math.truncl
+ libc.src.__support.math.ufromfp
+ libc.src.__support.math.ufromfpbf16
+ libc.src.__support.math.ufromfpf
+ libc.src.__support.math.ufromfpf128
+ libc.src.__support.math.ufromfpf16
+ libc.src.__support.math.ufromfpl
+ libc.src.__support.math.ufromfpx
+ libc.src.__support.math.ufromfpxbf16
+ libc.src.__support.math.ufromfpxf
+ libc.src.__support.math.ufromfpxf128
+ libc.src.__support.math.ufromfpxf16
+ libc.src.__support.math.ufromfpxl
+ libc.src.__support.math.totalorder
+ libc.src.__support.math.totalorderbf16
+ libc.src.__support.math.totalorderf
+ libc.src.__support.math.totalorderf128
+ libc.src.__support.math.totalorderf80
+ libc.src.__support.math.totalorderf16
+ libc.src.__support.math.totalorderl
+ libc.src.__support.math.totalordermag
+ libc.src.__support.math.totalordermagbf16
+ libc.src.__support.math.totalordermagf
+ libc.src.__support.math.totalordermagf128
+ libc.src.__support.math.totalordermagf80
+ libc.src.__support.math.totalordermagf16
+ libc.src.__support.math.totalordermagl
+ )
+
+ add_fp_unittest(
+ shared_math_constexpr_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_math_constexpr_test.cpp
+ DEPENDS
+ libc.src.__support.FPUtil.float128
+ libc.src.__support.FPUtil.float80
+ libc.src.__support.math.acoshbf16
+ libc.src.__support.math.asinbf16
+ libc.src.__support.math.bf16subl
+ libc.src.__support.math.canonicalize
+ libc.src.__support.math.canonicalizebf16
+ libc.src.__support.math.canonicalizef
+ libc.src.__support.math.canonicalizef128
+ libc.src.__support.math.canonicalizef80
+ libc.src.__support.math.canonicalizef16
+ libc.src.__support.math.canonicalizel
+ libc.src.__support.math.ceil
+ libc.src.__support.math.ceilbf16
+ libc.src.__support.math.ceilf
+ libc.src.__support.math.ceilf128
+ libc.src.__support.math.ceilf16
+ libc.src.__support.math.ceill
+ libc.src.__support.math.copysign
+ libc.src.__support.math.copysignbf16
+ libc.src.__support.math.copysignf
+ libc.src.__support.math.copysignf128
+ libc.src.__support.math.copysignf80
+ libc.src.__support.math.copysignf16
+ libc.src.__support.math.copysignl
+ libc.src.__support.math.daddf128
+ libc.src.__support.math.ddivf128
+ libc.src.__support.math.ddivl
+ libc.src.__support.math.dmulf128
+ libc.src.__support.math.dmull
+ libc.src.__support.math.dsqrtf128
+ libc.src.__support.math.dsubf128
+ libc.src.__support.math.f16add
+ libc.src.__support.math.f16addf
+ libc.src.__support.math.f16addf128
+ libc.src.__support.math.f16addl
+ libc.src.__support.math.fadd
+ libc.src.__support.math.faddf128
+ libc.src.__support.math.faddl
+ libc.src.__support.math.fdim
+ libc.src.__support.math.fdimbf16
+ libc.src.__support.math.fdimf
+ libc.src.__support.math.fdimf128
+ libc.src.__support.math.fdimf16
+ libc.src.__support.math.fdimf80
+ libc.src.__support.math.fdiml
+ libc.src.__support.math.fdiv
+ libc.src.__support.math.fdivf128
+ libc.src.__support.math.fdivl
+ libc.src.__support.math.ffma
+ libc.src.__support.math.ffmal
+ libc.src.__support.math.ffmaf128
+ libc.src.__support.math.floor
+ libc.src.__support.math.floorbf16
+ libc.src.__support.math.floorf
+ libc.src.__support.math.floorf128
+ libc.src.__support.math.floorf16
+ libc.src.__support.math.floorl
+ libc.src.__support.math.fabs
+ libc.src.__support.math.fabsbf16
+ libc.src.__support.math.fabsf
+ libc.src.__support.math.fabsf128
+ libc.src.__support.math.fabsf80
+ libc.src.__support.math.fabsf16
+ libc.src.__support.math.fabsl
+ libc.src.__support.math.fmaximum
+ libc.src.__support.math.fmaximum_mag
+ libc.src.__support.math.fmaximum_mag_num
+ libc.src.__support.math.fmaximum_mag_numbf16
+ libc.src.__support.math.fmaximum_mag_numf
+ libc.src.__support.math.fmaximum_mag_numf128
+ libc.src.__support.math.fmaximum_mag_numf16
+ libc.src.__support.math.fmaximum_mag_numf80
+ libc.src.__support.math.fmaximum_mag_numl
+ libc.src.__support.math.fmaximum_magbf16
+ libc.src.__support.math.fmaximum_magf
+ libc.src.__support.math.fmaximum_magf128
+ libc.src.__support.math.fmaximum_magf16
+ libc.src.__support.math.fmaximum_magf80
+ libc.src.__support.math.fmaximum_magl
+ libc.src.__support.math.fmaximum_num
+ libc.src.__support.math.fmaximum_numbf16
+ libc.src.__support.math.fmaximum_numf
+ libc.src.__support.math.fmaximum_numf128
+ libc.src.__support.math.fmaximum_numf16
+ libc.src.__support.math.fmaximum_numf80
+ libc.src.__support.math.fmaximum_numl
+ libc.src.__support.math.fmaximumbf16
+ libc.src.__support.math.fmaximumf
+ libc.src.__support.math.fmaximumf128
+ libc.src.__support.math.fmaximumf16
+ libc.src.__support.math.fmaximumf80
+ libc.src.__support.math.fmaximuml
+ libc.src.__support.math.fmin
+ libc.src.__support.math.fminbf16
+ libc.src.__support.math.fminf
+ libc.src.__support.math.fminf128
+ libc.src.__support.math.fminf16
+ libc.src.__support.math.fminf80
+ libc.src.__support.math.fminimum
+ libc.src.__support.math.fminimum_mag
+ libc.src.__support.math.fminimum_mag_num
+ libc.src.__support.math.fminimum_mag_numbf16
+ libc.src.__support.math.fminimum_mag_numf
+ libc.src.__support.math.fminimum_mag_numf128
+ libc.src.__support.math.fminimum_mag_numf16
+ libc.src.__support.math.fminimum_mag_numf80
+ libc.src.__support.math.fminimum_mag_numl
+ libc.src.__support.math.fminimum_magbf16
+ libc.src.__support.math.fminimum_magf
+ libc.src.__support.math.fminimum_magf128
+ libc.src.__support.math.fminimum_magf16
+ libc.src.__support.math.fminimum_magf80
+ libc.src.__support.math.fminimum_magl
+ libc.src.__support.math.fminimum_num
+ libc.src.__support.math.fminimum_numbf16
+ libc.src.__support.math.fminimum_numf
+ libc.src.__support.math.fminimum_numf128
+ libc.src.__support.math.fminimum_numf16
+ libc.src.__support.math.fminimum_numf80
+ libc.src.__support.math.fminimum_numl
+ libc.src.__support.math.fminimumbf16
+ libc.src.__support.math.fminimumf
+ libc.src.__support.math.fminimumf128
+ libc.src.__support.math.fminimumf16
+ libc.src.__support.math.fminimumf80
+ libc.src.__support.math.fminimuml
+ libc.src.__support.math.fminl
+ libc.src.__support.math.fmod
+ libc.src.__support.math.fmodbf16
+ libc.src.__support.math.fmodf
+ libc.src.__support.math.fmodf128
+ libc.src.__support.math.fmodf16
+ libc.src.__support.math.fmodl
+ libc.src.__support.math.fmul
+ libc.src.__support.math.fmulf128
+ libc.src.__support.math.fmull
+ libc.src.__support.math.frexp
+ libc.src.__support.math.frexpbf16
+ libc.src.__support.math.frexpl
+ libc.src.__support.math.fromfp
+ libc.src.__support.math.fromfpbf16
+ libc.src.__support.math.fromfpf
+ libc.src.__support.math.fromfpf128
+ libc.src.__support.math.fromfpf16
+ libc.src.__support.math.fromfpl
+ libc.src.__support.math.fromfpx
+ libc.src.__support.math.fromfpxbf16
+ libc.src.__support.math.fromfpxf
+ libc.src.__support.math.fromfpxf128
+ libc.src.__support.math.fromfpxf16
+ libc.src.__support.math.fromfpxl
+ libc.src.__support.math.fsub
+ libc.src.__support.math.fsubf128
+ libc.src.__support.math.fsubl
+ libc.src.__support.math.getpayload
+ libc.src.__support.math.getpayloadbf16
+ libc.src.__support.math.getpayloadf
+ libc.src.__support.math.getpayloadf128
+ libc.src.__support.math.getpayloadf16
+ libc.src.__support.math.getpayloadl
+ libc.src.__support.math.iscanonical
+ libc.src.__support.math.iscanonicalbf16
+ libc.src.__support.math.iscanonicalf
+ libc.src.__support.math.iscanonicalf128
+ libc.src.__support.math.iscanonicalf80
+ libc.src.__support.math.iscanonicalf16
+ libc.src.__support.math.iscanonicall
+ libc.src.__support.math.isnan
+ libc.src.__support.math.isnanf
+ libc.src.__support.math.isnanf128
+ libc.src.__support.math.isnanf80
+ libc.src.__support.math.isnanf16
+ libc.src.__support.math.isnanl
+ libc.src.__support.math.issignaling
+ libc.src.__support.math.issignalingbf16
+ libc.src.__support.math.issignalingf
+ libc.src.__support.math.issignalingf128
+ libc.src.__support.math.issignalingf80
+ libc.src.__support.math.issignalingf16
+ libc.src.__support.math.issignalingl
+ libc.src.__support.math.ldexp
+ libc.src.__support.math.ldexpbf16
+ libc.src.__support.math.ldexpl
+ libc.src.__support.math.llogbbf16
+ libc.src.__support.math.llrint
+ libc.src.__support.math.llrintbf16
+ libc.src.__support.math.llrintf
+ libc.src.__support.math.llrintf128
+ libc.src.__support.math.llrintf16
+ libc.src.__support.math.llrintl
+ libc.src.__support.math.llround
+ libc.src.__support.math.llroundbf16
+ libc.src.__support.math.llroundf
+ libc.src.__support.math.llroundf128
+ libc.src.__support.math.llroundf16
+ libc.src.__support.math.llroundl
+ libc.src.__support.math.log
+ libc.src.__support.math.logbbf16
+ libc.src.__support.math.ilogbbf16
+ libc.src.__support.math.lrint
+ libc.src.__support.math.lrintbf16
+ libc.src.__support.math.lrintf
+ libc.src.__support.math.lrintf128
+ libc.src.__support.math.lrintf16
+ libc.src.__support.math.lrintl
+ libc.src.__support.math.lround
+ libc.src.__support.math.lroundbf16
+ libc.src.__support.math.lroundf
+ libc.src.__support.math.lroundf128
+ libc.src.__support.math.lroundf16
+ libc.src.__support.math.lroundl
+ libc.src.__support.math.modf
+ libc.src.__support.math.modfbf16
+ libc.src.__support.math.modff
+ libc.src.__support.math.modff128
+ libc.src.__support.math.modff16
+ libc.src.__support.math.modfl
+ libc.src.__support.math.nan
+ libc.src.__support.math.nanbf16
+ libc.src.__support.math.nanf
+ libc.src.__support.math.nanf128
+ libc.src.__support.math.nanf16
+ libc.src.__support.math.nanl
+ libc.src.__support.math.nearbyint
+ libc.src.__support.math.nearbyintbf16
+ libc.src.__support.math.nearbyintf
+ libc.src.__support.math.nearbyintf128
+ libc.src.__support.math.nearbyintf16
+ libc.src.__support.math.nearbyintl
+ libc.src.__support.math.nextafter
+ libc.src.__support.math.nextafterbf16
+ libc.src.__support.math.nextafterf
+ libc.src.__support.math.nextafterf16
+ libc.src.__support.math.nextafterl
+ libc.src.__support.math.nextafterf128
+ libc.src.__support.math.remainder
+ libc.src.__support.math.remainderbf16
+ libc.src.__support.math.remainderf
+ libc.src.__support.math.remainderf128
+ libc.src.__support.math.remainderf16
+ libc.src.__support.math.remainderl
+ libc.src.__support.math.remquo
+ libc.src.__support.math.remquobf16
+ libc.src.__support.math.remquof
+ libc.src.__support.math.remquof128
+ libc.src.__support.math.remquof16
+ libc.src.__support.math.remquol
+ libc.src.__support.math.rint
+ libc.src.__support.math.rintbf16
+ libc.src.__support.math.rintf
+ libc.src.__support.math.rintf128
+ libc.src.__support.math.rintf16
+ libc.src.__support.math.rintl
+ libc.src.__support.math.round
+ libc.src.__support.math.roundbf16
+ libc.src.__support.math.roundeven
+ libc.src.__support.math.roundevenbf16
+ libc.src.__support.math.roundevenf
+ libc.src.__support.math.roundevenf128
+ libc.src.__support.math.roundevenf16
+ libc.src.__support.math.roundevenl
+ libc.src.__support.math.roundf
+ libc.src.__support.math.roundf128
+ libc.src.__support.math.roundf16
+ libc.src.__support.math.roundl
+ libc.src.__support.math.scalbln
+ libc.src.__support.math.scalblnbf16
+ libc.src.__support.math.scalblnf
+ libc.src.__support.math.scalblnf128
+ libc.src.__support.math.scalblnf16
+ libc.src.__support.math.scalblnl
+ libc.src.__support.math.scalbn
+ libc.src.__support.math.scalbnbf16
+ libc.src.__support.math.scalbnf
+ libc.src.__support.math.scalbnf128
+ libc.src.__support.math.scalbnf16
+ libc.src.__support.math.scalbnl
+ libc.src.__support.math.setpayload
+ libc.src.__support.math.setpayloadbf16
+ libc.src.__support.math.setpayloadf
+ libc.src.__support.math.setpayloadf128
+ libc.src.__support.math.setpayloadf16
+ libc.src.__support.math.setpayloadl
+ libc.src.__support.math.setpayloadsig
+ libc.src.__support.math.setpayloadsigbf16
+ libc.src.__support.math.setpayloadsigf
+ libc.src.__support.math.setpayloadsigf128
+ libc.src.__support.math.setpayloadsigf16
+ libc.src.__support.math.setpayloadsigl
+ libc.src.__support.math.sqrtl
+ libc.src.__support.math.trunc
+ libc.src.__support.math.truncbf16
+ libc.src.__support.math.truncf
+ libc.src.__support.math.truncf128
+ libc.src.__support.math.truncf16
+ libc.src.__support.math.truncl
+ libc.src.__support.math.ufromfp
+ libc.src.__support.math.ufromfpbf16
+ libc.src.__support.math.ufromfpf
+ libc.src.__support.math.ufromfpf128
+ libc.src.__support.math.ufromfpf16
+ libc.src.__support.math.ufromfpl
+ libc.src.__support.math.ufromfpx
+ libc.src.__support.math.ufromfpxbf16
+ libc.src.__support.math.ufromfpxf
+ libc.src.__support.math.ufromfpxf128
+ libc.src.__support.math.ufromfpxf16
+ libc.src.__support.math.ufromfpxl
+ libc.src.__support.math.totalorder
+ libc.src.__support.math.totalorderbf16
+ libc.src.__support.math.totalorderf
+ libc.src.__support.math.totalorderf128
+ libc.src.__support.math.totalorderf80
+ libc.src.__support.math.totalorderf16
+ libc.src.__support.math.totalorderl
+ libc.src.__support.math.totalordermag
+ libc.src.__support.math.totalordermagbf16
+ libc.src.__support.math.totalordermagf
+ libc.src.__support.math.totalordermagf128
+ libc.src.__support.math.totalordermagf80
+ libc.src.__support.math.totalordermagf16
+ libc.src.__support.math.totalordermagl
+ )
+endif() # LIBC_TEST_SKIP_SHARED_MATH_TESTS
+
+add_fp_unittest(
+ shared_builtins_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_builtins_test.cpp
+ DEPENDS
+ libc.src.__support.builtins.adddf3
+ libc.src.__support.builtins.addsf3
+ libc.src.__support.builtins.addtf3
+ libc.src.__support.builtins.divdf3
+ libc.src.__support.builtins.divsf3
+ libc.src.__support.builtins.divtf3
+ libc.src.__support.builtins.extenddftf2
+ libc.src.__support.builtins.extendhfdf2
+ libc.src.__support.builtins.extendhfsf2
+ libc.src.__support.builtins.extendhftf2
+ libc.src.__support.builtins.extendsfdf2
+ libc.src.__support.builtins.extendsftf2
+ libc.src.__support.builtins.extendxftf2
+ libc.src.__support.builtins.fixdfdi
+ libc.src.__support.builtins.fixdfsi
+ libc.src.__support.builtins.fixdfti
+ libc.src.__support.builtins.fixsfdi
+ libc.src.__support.builtins.fixsfsi
+ libc.src.__support.builtins.fixsfti
+ libc.src.__support.builtins.fixunsdfdi
+ libc.src.__support.builtins.fixunsdfsi
+ libc.src.__support.builtins.fixunsdfti
+ libc.src.__support.builtins.fixunssfdi
+ libc.src.__support.builtins.fixunssfsi
+ libc.src.__support.builtins.fixunssfti
+ libc.src.__support.builtins.floatdidf
+ libc.src.__support.builtins.floatdisf
+ libc.src.__support.builtins.floatsidf
+ libc.src.__support.builtins.floatsisf
+ libc.src.__support.builtins.floattidf
+ libc.src.__support.builtins.floattisf
+ libc.src.__support.builtins.floatundidf
+ libc.src.__support.builtins.floatundisf
+ libc.src.__support.builtins.floatunsidf
+ libc.src.__support.builtins.floatunsisf
+ libc.src.__support.builtins.floatuntidf
+ libc.src.__support.builtins.floatuntisf
+ libc.src.__support.builtins.muldf3
+ libc.src.__support.builtins.mulsf3
+ libc.src.__support.builtins.multf3
+ libc.src.__support.builtins.negdf3
+ libc.src.__support.builtins.negsf3
+ libc.src.__support.builtins.subdf3
+ libc.src.__support.builtins.subsf3
+ libc.src.__support.builtins.subtf3
+ libc.src.__support.builtins.truncdfhf2
+ libc.src.__support.builtins.truncdfsf2
+ libc.src.__support.builtins.truncsfhf2
+ libc.src.__support.builtins.trunctfdf2
+ libc.src.__support.builtins.trunctfhf2
+ libc.src.__support.builtins.trunctfsf2
+ libc.src.__support.builtins.trunctfxf2
+ libc.src.__support.uint128
+)
+
+add_fp_unittest(
+ shared_str_to_num_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_str_to_num_test.cpp
+ DEPENDS
+ libc.src.__support.str_to_float
+ libc.src.__support.str_to_integer
+)
+
+# FIXME: The LLVM libc full build does not support 'system' yet.
+if(NOT LLVM_LIBC_FULL_BUILD)
+ add_libc_test(
+ shared_rpc_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_rpc_test.cpp
+ DEPENDS
+ libc.src.__support.printf_core.converter
+ libc.src.__support.printf_core.parser
+ libc.src.__support.printf_core.writer
+ libc.src.__support.arg_list
+ )
+endif()
+
+add_fp_unittest(
+ shared_math_check_exp_test
+ SUITE
+ libc-shared-tests
+ SRCS
+ shared_math_check_exp_test.cpp
+ DEPENDS
+ libc.hdr.fenv_macros
+ libc.src.__support.CPP.array
+ libc.src.__support.FPUtil.fp_bits
+)
diff --git a/libc/test/src/math/CMakeLists.txt b/libc/test/src/math/CMakeLists.txt
index 2a7ef8e0e186d8..708d42bacbb41b 100644
--- a/libc/test/src/math/CMakeLists.txt
+++ b/libc/test/src/math/CMakeLists.txt
@@ -32,6 +32,19 @@ add_fp_unittest(
libc.src.__support.FPUtil.fp_bits
)
+add_fp_unittest(
+ cosbf16_test
+ NEED_MPFR
+ SUITE
+ libc-math-unittests
+ SRCS
+ cosbf16_test.cpp
+ DEPENDS
+ libc.src.math.cosbf16
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.FPUtil.bfloat16
+)
+
add_fp_unittest(
cosf16_test
NEED_MPFR
diff --git a/libc/test/src/math/cosbf16_test.cpp b/libc/test/src/math/cosbf16_test.cpp
new file mode 100644
index 00000000000000..dadae218f38c6d
--- /dev/null
+++ b/libc/test/src/math/cosbf16_test.cpp
@@ -0,0 +1,45 @@
+//===-- Exhaustive test for cosbf16 ---------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/math/cosbf16.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/Test.h"
+#include "utils/MPFRWrapper/MPFRUtils.h"
+
+using LlvmLibcCosBf16Test = LIBC_NAMESPACE::testing::FPTest<bfloat16>;
+
+namespace mpfr = LIBC_NAMESPACE::testing::mpfr;
+
+// Range: [0, Inf]
+static constexpr uint16_t POS_START = 0x0000U;
+static constexpr uint16_t POS_STOP = 0x7f80U;
+
+// Range: [-Inf, 0]
+static constexpr uint16_t NEG_START = 0x8000U;
+static constexpr uint16_t NEG_STOP = 0xff80U;
+
+TEST_F(LlvmLibcCosBf16Test, PositiveRange) {
+
+ for (uint16_t v = POS_START; v <= POS_STOP; ++v) {
+ bfloat16 x = FPBits(v).get_val();
+
+ EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Cos, x,
+ LIBC_NAMESPACE::cosbf16(x), 0.5);
+ }
+}
+
+TEST_F(LlvmLibcCosBf16Test, NegativeRange) {
+
+ for (uint16_t v = NEG_START; v <= NEG_STOP; ++v) {
+ bfloat16 x = FPBits(v).get_val();
+
+ EXPECT_MPFR_MATCH_ALL_ROUNDING(mpfr::Operation::Cos, x,
+ LIBC_NAMESPACE::cosbf16(x), 0.5);
+ }
+}
diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt
index 754430326df0b8..13045e96192d06 100644
--- a/libc/test/src/math/smoke/CMakeLists.txt
+++ b/libc/test/src/math/smoke/CMakeLists.txt
@@ -11,6 +11,19 @@ add_fp_unittest(
libc.src.math.cosf
)
+add_fp_unittest(
+ cosbf16_test
+ SUITE
+ libc-math-smoke-tests
+ SRCS
+ cosbf16_test.cpp
+ DEPENDS
+ libc.hdr.errno_macros
+ libc.src.math.cosbf16
+ libc.hdr.fenv_macros
+ libc.src.__support.FPUtil.bfloat16
+)
+
add_fp_unittest(
cosf16_test
SUITE
diff --git a/libc/test/src/math/smoke/cosbf16_test.cpp b/libc/test/src/math/smoke/cosbf16_test.cpp
new file mode 100644
index 00000000000000..5d92030c399c87
--- /dev/null
+++ b/libc/test/src/math/smoke/cosbf16_test.cpp
@@ -0,0 +1,41 @@
+//===-- Unittests for cosbf16 ---------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+
+#include "hdr/errno_macros.h"
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/math/cosbf16.h"
+#include "test/UnitTest/FEnvSafeTest.h"
+#include "test/UnitTest/FPMatcher.h"
+#include "test/UnitTest/Test.h"
+
+class LlvmLibcCosBf16Test : public LIBC_NAMESPACE::testing::FEnvSafeTest {
+ DECLARE_SPECIAL_CONSTANTS(bfloat16)
+public:
+ void test_special_numbers() {
+ EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cosbf16(aNaN));
+ EXPECT_MATH_ERRNO(0);
+
+ EXPECT_FP_EQ_WITH_EXCEPTION_ALL_ROUNDING(
+ aNaN, LIBC_NAMESPACE::cosbf16(sNaN), FE_INVALID);
+ EXPECT_MATH_ERRNO(0);
+
+ EXPECT_FP_EQ_ALL_ROUNDING(bfloat16(1.0), LIBC_NAMESPACE::cosbf16(zero));
+ EXPECT_MATH_ERRNO(0);
+
+ EXPECT_FP_EQ_ALL_ROUNDING(bfloat16(1.0), LIBC_NAMESPACE::cosbf16(neg_zero));
+ EXPECT_MATH_ERRNO(0);
+
+ EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cosbf16(inf));
+ EXPECT_MATH_ERRNO(EDOM);
+
+ EXPECT_FP_EQ_ALL_ROUNDING(aNaN, LIBC_NAMESPACE::cosbf16(neg_inf));
+ EXPECT_MATH_ERRNO(EDOM);
+ }
+};
+
+TEST_F(LlvmLibcCosBf16Test, SpecialNumbers) { test_special_numbers(); }
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index f68c6522d16772..4711e8f85cbf49 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1,2429 +1,2430 @@
-# This file is licensed 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
-
-load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
-load("@rules_cc//cc:defs.bzl", "cc_library")
-load("@rules_python//python:defs.bzl", "py_binary")
-
-package(
- default_visibility = ["//visibility:public"],
- features = [
- "parse_headers",
- "-use_header_modules",
- "layering_check",
- ],
-)
-
-licenses(["notice"])
-
-# A flag to pick which `mpfr` to use for math tests.
-# Usage: `-- at llvm-project//libc:mpfr=<disable|external|system>`.
-# Flag documentation: https://bazel.build/extending/config
-string_flag(
- name = "mpfr",
- build_setting_default = "external",
- values = [
- "disable", # Skip tests that need mpfr
- "external", # Build mpfr from source
- "system", # Use system mpfr (non hermetic)
- ],
-)
-
-config_setting(
- name = "mpfr_disable",
- flag_values = {":mpfr": "disable"},
-)
-
-config_setting(
- name = "mpfr_external",
- flag_values = {":mpfr": "external"},
-)
-
-config_setting(
- name = "mpfr_system",
- flag_values = {":mpfr": "system"},
-)
-
-cc_library(
- name = "libmpfr_system",
- linkopts = ["-lmpfr"],
- tags = ["manual"],
- visibility = ["//libc:__subpackages__"],
-)
-
-# A flag to pick which `mpc` to use for math tests.
-# Usage: `-- at llvm-project//libc:mpc=<disable|external|system>`.
-# Flag documentation: https://bazel.build/extending/config
-string_flag(
- name = "mpc",
- build_setting_default = "external",
- values = [
- "disable", # Skip tests that need mpc
- "external", # Build mpc from source
- "system", # Use system mpc (non hermetic)
- ],
-)
-
-config_setting(
- name = "mpc_disable",
- flag_values = {":mpc": "disable"},
-)
-
-config_setting(
- name = "mpc_external",
- flag_values = {":mpc": "external"},
-)
-
-config_setting(
- name = "mpc_system",
- flag_values = {":mpc": "system"},
-)
-
-cc_library(
- name = "libmpc_system",
- linkopts = ["-lmpc"],
- tags = ["manual"],
- visibility = ["//libc:__subpackages__"],
-)
-
-# A flag to enable modular format for printf.
-# Usage: `-- at llvm-project//libc:modular_format=<disable|enable>`.
-string_flag(
- name = "modular_format",
- build_setting_default = "disable",
- values = [
- "disable",
- "enable",
- ],
-)
-
-config_setting(
- name = "modular_format_enable",
- flag_values = {":modular_format": "enable"},
-)
-
-# A flag to control whether LLVM libc is built in overlay or full build mode.
-string_flag(
- name = "build_mode",
- build_setting_default = "overlay",
- values = [
- "overlay", # Build over the system libc
- "full", # Build as a standalone libc
- ],
-)
-
-config_setting(
- name = "full_build",
- flag_values = {":build_mode": "full"},
-)
-
-config_setting(
- name = "full_build_linux",
- constraint_values = ["@platforms//os:linux"],
- flag_values = {":build_mode": "full"},
-)
-
-########################### Header Generation ##################################
-
-py_binary(
- name = "hdrgen",
- srcs = glob(["utils/hdrgen/hdrgen/**/*.py"]),
- imports = ["utils/hdrgen"],
- main = "utils/hdrgen/hdrgen/main.py",
- deps = ["@pyyaml//:yaml"],
-)
-
-############################### Support libraries ##############################
-
-alias(
- name = "bfloat16", # Alias for test/src/math:bfloat16_test.
- actual = "//libc/src/__support/FPUtil:bfloat16",
-)
-
-########################## externally shared targets ###########################
-
-alias(
- name = "libcxx_shared_headers",
- actual = "//libc/shared:libcxx_headers",
-)
-
-alias(
- name = "libcxx_shared_headers_hdrs",
- actual = "//libc/shared:libcxx_headers_hdrs",
-)
-
-alias(
- name = "shared_math_headers_for_apfloat",
- actual = "//libc/shared:math_headers_for_apfloat",
-)
-
-############################### errno ########################################
-
-alias(
- name = "program_invocation_name",
- actual = "//libc/src/errno:program_invocation_name",
-)
-
-alias(
- name = "program_invocation_short_name",
- actual = "//libc/src/errno:program_invocation_short_name",
-)
-
-############################### arpa/inet targets ##############################
-
-alias(
- name = "htonl",
- actual = "//libc/src/arpa/inet:htonl",
-)
-
-alias(
- name = "htons",
- actual = "//libc/src/arpa/inet:htons",
-)
-
-alias(
- name = "inet_addr",
- actual = "//libc/src/arpa/inet:inet_addr",
-)
-
-alias(
- name = "inet_aton",
- actual = "//libc/src/arpa/inet:inet_aton",
-)
-
-alias(
- name = "inet_ntoa",
- actual = "//libc/src/arpa/inet:inet_ntoa",
-)
-
-alias(
- name = "inet_ntop",
- actual = "//libc/src/arpa/inet:inet_ntop",
-)
-
-alias(
- name = "inet_pton",
- actual = "//libc/src/arpa/inet:inet_pton",
-)
-
-alias(
- name = "ntohl",
- actual = "//libc/src/arpa/inet:ntohl",
-)
-
-alias(
- name = "ntohs",
- actual = "//libc/src/arpa/inet:ntohs",
-)
-
-################################# ctype targets ################################
-
-alias(
- name = "isalnum",
- actual = "//libc/src/ctype:isalnum",
-)
-
-alias(
- name = "isalpha",
- actual = "//libc/src/ctype:isalpha",
-)
-
-alias(
- name = "isascii",
- actual = "//libc/src/ctype:isascii",
-)
-
-alias(
- name = "isblank",
- actual = "//libc/src/ctype:isblank",
-)
-
-alias(
- name = "iscntrl",
- actual = "//libc/src/ctype:iscntrl",
-)
-
-alias(
- name = "isdigit",
- actual = "//libc/src/ctype:isdigit",
-)
-
-alias(
- name = "isgraph",
- actual = "//libc/src/ctype:isgraph",
-)
-
-alias(
- name = "islower",
- actual = "//libc/src/ctype:islower",
-)
-
-alias(
- name = "isprint",
- actual = "//libc/src/ctype:isprint",
-)
-
-alias(
- name = "ispunct",
- actual = "//libc/src/ctype:ispunct",
-)
-
-alias(
- name = "isspace",
- actual = "//libc/src/ctype:isspace",
-)
-
-alias(
- name = "isupper",
- actual = "//libc/src/ctype:isupper",
-)
-
-alias(
- name = "isxdigit",
- actual = "//libc/src/ctype:isxdigit",
-)
-
-alias(
- name = "toascii",
- actual = "//libc/src/ctype:toascii",
-)
-
-alias(
- name = "tolower",
- actual = "//libc/src/ctype:tolower",
-)
-
-alias(
- name = "toupper",
- actual = "//libc/src/ctype:toupper",
-)
-
-################################ fenv targets ################################
-
-alias(
- name = "fetestexcept",
- actual = "//libc/src/fenv:fetestexcept",
-)
-
-alias(
- name = "fetestexceptflag",
- actual = "//libc/src/fenv:fetestexceptflag",
-)
-
-alias(
- name = "feclearexcept",
- actual = "//libc/src/fenv:feclearexcept",
-)
-
-alias(
- name = "feraiseexcept",
- actual = "//libc/src/fenv:feraiseexcept",
-)
-
-alias(
- name = "fegetround",
- actual = "//libc/src/fenv:fegetround",
-)
-
-alias(
- name = "fesetround",
- actual = "//libc/src/fenv:fesetround",
-)
-
-alias(
- name = "fedisableexcept",
- actual = "//libc/src/fenv:fedisableexcept",
-)
-
-alias(
- name = "feenableexcept",
- actual = "//libc/src/fenv:feenableexcept",
-)
-
-alias(
- name = "fegetexcept",
- actual = "//libc/src/fenv:fegetexcept",
-)
-
-alias(
- name = "fegetenv",
- actual = "//libc/src/fenv:fegetenv",
-)
-
-alias(
- name = "fesetenv",
- actual = "//libc/src/fenv:fesetenv",
-)
-
-alias(
- name = "feupdateenv",
- actual = "//libc/src/fenv:feupdateenv",
-)
-
-alias(
- name = "fesetexcept",
- actual = "//libc/src/fenv:fesetexcept",
-)
-
-alias(
- name = "fegetexceptflag",
- actual = "//libc/src/fenv:fegetexceptflag",
-)
-
-alias(
- name = "fesetexceptflag",
- actual = "//libc/src/fenv:fesetexceptflag",
-)
-
-alias(
- name = "feholdexcept",
- actual = "//libc/src/fenv:feholdexcept",
-)
-
-############################### complex targets ################################
-
-alias(
- name = "cimag",
- actual = "//libc/src/complex:cimag",
-)
-
-alias(
- name = "cimagf",
- actual = "//libc/src/complex:cimagf",
-)
-
-alias(
- name = "cimagf128",
- actual = "//libc/src/complex:cimagf128",
-)
-
-alias(
- name = "cimagf16",
- actual = "//libc/src/complex:cimagf16",
-)
-
-alias(
- name = "cimagl",
- actual = "//libc/src/complex:cimagl",
-)
-
-alias(
- name = "conj",
- actual = "//libc/src/complex:conj",
-)
-
-alias(
- name = "conjf",
- actual = "//libc/src/complex:conjf",
-)
-
-alias(
- name = "conjf128",
- actual = "//libc/src/complex:conjf128",
-)
-
-alias(
- name = "conjf16",
- actual = "//libc/src/complex:conjf16",
-)
-
-alias(
- name = "conjl",
- actual = "//libc/src/complex:conjl",
-)
-
-alias(
- name = "cproj",
- actual = "//libc/src/complex:cproj",
-)
-
-alias(
- name = "cprojf",
- actual = "//libc/src/complex:cprojf",
-)
-
-alias(
- name = "cprojf128",
- actual = "//libc/src/complex:cprojf128",
-)
-
-alias(
- name = "cprojf16",
- actual = "//libc/src/complex:cprojf16",
-)
-
-alias(
- name = "cprojl",
- actual = "//libc/src/complex:cprojl",
-)
-
-alias(
- name = "creal",
- actual = "//libc/src/complex:creal",
-)
-
-alias(
- name = "crealf",
- actual = "//libc/src/complex:crealf",
-)
-
-alias(
- name = "crealf128",
- actual = "//libc/src/complex:crealf128",
-)
-
-alias(
- name = "crealf16",
- actual = "//libc/src/complex:crealf16",
-)
-
-alias(
- name = "creall",
- actual = "//libc/src/complex:creall",
-)
-
-################################ link targets ##################################
-
-alias(
- name = "_r_debug",
- actual = "//libc/src/link:_r_debug",
-)
-
-################################ math targets ##################################
-
-[
- alias(
- name = name,
- actual = "//libc/src/math:{}".format(name),
- )
- for name in [
- "acos",
- "acosbf16",
- "acosf",
- "acosf16",
- "acoshf",
- "acoshbf16",
- "acoshf16",
- "acospif",
- "acospif16",
- "asin",
- "asinbf16",
- "asinf",
- "asinf16",
- "asinhf",
- "asinhf16",
- "asinpi",
- "asinpif",
- "atanbf16",
- "atanf",
- "atanf16",
- "atan",
- "atan2f",
- "atan2f128",
- "atan2f16",
- "atan2",
- "atanhf",
- "atanhf16",
- "atanpif16",
- "bf16add",
- "bf16addf",
- "bf16addl",
- "bf16addf128",
- "bf16div",
- "bf16divl",
- "bf16sub",
- "bf16subf",
- "bf16subf128",
- "bf16subl",
- "bf16fma",
- "bf16fmaf",
- "bf16fmaf128",
- "bf16fmal",
- "bf16mul",
- "bf16mulf",
- "bf16mulf128",
- "bf16mull",
- "bf16divf",
- "bf16divf128",
- "canonicalize",
- "canonicalizef",
- "canonicalizebf16",
- "canonicalizel",
- "canonicalizef128",
- "canonicalizef80",
- "canonicalizef16",
- "fmaximumbf16",
- "fmaximum_magbf16",
- "fmaximum_numbf16",
- "fminbf16",
- "fminimumbf16",
- "fminimum_magbf16",
- "fminimum_mag_numbf16",
- "fminimum_numbf16",
- "frexpbf16",
- "fromfpbf16",
- "fromfpxbf16",
- "ilogbbf16",
- "iscanonical",
- "iscanonicalbf16",
- "iscanonicalf",
- "iscanonicall",
- "iscanonicalf128",
- "iscanonicalf80",
- "iscanonicalf16",
- "isnan",
- "isnanf",
- "isnanf128",
- "isnanf80",
- "isnanl",
- "isnanf16",
- "issignaling",
- "issignalingbf16",
- "issignalingf",
- "issignalingl",
- "issignalingf128",
- "issignalingf80",
- "issignalingf16",
- "cbrt",
- "cbrtbf16",
- "cbrtf",
- "cbrtf16",
- "ceil",
- "ceilbf16",
- "ceilf",
- "ceill",
- "ceilf128",
- "ceilf16",
- "copysign",
- "copysignbf16",
- "copysignf",
- "copysignl",
- "copysignf128",
- "copysignf80",
- "copysignf16",
- "cos",
- "cosf",
- "cosf16",
- "cosh",
- "coshbf16",
- "coshf",
- "coshf16",
- "cospif",
- "cospif16",
- "daddl",
- "daddf128",
- "ddivl",
- "ddivf128",
- "dfmal",
- "dfmaf128",
- "dmull",
- "dmulf128",
- "dsqrtl",
- "dsqrtf128",
- "dsubl",
- "dsubf128",
- "erff",
- "erff16",
- "erfcf16",
- "exp",
- "expf",
- "expf16",
- "expbf16",
- "exp10",
- "exp10f",
- "exp10f16",
- "exp10m1f16",
- "exp10m1f",
- "exp2",
- "exp2bf16",
- "exp2f",
- "exp2f16",
- "exp2m1f",
- "exp2m1f16",
- "expm1",
- "expm1f",
- "expm1f16",
- "f16add",
- "f16addf",
- "f16addf128",
- "f16addl",
- "f16div",
- "f16divf",
- "f16divf128",
- "f16divl",
- "f16fma",
- "f16fmaf",
- "f16fmaf128",
- "f16fmal",
- "f16mul",
- "f16mulf",
- "f16mulf128",
- "f16mull",
- "f16sqrt",
- "f16sqrtf",
- "f16sqrtf128",
- "f16sqrtl",
- "f16sub",
- "f16subf",
- "f16subf128",
- "f16subl",
- "fabs",
- "fabsbf16",
- "fabsf",
- "fabsl",
- "fabsf128",
- "fabsf80",
- "fabsf16",
- "fadd",
- "faddl",
- "faddf128",
- "fdim",
- "fdimbf16",
- "fdimf",
- "fdiml",
- "fdimf128",
- "fdimf80",
- "fdimf16",
- "fdiv",
- "fdivl",
- "fdivf128",
- "ffma",
- "ffmal",
- "ffmaf128",
- "floor",
- "floorbf16",
- "floorf",
- "floorl",
- "floorf128",
- "floorf16",
- "fma",
- "fmaf",
- "fmaf16",
- "fmabf16",
- "fmax",
- "fmaxf",
- "fmaxbf16",
- "fmaxf128",
- "fmaxf16",
- "fmaxf80",
- "fmaxl",
- "fmaximum",
- "fmaximumf",
- "fmaximuml",
- "fmaximumf128",
- "fmaximumf16",
- "fmaximumf80",
- "fmaximum_mag",
- "fmaximum_magf",
- "fmaximum_magl",
- "fmaximum_magf128",
- "fmaximum_magf80",
- "fmaximum_magf16",
- "fmaximum_mag_num",
- "fmaximum_mag_numbf16",
- "fmaximum_mag_numf",
- "fmaximum_mag_numl",
- "fmaximum_mag_numf128",
- "fmaximum_mag_numf80",
- "fmaximum_mag_numf16",
- "fmaximum_num",
- "fmaximum_numf",
- "fmaximum_numl",
- "fmaximum_numf128",
- "fmaximum_numf80",
- "fmaximum_numf16",
- "fmin",
- "fminf",
- "fminl",
- "fminf128",
- "fminf16",
- "fminf80",
- "fminimum",
- "fminimumf",
- "fminimuml",
- "fminimumf128",
- "fminimumf16",
- "fminimumf80",
- "fminimum_mag",
- "fminimum_magf",
- "fminimum_magl",
- "fminimum_magf128",
- "fminimum_magf80",
- "fminimum_magf16",
- "fminimum_mag_num",
- "fminimum_mag_numf",
- "fminimum_mag_numl",
- "fminimum_mag_numf128",
- "fminimum_mag_numf80",
- "fminimum_mag_numf16",
- "fminimum_num",
- "fminimum_numf",
- "fminimum_numl",
- "fminimum_numf128",
- "fminimum_numf80",
- "fminimum_numf16",
- "fmod",
- "fmodbf16",
- "fmodf",
- "fmodl",
- "fmodf128",
- "fmodf16",
- "fmul",
- "fmull",
- "fmulf128",
- "frexp",
- "frexpf",
- "frexpl",
- "frexpf128",
- "frexpf16",
- "fromfp",
- "fromfpf",
- "fromfpl",
- "fromfpf128",
- "fromfpf16",
- "fromfpx",
- "fromfpxf",
- "fromfpxl",
- "fromfpxf128",
- "fromfpxf16",
- "fsqrt",
- "fsqrtl",
- "fsqrtf128",
- "fsub",
- "fsubl",
- "fsubf128",
- "getpayload",
- "getpayloadbf16",
- "getpayloadf",
- "getpayloadl",
- "getpayloadf128",
- "getpayloadf16",
- "hypot",
- "hypotf",
- "hypotbf16",
- "hypotf16",
- "ilogb",
- "ilogbf",
- "ilogbl",
- "ilogbf128",
- "ilogbf16",
- "ldexp",
- "ldexpbf16",
- "ldexpf",
- "ldexpl",
- "ldexpf128",
- "ldexpf16",
- "lgammaf",
- "lgammaf16",
- "llogb",
- "llogbbf16",
- "llogbf",
- "llogbl",
- "llogbf128",
- "llogbf16",
- "llrint",
- "llrintbf16",
- "llrintf",
- "llrintl",
- "llrintf128",
- "llrintf16",
- "llround",
- "llroundbf16",
- "llroundf",
- "llroundl",
- "llroundf128",
- "llroundf16",
- "log",
- "logf",
- "logf16",
- "log10",
- "log10f",
- "log10f16",
- "log10p1bf16",
- "log10p1f16",
- "log1p",
- "log1pf",
- "log2",
- "log2f",
- "log2f16",
- "log2p1f16",
- "logb",
- "logbbf16",
- "logbf",
- "logbl",
- "logbf128",
- "logbf16",
- "log_bf16",
- "lrint",
- "lrintbf16",
- "lrintf",
- "lrintl",
- "lrintf128",
- "lrintf16",
- "lround",
- "lroundbf16",
- "lroundf",
- "lroundl",
- "lroundf128",
- "lroundf16",
- "modf",
- "modfbf16",
- "modff",
- "modfl",
- "modff128",
- "modff16",
- "nan",
- "nanbf16",
- "nanf",
- "nanl",
- "nanf128",
- "nanf16",
- "nearbyint",
- "nearbyintbf16",
- "nearbyintf",
- "nearbyintl",
- "nearbyintf128",
- "nearbyintf16",
- "nextafter",
- "nextafterbf16",
- "nextafterf",
- "nextafterl",
- "nextafterf128",
- "nextafterf16",
- "nextdown",
- "nextdownbf16",
- "nextdownf",
- "nextdownl",
- "nextdownf128",
- "nextdownf16",
- "nexttoward",
- "nexttowardbf16",
- "nexttowardf",
- "nexttowardf16",
- "nexttowardl",
- "nextup",
- "nextupf",
- "nextupl",
- "nextupf128",
- "nextupf16",
- "nextupbf16",
- "pow",
- "powf",
- "remainder",
- "remainderbf16",
- "remainderf",
- "remainderl",
- "remainderf128",
- "remainderf16",
- "remquo",
- "remquobf16",
- "remquof",
- "remquol",
- "remquof128",
- "remquof16",
- "rint",
- "rintbf16",
- "rintf",
- "rintl",
- "rintf128",
- "rintf16",
- "round",
- "roundbf16",
- "roundevenbf16",
- "roundf",
- "roundl",
- "roundf128",
- "roundf16",
- "roundeven",
- "roundevenf",
- "roundevenl",
- "roundevenf128",
- "roundevenf16",
- "rsqrtf",
- "rsqrtf16",
- "scalbln",
- "scalblnbf16",
- "scalblnf",
- "scalblnl",
- "scalblnf128",
- "scalblnf16",
- "scalbn",
- "scalbnbf16",
- "scalbnf",
- "scalbnl",
- "scalbnf128",
- "scalbnf16",
- "setpayload",
- "setpayloadbf16",
- "setpayloadf",
- "setpayloadl",
- "setpayloadf128",
- "setpayloadf16",
- "setpayloadsig",
- "setpayloadsigbf16",
- "setpayloadsigf",
- "setpayloadsigl",
- "setpayloadsigf128",
- "setpayloadsigf16",
- "sin",
- "sinbf16",
- "sinf",
- "sinf16",
- "sincos",
- "sincosf",
- "sinh",
- "sinhf",
- "sinhbf16",
- "sinhf16",
- "sinpif",
- "sinpif16",
- "asinpif16",
- "sqrt",
- "sqrtbf16",
- "sqrtf",
- "sqrtl",
- "sqrtf128",
- "sqrtf16",
- "tan",
- "tanbf16",
- "tanf",
- "tanf16",
- "tanh",
- "tanhf",
- "tanhf16",
- "tanpif",
- "tanpif16",
- "totalorder",
- "totalorderbf16",
- "totalorderf",
- "totalorderl",
- "totalorderf128",
- "totalorderf80",
- "totalorderf16",
- "totalordermag",
- "totalordermagbf16",
- "totalordermagf",
- "totalordermagl",
- "totalordermagf128",
- "totalordermagf80",
- "totalordermagf16",
- "trunc",
- "truncbf16",
- "truncf",
- "truncl",
- "truncf128",
- "truncf16",
- "ufromfp",
- "ufromfpbf16",
- "ufromfpf",
- "ufromfpl",
- "ufromfpf128",
- "ufromfpf16",
- "ufromfpx",
- "ufromfpxbf16",
- "ufromfpxf",
- "ufromfpxl",
- "ufromfpxf128",
- "ufromfpxf16",
- ]
-]
-
-############################## inttypes targets ##############################
-
-alias(
- name = "strtoimax",
- actual = "//libc/src/inttypes:strtoimax",
-)
-
-alias(
- name = "strtoumax",
- actual = "//libc/src/inttypes:strtoumax",
-)
-
-alias(
- name = "imaxabs",
- actual = "//libc/src/inttypes:imaxabs",
-)
-
-alias(
- name = "imaxdiv",
- actual = "//libc/src/inttypes:imaxdiv",
-)
-
-############################### stdbit targets ###############################
-
-bit_suffix_list = [
- "uc",
- "us",
- "ui",
- "ul",
- "ull",
-]
-
-bit_prefix_list = [
- "stdc_bit_ceil_",
- "stdc_bit_floor_",
- "stdc_bit_width_",
- "stdc_count_ones_",
- "stdc_count_zeros_",
- "stdc_first_leading_one_",
- "stdc_first_leading_zero_",
- "stdc_first_trailing_one_",
- "stdc_first_trailing_zero_",
- "stdc_has_single_bit_",
- "stdc_leading_ones_",
- "stdc_leading_zeros_",
- "stdc_trailing_ones_",
- "stdc_trailing_zeros_",
-]
-
-[
- alias(
- name = bit_prefix + bit_suffix,
- actual = "//libc/src/stdbit:{}".format(bit_prefix + bit_suffix),
- )
- for bit_prefix in bit_prefix_list
- for bit_suffix in bit_suffix_list
-]
-
-############################### stdlib targets ###############################
-
-alias(
- name = "_Exit",
- actual = "//libc/src/stdlib:_Exit",
-)
-
-alias(
- name = "atexit",
- actual = "//libc/src/stdlib:atexit",
-)
-
-alias(
- name = "exit",
- actual = "//libc/src/stdlib:exit",
-)
-
-alias(
- name = "abs",
- actual = "//libc/src/stdlib:abs",
-)
-
-alias(
- name = "labs",
- actual = "//libc/src/stdlib:labs",
-)
-
-alias(
- name = "llabs",
- actual = "//libc/src/stdlib:llabs",
-)
-
-alias(
- name = "div",
- actual = "//libc/src/stdlib:div",
-)
-
-alias(
- name = "ldiv",
- actual = "//libc/src/stdlib:ldiv",
-)
-
-alias(
- name = "lldiv",
- actual = "//libc/src/stdlib:lldiv",
-)
-
-alias(
- name = "atoi",
- actual = "//libc/src/stdlib:atoi",
-)
-
-alias(
- name = "atol",
- actual = "//libc/src/stdlib:atol",
-)
-
-alias(
- name = "atoll",
- actual = "//libc/src/stdlib:atoll",
-)
-
-alias(
- name = "atof",
- actual = "//libc/src/stdlib:atof",
-)
-
-alias(
- name = "bsearch",
- actual = "//libc/src/stdlib:bsearch",
-)
-
-alias(
- name = "abort",
- actual = "//libc/src/stdlib:abort",
-)
-
-alias(
- name = "getenv",
- actual = "//libc/src/stdlib:getenv",
-)
-
-alias(
- name = "qsort",
- actual = "//libc/src/stdlib:qsort",
-)
-
-alias(
- name = "qsort_r",
- actual = "//libc/src/stdlib:qsort_r",
-)
-
-alias(
- name = "rand",
- actual = "//libc/src/stdlib:rand",
-)
-
-alias(
- name = "realpath",
- actual = "//libc/src/stdlib:realpath",
-)
-
-alias(
- name = "srand",
- actual = "//libc/src/stdlib:srand",
-)
-
-alias(
- name = "strfromf",
- actual = "//libc/src/stdlib:strfromf",
-)
-
-alias(
- name = "strfromf128",
- actual = "//libc/src/stdlib:strfromf128",
-)
-
-alias(
- name = "strfromd",
- actual = "//libc/src/stdlib:strfromd",
-)
-
-alias(
- name = "strfroml",
- actual = "//libc/src/stdlib:strfroml",
-)
-
-alias(
- name = "strtol",
- actual = "//libc/src/stdlib:strtol",
-)
-
-alias(
- name = "strtoll",
- actual = "//libc/src/stdlib:strtoll",
-)
-
-alias(
- name = "strtoul",
- actual = "//libc/src/stdlib:strtoul",
-)
-
-alias(
- name = "strtoull",
- actual = "//libc/src/stdlib:strtoull",
-)
-
-alias(
- name = "strtof",
- actual = "//libc/src/stdlib:strtof",
-)
-
-alias(
- name = "strtof128",
- actual = "//libc/src/stdlib:strtof128",
-)
-
-alias(
- name = "strtod",
- actual = "//libc/src/stdlib:strtod",
-)
-
-alias(
- name = "strtold",
- actual = "//libc/src/stdlib:strtold",
-)
-
-############################### string targets ###############################
-
-alias(
- name = "index",
- actual = "//libc/src/strings:index",
-)
-
-alias(
- name = "rindex",
- actual = "//libc/src/strings:rindex",
-)
-
-alias(
- name = "memchr",
- actual = "//libc/src/string:memchr",
-)
-
-alias(
- name = "memcpy",
- actual = "//libc/src/string:memcpy",
-)
-
-alias(
- name = "memccpy",
- actual = "//libc/src/string:memccpy",
-)
-
-alias(
- name = "memset",
- actual = "//libc/src/string:memset",
-)
-
-alias(
- name = "memset_explicit",
- actual = "//libc/src/string:memset_explicit",
-)
-
-alias(
- name = "memmove",
- actual = "//libc/src/string:memmove",
-)
-
-alias(
- name = "memmem",
- actual = "//libc/src/string:memmem",
-)
-
-alias(
- name = "mempcpy",
- actual = "//libc/src/string:mempcpy",
-)
-
-alias(
- name = "bcopy",
- actual = "//libc/src/strings:bcopy",
-)
-
-alias(
- name = "memcmp",
- actual = "//libc/src/string:memcmp",
-)
-
-alias(
- name = "bcmp",
- actual = "//libc/src/strings:bcmp",
-)
-
-alias(
- name = "bzero",
- actual = "//libc/src/strings:bzero",
-)
-
-alias(
- name = "memrchr",
- actual = "//libc/src/string:memrchr",
-)
-
-alias(
- name = "stpcpy",
- actual = "//libc/src/string:stpcpy",
-)
-
-alias(
- name = "stpncpy",
- actual = "//libc/src/string:stpncpy",
-)
-
-alias(
- name = "strlen",
- actual = "//libc/src/string:strlen",
-)
-
-alias(
- name = "strsignal",
- actual = "//libc/src/string:strsignal",
-)
-
-alias(
- name = "strcpy",
- actual = "//libc/src/string:strcpy",
-)
-
-alias(
- name = "strlcpy",
- actual = "//libc/src/string:strlcpy",
-)
-
-alias(
- name = "strncpy",
- actual = "//libc/src/string:strncpy",
-)
-
-alias(
- name = "strcmp",
- actual = "//libc/src/string:strcmp",
-)
-
-alias(
- name = "strncmp",
- actual = "//libc/src/string:strncmp",
-)
-
-alias(
- name = "strcasecmp",
- actual = "//libc/src/strings:strcasecmp",
-)
-
-alias(
- name = "strncasecmp",
- actual = "//libc/src/strings:strncasecmp",
-)
-
-alias(
- name = "strchr",
- actual = "//libc/src/string:strchr",
-)
-
-alias(
- name = "strrchr",
- actual = "//libc/src/string:strrchr",
-)
-
-alias(
- name = "strchrnul",
- actual = "//libc/src/string:strchrnul",
-)
-
-alias(
- name = "strsep",
- actual = "//libc/src/string:strsep",
-)
-
-alias(
- name = "strstr",
- actual = "//libc/src/string:strstr",
-)
-
-alias(
- name = "strcasestr",
- actual = "//libc/src/string:strcasestr",
-)
-
-alias(
- name = "strcat",
- actual = "//libc/src/string:strcat",
-)
-
-alias(
- name = "strlcat",
- actual = "//libc/src/string:strlcat",
-)
-
-alias(
- name = "strncat",
- actual = "//libc/src/string:strncat",
-)
-
-alias(
- name = "strnlen",
- actual = "//libc/src/string:strnlen",
-)
-
-alias(
- name = "strcspn",
- actual = "//libc/src/string:strcspn",
-)
-
-alias(
- name = "strdup",
- actual = "//libc/src/string:strdup",
-)
-
-alias(
- name = "strndup",
- actual = "//libc/src/string:strndup",
-)
-
-alias(
- name = "strerror",
- actual = "//libc/src/string:strerror",
-)
-
-alias(
- name = "strerror_r",
- actual = "//libc/src/string:strerror_r",
-)
-
-alias(
- name = "strspn",
- actual = "//libc/src/string:strspn",
-)
-
-alias(
- name = "strpbrk",
- actual = "//libc/src/string:strpbrk",
-)
-
-alias(
- name = "strtok",
- actual = "//libc/src/string:strtok",
-)
-
-alias(
- name = "strtok_r",
- actual = "//libc/src/string:strtok_r",
-)
-
-################################ fcntl targets #################################
-
-alias(
- name = "open",
- actual = "//libc/src/fcntl:open",
-)
-
-alias(
- name = "fcntl",
- actual = "//libc/src/fcntl",
-)
-
-alias(
- name = "openat",
- actual = "//libc/src/fcntl:openat",
-)
-
-alias(
- name = "creat",
- actual = "//libc/src/fcntl:creat",
-)
-
-################################ time targets ##################################
-
-################################ unistd targets ################################
-
-alias(
- name = "clock",
- actual = "//libc/src/time:clock",
-)
-
-alias(
- name = "access",
- actual = "//libc/src/unistd:access",
-)
-
-alias(
- name = "chdir",
- actual = "//libc/src/unistd:chdir",
-)
-
-alias(
- name = "chown",
- actual = "//libc/src/unistd:chown",
-)
-
-alias(
- name = "close",
- actual = "//libc/src/unistd:close",
-)
-
-alias(
- name = "dup",
- actual = "//libc/src/unistd:dup",
-)
-
-alias(
- name = "dup2",
- actual = "//libc/src/unistd:dup2",
-)
-
-alias(
- name = "dup3",
- actual = "//libc/src/unistd:dup3",
-)
-
-alias(
- name = "environ",
- actual = "//libc/src/unistd:environ",
-)
-
-alias(
- name = "fchdir",
- actual = "//libc/src/unistd:fchdir",
-)
-
-alias(
- name = "getcpu",
- actual = "//libc/src/sched:getcpu",
-)
-
-alias(
- name = "sched_getcpu",
- actual = "//libc/src/sched:sched_getcpu",
-)
-
-alias(
- name = "sched_get_priority_max",
- actual = "//libc/src/sched:sched_get_priority_max",
-)
-
-alias(
- name = "sched_get_priority_min",
- actual = "//libc/src/sched:sched_get_priority_min",
-)
-
-alias(
- name = "sched_getparam",
- actual = "//libc/src/sched:sched_getparam",
-)
-
-alias(
- name = "sched_getscheduler",
- actual = "//libc/src/sched:sched_getscheduler",
-)
-
-alias(
- name = "sched_rr_get_interval",
- actual = "//libc/src/sched:sched_rr_get_interval",
-)
-
-alias(
- name = "sched_setaffinity",
- actual = "//libc/src/sched:sched_setaffinity",
-)
-
-alias(
- name = "sched_setparam",
- actual = "//libc/src/sched:sched_setparam",
-)
-
-alias(
- name = "sched_setscheduler",
- actual = "//libc/src/sched:sched_setscheduler",
-)
-
-alias(
- name = "sched_yield",
- actual = "//libc/src/sched:sched_yield",
-)
-
-alias(
- name = "fchown",
- actual = "//libc/src/unistd:fchown",
-)
-
-alias(
- name = "fsync",
- actual = "//libc/src/unistd:fsync",
-)
-
-alias(
- name = "ftruncate",
- actual = "//libc/src/unistd:ftruncate",
-)
-
-alias(
- name = "getcwd",
- actual = "//libc/src/unistd:getcwd",
-)
-
-alias(
- name = "geteuid",
- actual = "//libc/src/unistd:geteuid",
-)
-
-alias(
- name = "gethostname",
- actual = "//libc/src/unistd:gethostname",
-)
-
-alias(
- name = "getpagesize",
- actual = "//libc/src/unistd:getpagesize",
-)
-
-alias(
- name = "getpid",
- actual = "//libc/src/unistd:getpid",
-)
-
-alias(
- name = "getppid",
- actual = "//libc/src/unistd:getppid",
-)
-
-alias(
- name = "fork",
- actual = "//libc/src/unistd:fork",
-)
-
-alias(
- name = "poll",
- actual = "//libc/src/poll",
-)
-
-alias(
- name = "kill",
- actual = "//libc/src/signal:kill",
-)
-
-alias(
- name = "sigaction",
- actual = "//libc/src/signal:sigaction",
-)
-
-alias(
- name = "sigaltstack",
- actual = "//libc/src/signal:sigaltstack",
-)
-
-alias(
- name = "signal",
- actual = "//libc/src/signal",
-)
-
-alias(
- name = "waitpid",
- actual = "//libc/src/sys/wait:waitpid",
-)
-
-alias(
- name = "getsid",
- actual = "//libc/src/unistd:getsid",
-)
-
-alias(
- name = "getuid",
- actual = "//libc/src/unistd:getuid",
-)
-
-alias(
- name = "getegid",
- actual = "//libc/src/unistd:getegid",
-)
-
-alias(
- name = "getgid",
- actual = "//libc/src/unistd:getgid",
-)
-
-# libc_function(
-# name = "getopt",
-# srcs = ["src/unistd/getopt.cpp"],
-# hdrs = ["src/unistd/getopt.h"],
-# deps = [
-# ":__support_common",
-# ":__support_cpp_optional",
-# ":__support_cpp_string_view",
-# ":__support_file_file",
-# ":__support_osutil_syscall",
-# ":errno",
-# ":hdr_unistd_macros",
-# ],
-# )
-
-alias(
- name = "isatty",
- actual = "//libc/src/unistd:isatty",
-)
-
-alias(
- name = "link",
- actual = "//libc/src/unistd:link",
-)
-
-alias(
- name = "linkat",
- actual = "//libc/src/unistd:linkat",
-)
-
-alias(
- name = "pipe",
- actual = "//libc/src/unistd:pipe",
-)
-
-alias(
- name = "lseek",
- actual = "//libc/src/unistd:lseek",
-)
-
-alias(
- name = "pread",
- actual = "//libc/src/unistd:pread",
-)
-
-alias(
- name = "pwrite",
- actual = "//libc/src/unistd:pwrite",
-)
-
-alias(
- name = "read",
- actual = "//libc/src/unistd:read",
-)
-
-alias(
- name = "readlink",
- actual = "//libc/src/unistd:readlink",
-)
-
-alias(
- name = "readlinkat",
- actual = "//libc/src/unistd:readlinkat",
-)
-
-alias(
- name = "rmdir",
- actual = "//libc/src/unistd:rmdir",
-)
-
-alias(
- name = "setsid",
- actual = "//libc/src/unistd:setsid",
-)
-
-alias(
- name = "symlink",
- actual = "//libc/src/unistd:symlink",
-)
-
-alias(
- name = "symlinkat",
- actual = "//libc/src/unistd:symlinkat",
-)
-
-#TODO: Enable once fullbuild is added to bazel, since this depends on a macro
-# definition in the public header
-
-# libc_function(
-# name = "syscall",
-# srcs = ["src/unistd/linux/syscall.cpp"],
-# hdrs = ["src/unistd/syscall.h"],
-# deps = [
-# ":__support_common",
-# ":__support_osutil_syscall",
-# ":errno",
-# ":hdr_unistd_macros",
-# ],
-# )
-
-alias(
- name = "swab",
- actual = "//libc/src/unistd:swab",
-)
-
-alias(
- name = "truncate",
- actual = "//libc/src/unistd:truncate",
-)
-
-alias(
- name = "unlink",
- actual = "//libc/src/unistd:unlink",
-)
-
-alias(
- name = "unlinkat",
- actual = "//libc/src/unistd:unlinkat",
-)
-
-alias(
- name = "sysconf",
- actual = "//libc/src/unistd:sysconf",
-)
-
-alias(
- name = "write",
- actual = "//libc/src/unistd:write",
-)
-
-################################ stdio targets #################################
-
-alias(
- name = "fflush",
- actual = "//libc/src/stdio:fflush",
-)
-
-alias(
- name = "fclose",
- actual = "//libc/src/stdio:fclose",
-)
-
-alias(
- name = "fopen",
- actual = "//libc/src/stdio:fopen",
-)
-
-alias(
- name = "fread",
- actual = "//libc/src/stdio:fread",
-)
-
-alias(
- name = "fwrite",
- actual = "//libc/src/stdio:fwrite",
-)
-
-alias(
- name = "feof",
- actual = "//libc/src/stdio:feof",
-)
-
-alias(
- name = "ferror",
- actual = "//libc/src/stdio:ferror",
-)
-
-alias(
- name = "asprintf",
- actual = "//libc/src/stdio:asprintf",
-)
-
-alias(
- name = "sprintf",
- actual = "//libc/src/stdio:sprintf",
-)
-
-alias(
- name = "snprintf",
- actual = "//libc/src/stdio:snprintf",
-)
-
-alias(
- name = "printf",
- actual = "//libc/src/stdio:printf",
-)
-
-alias(
- name = "fprintf",
- actual = "//libc/src/stdio:fprintf",
-)
-
-alias(
- name = "vasprintf",
- actual = "//libc/src/stdio:vasprintf",
-)
-
-alias(
- name = "vsprintf",
- actual = "//libc/src/stdio:vsprintf",
-)
-
-alias(
- name = "vsnprintf",
- actual = "//libc/src/stdio:vsnprintf",
-)
-
-alias(
- name = "vprintf",
- actual = "//libc/src/stdio:vprintf",
-)
-
-alias(
- name = "vfprintf",
- actual = "//libc/src/stdio:vfprintf",
-)
-
-alias(
- name = "scanf",
- actual = "//libc/src/stdio:scanf",
-)
-
-alias(
- name = "vscanf",
- actual = "//libc/src/stdio:vscanf",
-)
-
-alias(
- name = "fscanf",
- actual = "//libc/src/stdio:fscanf",
-)
-
-alias(
- name = "vfscanf",
- actual = "//libc/src/stdio:vfscanf",
-)
-
-alias(
- name = "sscanf",
- actual = "//libc/src/stdio:sscanf",
-)
-
-alias(
- name = "vsscanf",
- actual = "//libc/src/stdio:vsscanf",
-)
-
-alias(
- name = "remove",
- actual = "//libc/src/stdio:remove",
-)
-
-alias(
- name = "rename",
- actual = "//libc/src/stdio:rename",
-)
-
-############################### sys/mman targets ###############################
-
-alias(
- name = "madvise",
- actual = "//libc/src/sys/mman:madvise",
-)
-
-alias(
- name = "mincore",
- actual = "//libc/src/sys/mman:mincore",
-)
-
-alias(
- name = "mlock",
- actual = "//libc/src/sys/mman:mlock",
-)
-
-alias(
- name = "mlock2",
- actual = "//libc/src/sys/mman:mlock2",
-)
-
-alias(
- name = "mlockall",
- actual = "//libc/src/sys/mman:mlockall",
-)
-
-alias(
- name = "mmap",
- actual = "//libc/src/sys/mman:mmap",
-)
-
-alias(
- name = "mprotect",
- actual = "//libc/src/sys/mman:mprotect",
-)
-
-alias(
- name = "mremap",
- actual = "//libc/src/sys/mman:mremap",
-)
-
-alias(
- name = "msync",
- actual = "//libc/src/sys/mman:msync",
-)
-
-alias(
- name = "munlock",
- actual = "//libc/src/sys/mman:munlock",
-)
-
-alias(
- name = "munlockall",
- actual = "//libc/src/sys/mman:munlockall",
-)
-
-alias(
- name = "munmap",
- actual = "//libc/src/sys/mman:munmap",
-)
-
-alias(
- name = "memfd_create",
- actual = "//libc/src/sys/mman:memfd_create",
-)
-
-alias(
- name = "pkey_alloc",
- actual = "//libc/src/sys/mman:pkey_alloc",
-)
-
-alias(
- name = "pkey_free",
- actual = "//libc/src/sys/mman:pkey_free",
-)
-
-alias(
- name = "pkey_get",
- actual = "//libc/src/sys/mman:pkey_get",
-)
-
-alias(
- name = "pkey_mprotect",
- actual = "//libc/src/sys/mman:pkey_mprotect",
-)
-
-alias(
- name = "pkey_set",
- actual = "//libc/src/sys/mman:pkey_set",
-)
-
-alias(
- name = "posix_madvise",
- actual = "//libc/src/sys/mman:posix_madvise",
-)
-
-alias(
- name = "remap_file_pages",
- actual = "//libc/src/sys/mman:remap_file_pages",
-)
-
-alias(
- name = "shm_open",
- actual = "//libc/src/sys/mman:shm_open",
-)
-
-alias(
- name = "shm_unlink",
- actual = "//libc/src/sys/mman:shm_unlink",
-)
-
-############################# sys/random targets #############################
-
-alias(
- name = "getrandom",
- actual = "//libc/src/sys/random:getrandom",
-)
-
-############################## sys/prctl targets ##############################
-
-alias(
- name = "prctl",
- actual = "//libc/src/sys/prctl",
-)
-
-############################# sys/resource targets #############################
-
-alias(
- name = "getrlimit",
- actual = "//libc/src/sys/resource:getrlimit",
-)
-
-alias(
- name = "setrlimit",
- actual = "//libc/src/sys/resource:setrlimit",
-)
-
-############################### sys/sem targets ################################
-
-alias(
- name = "semctl",
- actual = "//libc/src/sys/sem:semctl",
-)
-
-alias(
- name = "semget",
- actual = "//libc/src/sys/sem:semget",
-)
-
-alias(
- name = "semop",
- actual = "//libc/src/sys/sem:semop",
-)
-
-############################# sys/sendfile targets #############################
-
-alias(
- name = "sendfile",
- actual = "//libc/src/sys/sendfile",
-)
-
-############################### sys/stat targets ###############################
-
-alias(
- name = "mkdir",
- actual = "//libc/src/sys/stat:mkdir",
-)
-
-alias(
- name = "mkdirat",
- actual = "//libc/src/sys/stat:mkdirat",
-)
-
-############################## sys/socket targets ##############################
-
-alias(
- name = "accept",
- actual = "//libc/src/sys/socket:accept",
-)
-
-alias(
- name = "accept4",
- actual = "//libc/src/sys/socket:accept4",
-)
-
-alias(
- name = "bind",
- actual = "//libc/src/sys/socket:bind",
-)
-
-alias(
- name = "connect",
- actual = "//libc/src/sys/socket:connect",
-)
-
-alias(
- name = "getpeername",
- actual = "//libc/src/sys/socket:getpeername",
-)
-
-alias(
- name = "getsockname",
- actual = "//libc/src/sys/socket:getsockname",
-)
-
-alias(
- name = "getsockopt",
- actual = "//libc/src/sys/socket:getsockopt",
-)
-
-alias(
- name = "listen",
- actual = "//libc/src/sys/socket:listen",
-)
-
-alias(
- name = "recv",
- actual = "//libc/src/sys/socket:recv",
-)
-
-alias(
- name = "recvfrom",
- actual = "//libc/src/sys/socket:recvfrom",
-)
-
-alias(
- name = "recvmmsg",
- actual = "//libc/src/sys/socket:recvmmsg",
-)
-
-alias(
- name = "recvmsg",
- actual = "//libc/src/sys/socket:recvmsg",
-)
-
-alias(
- name = "send",
- actual = "//libc/src/sys/socket:send",
-)
-
-alias(
- name = "sendmmsg",
- actual = "//libc/src/sys/socket:sendmmsg",
-)
-
-alias(
- name = "sendmsg",
- actual = "//libc/src/sys/socket:sendmsg",
-)
-
-alias(
- name = "sendto",
- actual = "//libc/src/sys/socket:sendto",
-)
-
-alias(
- name = "setsockopt",
- actual = "//libc/src/sys/socket:setsockopt",
-)
-
-alias(
- name = "shutdown",
- actual = "//libc/src/sys/socket:shutdown",
-)
-
-alias(
- name = "sockatmark",
- actual = "//libc/src/sys/socket:sockatmark",
-)
-
-alias(
- name = "socket",
- actual = "//libc/src/sys/socket",
-)
-
-alias(
- name = "socketpair",
- actual = "//libc/src/sys/socket:socketpair",
-)
-
-############################### sys/uio targets ################################
-
-alias(
- name = "readv",
- actual = "//libc/src/sys/uio:readv",
-)
-
-alias(
- name = "writev",
- actual = "//libc/src/sys/uio:writev",
-)
-
-############################# sys/utsname targets ##############################
-
-alias(
- name = "uname",
- actual = "//libc/src/sys/utsname:uname",
-)
-
-############################## sys/epoll targets ###############################
-
-alias(
- name = "epoll_create",
- actual = "//libc/src/sys/epoll:epoll_create",
-)
-
-alias(
- name = "epoll_create1",
- actual = "//libc/src/sys/epoll:epoll_create1",
-)
-
-alias(
- name = "epoll_ctl",
- actual = "//libc/src/sys/epoll:epoll_ctl",
-)
-
-alias(
- name = "epoll_pwait",
- actual = "//libc/src/sys/epoll:epoll_pwait",
-)
-
-alias(
- name = "epoll_pwait2",
- actual = "//libc/src/sys/epoll:epoll_pwait2",
-)
-
-alias(
- name = "epoll_wait",
- actual = "//libc/src/sys/epoll:epoll_wait",
-)
-
-############################## wchar targets ###############################
-
-alias(
- name = "btowc",
- actual = "//libc/src/wchar:btowc",
-)
-
-alias(
- name = "wcpcpy",
- actual = "//libc/src/wchar:wcpcpy",
-)
-
-alias(
- name = "wcpncpy",
- actual = "//libc/src/wchar:wcpncpy",
-)
-
-alias(
- name = "wcscat",
- actual = "//libc/src/wchar:wcscat",
-)
-
-alias(
- name = "wcschr",
- actual = "//libc/src/wchar:wcschr",
-)
-
-alias(
- name = "wcscmp",
- actual = "//libc/src/wchar:wcscmp",
-)
-
-alias(
- name = "wcscpy",
- actual = "//libc/src/wchar:wcscpy",
-)
-
-alias(
- name = "wcscspn",
- actual = "//libc/src/wchar:wcscspn",
-)
-
-alias(
- name = "wcslcat",
- actual = "//libc/src/wchar:wcslcat",
-)
-
-alias(
- name = "wcslcpy",
- actual = "//libc/src/wchar:wcslcpy",
-)
-
-alias(
- name = "wcslen",
- actual = "//libc/src/wchar:wcslen",
-)
-
-alias(
- name = "wcsncat",
- actual = "//libc/src/wchar:wcsncat",
-)
-
-alias(
- name = "wcsncmp",
- actual = "//libc/src/wchar:wcsncmp",
-)
-
-alias(
- name = "wcsncpy",
- actual = "//libc/src/wchar:wcsncpy",
-)
-
-alias(
- name = "wcspbrk",
- actual = "//libc/src/wchar:wcspbrk",
-)
-
-alias(
- name = "wcsrchr",
- actual = "//libc/src/wchar:wcsrchr",
-)
-
-alias(
- name = "wcsspn",
- actual = "//libc/src/wchar:wcsspn",
-)
-
-alias(
- name = "wcsstr",
- actual = "//libc/src/wchar:wcsstr",
-)
-
-alias(
- name = "wctob",
- actual = "//libc/src/wchar:wctob",
-)
-
-alias(
- name = "wmemchr",
- actual = "//libc/src/wchar:wmemchr",
-)
-
-alias(
- name = "wmemcmp",
- actual = "//libc/src/wchar:wmemcmp",
-)
-
-alias(
- name = "wmemcpy",
- actual = "//libc/src/wchar:wmemcpy",
-)
-
-alias(
- name = "wmemmove",
- actual = "//libc/src/wchar:wmemmove",
-)
-
-alias(
- name = "wmempcpy",
- actual = "//libc/src/wchar:wmempcpy",
-)
-
-alias(
- name = "wmemset",
- actual = "//libc/src/wchar:wmemset",
-)
+# This file is licensed 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
+
+load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
+load("@rules_cc//cc:defs.bzl", "cc_library")
+load("@rules_python//python:defs.bzl", "py_binary")
+
+package(
+ default_visibility = ["//visibility:public"],
+ features = [
+ "parse_headers",
+ "-use_header_modules",
+ "layering_check",
+ ],
+)
+
+licenses(["notice"])
+
+# A flag to pick which `mpfr` to use for math tests.
+# Usage: `-- at llvm-project//libc:mpfr=<disable|external|system>`.
+# Flag documentation: https://bazel.build/extending/config
+string_flag(
+ name = "mpfr",
+ build_setting_default = "external",
+ values = [
+ "disable", # Skip tests that need mpfr
+ "external", # Build mpfr from source
+ "system", # Use system mpfr (non hermetic)
+ ],
+)
+
+config_setting(
+ name = "mpfr_disable",
+ flag_values = {":mpfr": "disable"},
+)
+
+config_setting(
+ name = "mpfr_external",
+ flag_values = {":mpfr": "external"},
+)
+
+config_setting(
+ name = "mpfr_system",
+ flag_values = {":mpfr": "system"},
+)
+
+cc_library(
+ name = "libmpfr_system",
+ linkopts = ["-lmpfr"],
+ tags = ["manual"],
+ visibility = ["//libc:__subpackages__"],
+)
+
+# A flag to pick which `mpc` to use for math tests.
+# Usage: `-- at llvm-project//libc:mpc=<disable|external|system>`.
+# Flag documentation: https://bazel.build/extending/config
+string_flag(
+ name = "mpc",
+ build_setting_default = "external",
+ values = [
+ "disable", # Skip tests that need mpc
+ "external", # Build mpc from source
+ "system", # Use system mpc (non hermetic)
+ ],
+)
+
+config_setting(
+ name = "mpc_disable",
+ flag_values = {":mpc": "disable"},
+)
+
+config_setting(
+ name = "mpc_external",
+ flag_values = {":mpc": "external"},
+)
+
+config_setting(
+ name = "mpc_system",
+ flag_values = {":mpc": "system"},
+)
+
+cc_library(
+ name = "libmpc_system",
+ linkopts = ["-lmpc"],
+ tags = ["manual"],
+ visibility = ["//libc:__subpackages__"],
+)
+
+# A flag to enable modular format for printf.
+# Usage: `-- at llvm-project//libc:modular_format=<disable|enable>`.
+string_flag(
+ name = "modular_format",
+ build_setting_default = "disable",
+ values = [
+ "disable",
+ "enable",
+ ],
+)
+
+config_setting(
+ name = "modular_format_enable",
+ flag_values = {":modular_format": "enable"},
+)
+
+# A flag to control whether LLVM libc is built in overlay or full build mode.
+string_flag(
+ name = "build_mode",
+ build_setting_default = "overlay",
+ values = [
+ "overlay", # Build over the system libc
+ "full", # Build as a standalone libc
+ ],
+)
+
+config_setting(
+ name = "full_build",
+ flag_values = {":build_mode": "full"},
+)
+
+config_setting(
+ name = "full_build_linux",
+ constraint_values = ["@platforms//os:linux"],
+ flag_values = {":build_mode": "full"},
+)
+
+########################### Header Generation ##################################
+
+py_binary(
+ name = "hdrgen",
+ srcs = glob(["utils/hdrgen/hdrgen/**/*.py"]),
+ imports = ["utils/hdrgen"],
+ main = "utils/hdrgen/hdrgen/main.py",
+ deps = ["@pyyaml//:yaml"],
+)
+
+############################### Support libraries ##############################
+
+alias(
+ name = "bfloat16", # Alias for test/src/math:bfloat16_test.
+ actual = "//libc/src/__support/FPUtil:bfloat16",
+)
+
+########################## externally shared targets ###########################
+
+alias(
+ name = "libcxx_shared_headers",
+ actual = "//libc/shared:libcxx_headers",
+)
+
+alias(
+ name = "libcxx_shared_headers_hdrs",
+ actual = "//libc/shared:libcxx_headers_hdrs",
+)
+
+alias(
+ name = "shared_math_headers_for_apfloat",
+ actual = "//libc/shared:math_headers_for_apfloat",
+)
+
+############################### errno ########################################
+
+alias(
+ name = "program_invocation_name",
+ actual = "//libc/src/errno:program_invocation_name",
+)
+
+alias(
+ name = "program_invocation_short_name",
+ actual = "//libc/src/errno:program_invocation_short_name",
+)
+
+############################### arpa/inet targets ##############################
+
+alias(
+ name = "htonl",
+ actual = "//libc/src/arpa/inet:htonl",
+)
+
+alias(
+ name = "htons",
+ actual = "//libc/src/arpa/inet:htons",
+)
+
+alias(
+ name = "inet_addr",
+ actual = "//libc/src/arpa/inet:inet_addr",
+)
+
+alias(
+ name = "inet_aton",
+ actual = "//libc/src/arpa/inet:inet_aton",
+)
+
+alias(
+ name = "inet_ntoa",
+ actual = "//libc/src/arpa/inet:inet_ntoa",
+)
+
+alias(
+ name = "inet_ntop",
+ actual = "//libc/src/arpa/inet:inet_ntop",
+)
+
+alias(
+ name = "inet_pton",
+ actual = "//libc/src/arpa/inet:inet_pton",
+)
+
+alias(
+ name = "ntohl",
+ actual = "//libc/src/arpa/inet:ntohl",
+)
+
+alias(
+ name = "ntohs",
+ actual = "//libc/src/arpa/inet:ntohs",
+)
+
+################################# ctype targets ################################
+
+alias(
+ name = "isalnum",
+ actual = "//libc/src/ctype:isalnum",
+)
+
+alias(
+ name = "isalpha",
+ actual = "//libc/src/ctype:isalpha",
+)
+
+alias(
+ name = "isascii",
+ actual = "//libc/src/ctype:isascii",
+)
+
+alias(
+ name = "isblank",
+ actual = "//libc/src/ctype:isblank",
+)
+
+alias(
+ name = "iscntrl",
+ actual = "//libc/src/ctype:iscntrl",
+)
+
+alias(
+ name = "isdigit",
+ actual = "//libc/src/ctype:isdigit",
+)
+
+alias(
+ name = "isgraph",
+ actual = "//libc/src/ctype:isgraph",
+)
+
+alias(
+ name = "islower",
+ actual = "//libc/src/ctype:islower",
+)
+
+alias(
+ name = "isprint",
+ actual = "//libc/src/ctype:isprint",
+)
+
+alias(
+ name = "ispunct",
+ actual = "//libc/src/ctype:ispunct",
+)
+
+alias(
+ name = "isspace",
+ actual = "//libc/src/ctype:isspace",
+)
+
+alias(
+ name = "isupper",
+ actual = "//libc/src/ctype:isupper",
+)
+
+alias(
+ name = "isxdigit",
+ actual = "//libc/src/ctype:isxdigit",
+)
+
+alias(
+ name = "toascii",
+ actual = "//libc/src/ctype:toascii",
+)
+
+alias(
+ name = "tolower",
+ actual = "//libc/src/ctype:tolower",
+)
+
+alias(
+ name = "toupper",
+ actual = "//libc/src/ctype:toupper",
+)
+
+################################ fenv targets ################################
+
+alias(
+ name = "fetestexcept",
+ actual = "//libc/src/fenv:fetestexcept",
+)
+
+alias(
+ name = "fetestexceptflag",
+ actual = "//libc/src/fenv:fetestexceptflag",
+)
+
+alias(
+ name = "feclearexcept",
+ actual = "//libc/src/fenv:feclearexcept",
+)
+
+alias(
+ name = "feraiseexcept",
+ actual = "//libc/src/fenv:feraiseexcept",
+)
+
+alias(
+ name = "fegetround",
+ actual = "//libc/src/fenv:fegetround",
+)
+
+alias(
+ name = "fesetround",
+ actual = "//libc/src/fenv:fesetround",
+)
+
+alias(
+ name = "fedisableexcept",
+ actual = "//libc/src/fenv:fedisableexcept",
+)
+
+alias(
+ name = "feenableexcept",
+ actual = "//libc/src/fenv:feenableexcept",
+)
+
+alias(
+ name = "fegetexcept",
+ actual = "//libc/src/fenv:fegetexcept",
+)
+
+alias(
+ name = "fegetenv",
+ actual = "//libc/src/fenv:fegetenv",
+)
+
+alias(
+ name = "fesetenv",
+ actual = "//libc/src/fenv:fesetenv",
+)
+
+alias(
+ name = "feupdateenv",
+ actual = "//libc/src/fenv:feupdateenv",
+)
+
+alias(
+ name = "fesetexcept",
+ actual = "//libc/src/fenv:fesetexcept",
+)
+
+alias(
+ name = "fegetexceptflag",
+ actual = "//libc/src/fenv:fegetexceptflag",
+)
+
+alias(
+ name = "fesetexceptflag",
+ actual = "//libc/src/fenv:fesetexceptflag",
+)
+
+alias(
+ name = "feholdexcept",
+ actual = "//libc/src/fenv:feholdexcept",
+)
+
+############################### complex targets ################################
+
+alias(
+ name = "cimag",
+ actual = "//libc/src/complex:cimag",
+)
+
+alias(
+ name = "cimagf",
+ actual = "//libc/src/complex:cimagf",
+)
+
+alias(
+ name = "cimagf128",
+ actual = "//libc/src/complex:cimagf128",
+)
+
+alias(
+ name = "cimagf16",
+ actual = "//libc/src/complex:cimagf16",
+)
+
+alias(
+ name = "cimagl",
+ actual = "//libc/src/complex:cimagl",
+)
+
+alias(
+ name = "conj",
+ actual = "//libc/src/complex:conj",
+)
+
+alias(
+ name = "conjf",
+ actual = "//libc/src/complex:conjf",
+)
+
+alias(
+ name = "conjf128",
+ actual = "//libc/src/complex:conjf128",
+)
+
+alias(
+ name = "conjf16",
+ actual = "//libc/src/complex:conjf16",
+)
+
+alias(
+ name = "conjl",
+ actual = "//libc/src/complex:conjl",
+)
+
+alias(
+ name = "cproj",
+ actual = "//libc/src/complex:cproj",
+)
+
+alias(
+ name = "cprojf",
+ actual = "//libc/src/complex:cprojf",
+)
+
+alias(
+ name = "cprojf128",
+ actual = "//libc/src/complex:cprojf128",
+)
+
+alias(
+ name = "cprojf16",
+ actual = "//libc/src/complex:cprojf16",
+)
+
+alias(
+ name = "cprojl",
+ actual = "//libc/src/complex:cprojl",
+)
+
+alias(
+ name = "creal",
+ actual = "//libc/src/complex:creal",
+)
+
+alias(
+ name = "crealf",
+ actual = "//libc/src/complex:crealf",
+)
+
+alias(
+ name = "crealf128",
+ actual = "//libc/src/complex:crealf128",
+)
+
+alias(
+ name = "crealf16",
+ actual = "//libc/src/complex:crealf16",
+)
+
+alias(
+ name = "creall",
+ actual = "//libc/src/complex:creall",
+)
+
+################################ link targets ##################################
+
+alias(
+ name = "_r_debug",
+ actual = "//libc/src/link:_r_debug",
+)
+
+################################ math targets ##################################
+
+[
+ alias(
+ name = name,
+ actual = "//libc/src/math:{}".format(name),
+ )
+ for name in [
+ "acos",
+ "acosbf16",
+ "acosf",
+ "acosf16",
+ "acoshf",
+ "acoshbf16",
+ "acoshf16",
+ "acospif",
+ "acospif16",
+ "asin",
+ "asinbf16",
+ "asinf",
+ "asinf16",
+ "asinhf",
+ "asinhf16",
+ "asinpi",
+ "asinpif",
+ "atanbf16",
+ "atanf",
+ "atanf16",
+ "atan",
+ "atan2f",
+ "atan2f128",
+ "atan2f16",
+ "atan2",
+ "atanhf",
+ "atanhf16",
+ "atanpif16",
+ "bf16add",
+ "bf16addf",
+ "bf16addl",
+ "bf16addf128",
+ "bf16div",
+ "bf16divl",
+ "bf16sub",
+ "bf16subf",
+ "bf16subf128",
+ "bf16subl",
+ "bf16fma",
+ "bf16fmaf",
+ "bf16fmaf128",
+ "bf16fmal",
+ "bf16mul",
+ "bf16mulf",
+ "bf16mulf128",
+ "bf16mull",
+ "bf16divf",
+ "bf16divf128",
+ "canonicalize",
+ "canonicalizef",
+ "canonicalizebf16",
+ "canonicalizel",
+ "canonicalizef128",
+ "canonicalizef80",
+ "canonicalizef16",
+ "fmaximumbf16",
+ "fmaximum_magbf16",
+ "fmaximum_numbf16",
+ "fminbf16",
+ "fminimumbf16",
+ "fminimum_magbf16",
+ "fminimum_mag_numbf16",
+ "fminimum_numbf16",
+ "frexpbf16",
+ "fromfpbf16",
+ "fromfpxbf16",
+ "ilogbbf16",
+ "iscanonical",
+ "iscanonicalbf16",
+ "iscanonicalf",
+ "iscanonicall",
+ "iscanonicalf128",
+ "iscanonicalf80",
+ "iscanonicalf16",
+ "isnan",
+ "isnanf",
+ "isnanf128",
+ "isnanf80",
+ "isnanl",
+ "isnanf16",
+ "issignaling",
+ "issignalingbf16",
+ "issignalingf",
+ "issignalingl",
+ "issignalingf128",
+ "issignalingf80",
+ "issignalingf16",
+ "cbrt",
+ "cbrtbf16",
+ "cbrtf",
+ "cbrtf16",
+ "ceil",
+ "ceilbf16",
+ "ceilf",
+ "ceill",
+ "ceilf128",
+ "ceilf16",
+ "copysign",
+ "copysignbf16",
+ "copysignf",
+ "copysignl",
+ "copysignf128",
+ "copysignf80",
+ "copysignf16",
+ "cos",
+ "cosbf16",
+ "cosf",
+ "cosf16",
+ "cosh",
+ "coshbf16",
+ "coshf",
+ "coshf16",
+ "cospif",
+ "cospif16",
+ "daddl",
+ "daddf128",
+ "ddivl",
+ "ddivf128",
+ "dfmal",
+ "dfmaf128",
+ "dmull",
+ "dmulf128",
+ "dsqrtl",
+ "dsqrtf128",
+ "dsubl",
+ "dsubf128",
+ "erff",
+ "erff16",
+ "erfcf16",
+ "exp",
+ "expf",
+ "expf16",
+ "expbf16",
+ "exp10",
+ "exp10f",
+ "exp10f16",
+ "exp10m1f16",
+ "exp10m1f",
+ "exp2",
+ "exp2bf16",
+ "exp2f",
+ "exp2f16",
+ "exp2m1f",
+ "exp2m1f16",
+ "expm1",
+ "expm1f",
+ "expm1f16",
+ "f16add",
+ "f16addf",
+ "f16addf128",
+ "f16addl",
+ "f16div",
+ "f16divf",
+ "f16divf128",
+ "f16divl",
+ "f16fma",
+ "f16fmaf",
+ "f16fmaf128",
+ "f16fmal",
+ "f16mul",
+ "f16mulf",
+ "f16mulf128",
+ "f16mull",
+ "f16sqrt",
+ "f16sqrtf",
+ "f16sqrtf128",
+ "f16sqrtl",
+ "f16sub",
+ "f16subf",
+ "f16subf128",
+ "f16subl",
+ "fabs",
+ "fabsbf16",
+ "fabsf",
+ "fabsl",
+ "fabsf128",
+ "fabsf80",
+ "fabsf16",
+ "fadd",
+ "faddl",
+ "faddf128",
+ "fdim",
+ "fdimbf16",
+ "fdimf",
+ "fdiml",
+ "fdimf128",
+ "fdimf80",
+ "fdimf16",
+ "fdiv",
+ "fdivl",
+ "fdivf128",
+ "ffma",
+ "ffmal",
+ "ffmaf128",
+ "floor",
+ "floorbf16",
+ "floorf",
+ "floorl",
+ "floorf128",
+ "floorf16",
+ "fma",
+ "fmaf",
+ "fmaf16",
+ "fmabf16",
+ "fmax",
+ "fmaxf",
+ "fmaxbf16",
+ "fmaxf128",
+ "fmaxf16",
+ "fmaxf80",
+ "fmaxl",
+ "fmaximum",
+ "fmaximumf",
+ "fmaximuml",
+ "fmaximumf128",
+ "fmaximumf16",
+ "fmaximumf80",
+ "fmaximum_mag",
+ "fmaximum_magf",
+ "fmaximum_magl",
+ "fmaximum_magf128",
+ "fmaximum_magf80",
+ "fmaximum_magf16",
+ "fmaximum_mag_num",
+ "fmaximum_mag_numbf16",
+ "fmaximum_mag_numf",
+ "fmaximum_mag_numl",
+ "fmaximum_mag_numf128",
+ "fmaximum_mag_numf80",
+ "fmaximum_mag_numf16",
+ "fmaximum_num",
+ "fmaximum_numf",
+ "fmaximum_numl",
+ "fmaximum_numf128",
+ "fmaximum_numf80",
+ "fmaximum_numf16",
+ "fmin",
+ "fminf",
+ "fminl",
+ "fminf128",
+ "fminf16",
+ "fminf80",
+ "fminimum",
+ "fminimumf",
+ "fminimuml",
+ "fminimumf128",
+ "fminimumf16",
+ "fminimumf80",
+ "fminimum_mag",
+ "fminimum_magf",
+ "fminimum_magl",
+ "fminimum_magf128",
+ "fminimum_magf80",
+ "fminimum_magf16",
+ "fminimum_mag_num",
+ "fminimum_mag_numf",
+ "fminimum_mag_numl",
+ "fminimum_mag_numf128",
+ "fminimum_mag_numf80",
+ "fminimum_mag_numf16",
+ "fminimum_num",
+ "fminimum_numf",
+ "fminimum_numl",
+ "fminimum_numf128",
+ "fminimum_numf80",
+ "fminimum_numf16",
+ "fmod",
+ "fmodbf16",
+ "fmodf",
+ "fmodl",
+ "fmodf128",
+ "fmodf16",
+ "fmul",
+ "fmull",
+ "fmulf128",
+ "frexp",
+ "frexpf",
+ "frexpl",
+ "frexpf128",
+ "frexpf16",
+ "fromfp",
+ "fromfpf",
+ "fromfpl",
+ "fromfpf128",
+ "fromfpf16",
+ "fromfpx",
+ "fromfpxf",
+ "fromfpxl",
+ "fromfpxf128",
+ "fromfpxf16",
+ "fsqrt",
+ "fsqrtl",
+ "fsqrtf128",
+ "fsub",
+ "fsubl",
+ "fsubf128",
+ "getpayload",
+ "getpayloadbf16",
+ "getpayloadf",
+ "getpayloadl",
+ "getpayloadf128",
+ "getpayloadf16",
+ "hypot",
+ "hypotf",
+ "hypotbf16",
+ "hypotf16",
+ "ilogb",
+ "ilogbf",
+ "ilogbl",
+ "ilogbf128",
+ "ilogbf16",
+ "ldexp",
+ "ldexpbf16",
+ "ldexpf",
+ "ldexpl",
+ "ldexpf128",
+ "ldexpf16",
+ "lgammaf",
+ "lgammaf16",
+ "llogb",
+ "llogbbf16",
+ "llogbf",
+ "llogbl",
+ "llogbf128",
+ "llogbf16",
+ "llrint",
+ "llrintbf16",
+ "llrintf",
+ "llrintl",
+ "llrintf128",
+ "llrintf16",
+ "llround",
+ "llroundbf16",
+ "llroundf",
+ "llroundl",
+ "llroundf128",
+ "llroundf16",
+ "log",
+ "logf",
+ "logf16",
+ "log10",
+ "log10f",
+ "log10f16",
+ "log10p1bf16",
+ "log10p1f16",
+ "log1p",
+ "log1pf",
+ "log2",
+ "log2f",
+ "log2f16",
+ "log2p1f16",
+ "logb",
+ "logbbf16",
+ "logbf",
+ "logbl",
+ "logbf128",
+ "logbf16",
+ "log_bf16",
+ "lrint",
+ "lrintbf16",
+ "lrintf",
+ "lrintl",
+ "lrintf128",
+ "lrintf16",
+ "lround",
+ "lroundbf16",
+ "lroundf",
+ "lroundl",
+ "lroundf128",
+ "lroundf16",
+ "modf",
+ "modfbf16",
+ "modff",
+ "modfl",
+ "modff128",
+ "modff16",
+ "nan",
+ "nanbf16",
+ "nanf",
+ "nanl",
+ "nanf128",
+ "nanf16",
+ "nearbyint",
+ "nearbyintbf16",
+ "nearbyintf",
+ "nearbyintl",
+ "nearbyintf128",
+ "nearbyintf16",
+ "nextafter",
+ "nextafterbf16",
+ "nextafterf",
+ "nextafterl",
+ "nextafterf128",
+ "nextafterf16",
+ "nextdown",
+ "nextdownbf16",
+ "nextdownf",
+ "nextdownl",
+ "nextdownf128",
+ "nextdownf16",
+ "nexttoward",
+ "nexttowardbf16",
+ "nexttowardf",
+ "nexttowardf16",
+ "nexttowardl",
+ "nextup",
+ "nextupf",
+ "nextupl",
+ "nextupf128",
+ "nextupf16",
+ "nextupbf16",
+ "pow",
+ "powf",
+ "remainder",
+ "remainderbf16",
+ "remainderf",
+ "remainderl",
+ "remainderf128",
+ "remainderf16",
+ "remquo",
+ "remquobf16",
+ "remquof",
+ "remquol",
+ "remquof128",
+ "remquof16",
+ "rint",
+ "rintbf16",
+ "rintf",
+ "rintl",
+ "rintf128",
+ "rintf16",
+ "round",
+ "roundbf16",
+ "roundevenbf16",
+ "roundf",
+ "roundl",
+ "roundf128",
+ "roundf16",
+ "roundeven",
+ "roundevenf",
+ "roundevenl",
+ "roundevenf128",
+ "roundevenf16",
+ "rsqrtf",
+ "rsqrtf16",
+ "scalbln",
+ "scalblnbf16",
+ "scalblnf",
+ "scalblnl",
+ "scalblnf128",
+ "scalblnf16",
+ "scalbn",
+ "scalbnbf16",
+ "scalbnf",
+ "scalbnl",
+ "scalbnf128",
+ "scalbnf16",
+ "setpayload",
+ "setpayloadbf16",
+ "setpayloadf",
+ "setpayloadl",
+ "setpayloadf128",
+ "setpayloadf16",
+ "setpayloadsig",
+ "setpayloadsigbf16",
+ "setpayloadsigf",
+ "setpayloadsigl",
+ "setpayloadsigf128",
+ "setpayloadsigf16",
+ "sin",
+ "sinbf16",
+ "sinf",
+ "sinf16",
+ "sincos",
+ "sincosf",
+ "sinh",
+ "sinhf",
+ "sinhbf16",
+ "sinhf16",
+ "sinpif",
+ "sinpif16",
+ "asinpif16",
+ "sqrt",
+ "sqrtbf16",
+ "sqrtf",
+ "sqrtl",
+ "sqrtf128",
+ "sqrtf16",
+ "tan",
+ "tanbf16",
+ "tanf",
+ "tanf16",
+ "tanh",
+ "tanhf",
+ "tanhf16",
+ "tanpif",
+ "tanpif16",
+ "totalorder",
+ "totalorderbf16",
+ "totalorderf",
+ "totalorderl",
+ "totalorderf128",
+ "totalorderf80",
+ "totalorderf16",
+ "totalordermag",
+ "totalordermagbf16",
+ "totalordermagf",
+ "totalordermagl",
+ "totalordermagf128",
+ "totalordermagf80",
+ "totalordermagf16",
+ "trunc",
+ "truncbf16",
+ "truncf",
+ "truncl",
+ "truncf128",
+ "truncf16",
+ "ufromfp",
+ "ufromfpbf16",
+ "ufromfpf",
+ "ufromfpl",
+ "ufromfpf128",
+ "ufromfpf16",
+ "ufromfpx",
+ "ufromfpxbf16",
+ "ufromfpxf",
+ "ufromfpxl",
+ "ufromfpxf128",
+ "ufromfpxf16",
+ ]
+]
+
+############################## inttypes targets ##############################
+
+alias(
+ name = "strtoimax",
+ actual = "//libc/src/inttypes:strtoimax",
+)
+
+alias(
+ name = "strtoumax",
+ actual = "//libc/src/inttypes:strtoumax",
+)
+
+alias(
+ name = "imaxabs",
+ actual = "//libc/src/inttypes:imaxabs",
+)
+
+alias(
+ name = "imaxdiv",
+ actual = "//libc/src/inttypes:imaxdiv",
+)
+
+############################### stdbit targets ###############################
+
+bit_suffix_list = [
+ "uc",
+ "us",
+ "ui",
+ "ul",
+ "ull",
+]
+
+bit_prefix_list = [
+ "stdc_bit_ceil_",
+ "stdc_bit_floor_",
+ "stdc_bit_width_",
+ "stdc_count_ones_",
+ "stdc_count_zeros_",
+ "stdc_first_leading_one_",
+ "stdc_first_leading_zero_",
+ "stdc_first_trailing_one_",
+ "stdc_first_trailing_zero_",
+ "stdc_has_single_bit_",
+ "stdc_leading_ones_",
+ "stdc_leading_zeros_",
+ "stdc_trailing_ones_",
+ "stdc_trailing_zeros_",
+]
+
+[
+ alias(
+ name = bit_prefix + bit_suffix,
+ actual = "//libc/src/stdbit:{}".format(bit_prefix + bit_suffix),
+ )
+ for bit_prefix in bit_prefix_list
+ for bit_suffix in bit_suffix_list
+]
+
+############################### stdlib targets ###############################
+
+alias(
+ name = "_Exit",
+ actual = "//libc/src/stdlib:_Exit",
+)
+
+alias(
+ name = "atexit",
+ actual = "//libc/src/stdlib:atexit",
+)
+
+alias(
+ name = "exit",
+ actual = "//libc/src/stdlib:exit",
+)
+
+alias(
+ name = "abs",
+ actual = "//libc/src/stdlib:abs",
+)
+
+alias(
+ name = "labs",
+ actual = "//libc/src/stdlib:labs",
+)
+
+alias(
+ name = "llabs",
+ actual = "//libc/src/stdlib:llabs",
+)
+
+alias(
+ name = "div",
+ actual = "//libc/src/stdlib:div",
+)
+
+alias(
+ name = "ldiv",
+ actual = "//libc/src/stdlib:ldiv",
+)
+
+alias(
+ name = "lldiv",
+ actual = "//libc/src/stdlib:lldiv",
+)
+
+alias(
+ name = "atoi",
+ actual = "//libc/src/stdlib:atoi",
+)
+
+alias(
+ name = "atol",
+ actual = "//libc/src/stdlib:atol",
+)
+
+alias(
+ name = "atoll",
+ actual = "//libc/src/stdlib:atoll",
+)
+
+alias(
+ name = "atof",
+ actual = "//libc/src/stdlib:atof",
+)
+
+alias(
+ name = "bsearch",
+ actual = "//libc/src/stdlib:bsearch",
+)
+
+alias(
+ name = "abort",
+ actual = "//libc/src/stdlib:abort",
+)
+
+alias(
+ name = "getenv",
+ actual = "//libc/src/stdlib:getenv",
+)
+
+alias(
+ name = "qsort",
+ actual = "//libc/src/stdlib:qsort",
+)
+
+alias(
+ name = "qsort_r",
+ actual = "//libc/src/stdlib:qsort_r",
+)
+
+alias(
+ name = "rand",
+ actual = "//libc/src/stdlib:rand",
+)
+
+alias(
+ name = "realpath",
+ actual = "//libc/src/stdlib:realpath",
+)
+
+alias(
+ name = "srand",
+ actual = "//libc/src/stdlib:srand",
+)
+
+alias(
+ name = "strfromf",
+ actual = "//libc/src/stdlib:strfromf",
+)
+
+alias(
+ name = "strfromf128",
+ actual = "//libc/src/stdlib:strfromf128",
+)
+
+alias(
+ name = "strfromd",
+ actual = "//libc/src/stdlib:strfromd",
+)
+
+alias(
+ name = "strfroml",
+ actual = "//libc/src/stdlib:strfroml",
+)
+
+alias(
+ name = "strtol",
+ actual = "//libc/src/stdlib:strtol",
+)
+
+alias(
+ name = "strtoll",
+ actual = "//libc/src/stdlib:strtoll",
+)
+
+alias(
+ name = "strtoul",
+ actual = "//libc/src/stdlib:strtoul",
+)
+
+alias(
+ name = "strtoull",
+ actual = "//libc/src/stdlib:strtoull",
+)
+
+alias(
+ name = "strtof",
+ actual = "//libc/src/stdlib:strtof",
+)
+
+alias(
+ name = "strtof128",
+ actual = "//libc/src/stdlib:strtof128",
+)
+
+alias(
+ name = "strtod",
+ actual = "//libc/src/stdlib:strtod",
+)
+
+alias(
+ name = "strtold",
+ actual = "//libc/src/stdlib:strtold",
+)
+
+############################### string targets ###############################
+
+alias(
+ name = "index",
+ actual = "//libc/src/strings:index",
+)
+
+alias(
+ name = "rindex",
+ actual = "//libc/src/strings:rindex",
+)
+
+alias(
+ name = "memchr",
+ actual = "//libc/src/string:memchr",
+)
+
+alias(
+ name = "memcpy",
+ actual = "//libc/src/string:memcpy",
+)
+
+alias(
+ name = "memccpy",
+ actual = "//libc/src/string:memccpy",
+)
+
+alias(
+ name = "memset",
+ actual = "//libc/src/string:memset",
+)
+
+alias(
+ name = "memset_explicit",
+ actual = "//libc/src/string:memset_explicit",
+)
+
+alias(
+ name = "memmove",
+ actual = "//libc/src/string:memmove",
+)
+
+alias(
+ name = "memmem",
+ actual = "//libc/src/string:memmem",
+)
+
+alias(
+ name = "mempcpy",
+ actual = "//libc/src/string:mempcpy",
+)
+
+alias(
+ name = "bcopy",
+ actual = "//libc/src/strings:bcopy",
+)
+
+alias(
+ name = "memcmp",
+ actual = "//libc/src/string:memcmp",
+)
+
+alias(
+ name = "bcmp",
+ actual = "//libc/src/strings:bcmp",
+)
+
+alias(
+ name = "bzero",
+ actual = "//libc/src/strings:bzero",
+)
+
+alias(
+ name = "memrchr",
+ actual = "//libc/src/string:memrchr",
+)
+
+alias(
+ name = "stpcpy",
+ actual = "//libc/src/string:stpcpy",
+)
+
+alias(
+ name = "stpncpy",
+ actual = "//libc/src/string:stpncpy",
+)
+
+alias(
+ name = "strlen",
+ actual = "//libc/src/string:strlen",
+)
+
+alias(
+ name = "strsignal",
+ actual = "//libc/src/string:strsignal",
+)
+
+alias(
+ name = "strcpy",
+ actual = "//libc/src/string:strcpy",
+)
+
+alias(
+ name = "strlcpy",
+ actual = "//libc/src/string:strlcpy",
+)
+
+alias(
+ name = "strncpy",
+ actual = "//libc/src/string:strncpy",
+)
+
+alias(
+ name = "strcmp",
+ actual = "//libc/src/string:strcmp",
+)
+
+alias(
+ name = "strncmp",
+ actual = "//libc/src/string:strncmp",
+)
+
+alias(
+ name = "strcasecmp",
+ actual = "//libc/src/strings:strcasecmp",
+)
+
+alias(
+ name = "strncasecmp",
+ actual = "//libc/src/strings:strncasecmp",
+)
+
+alias(
+ name = "strchr",
+ actual = "//libc/src/string:strchr",
+)
+
+alias(
+ name = "strrchr",
+ actual = "//libc/src/string:strrchr",
+)
+
+alias(
+ name = "strchrnul",
+ actual = "//libc/src/string:strchrnul",
+)
+
+alias(
+ name = "strsep",
+ actual = "//libc/src/string:strsep",
+)
+
+alias(
+ name = "strstr",
+ actual = "//libc/src/string:strstr",
+)
+
+alias(
+ name = "strcasestr",
+ actual = "//libc/src/string:strcasestr",
+)
+
+alias(
+ name = "strcat",
+ actual = "//libc/src/string:strcat",
+)
+
+alias(
+ name = "strlcat",
+ actual = "//libc/src/string:strlcat",
+)
+
+alias(
+ name = "strncat",
+ actual = "//libc/src/string:strncat",
+)
+
+alias(
+ name = "strnlen",
+ actual = "//libc/src/string:strnlen",
+)
+
+alias(
+ name = "strcspn",
+ actual = "//libc/src/string:strcspn",
+)
+
+alias(
+ name = "strdup",
+ actual = "//libc/src/string:strdup",
+)
+
+alias(
+ name = "strndup",
+ actual = "//libc/src/string:strndup",
+)
+
+alias(
+ name = "strerror",
+ actual = "//libc/src/string:strerror",
+)
+
+alias(
+ name = "strerror_r",
+ actual = "//libc/src/string:strerror_r",
+)
+
+alias(
+ name = "strspn",
+ actual = "//libc/src/string:strspn",
+)
+
+alias(
+ name = "strpbrk",
+ actual = "//libc/src/string:strpbrk",
+)
+
+alias(
+ name = "strtok",
+ actual = "//libc/src/string:strtok",
+)
+
+alias(
+ name = "strtok_r",
+ actual = "//libc/src/string:strtok_r",
+)
+
+################################ fcntl targets #################################
+
+alias(
+ name = "open",
+ actual = "//libc/src/fcntl:open",
+)
+
+alias(
+ name = "fcntl",
+ actual = "//libc/src/fcntl",
+)
+
+alias(
+ name = "openat",
+ actual = "//libc/src/fcntl:openat",
+)
+
+alias(
+ name = "creat",
+ actual = "//libc/src/fcntl:creat",
+)
+
+################################ time targets ##################################
+
+################################ unistd targets ################################
+
+alias(
+ name = "clock",
+ actual = "//libc/src/time:clock",
+)
+
+alias(
+ name = "access",
+ actual = "//libc/src/unistd:access",
+)
+
+alias(
+ name = "chdir",
+ actual = "//libc/src/unistd:chdir",
+)
+
+alias(
+ name = "chown",
+ actual = "//libc/src/unistd:chown",
+)
+
+alias(
+ name = "close",
+ actual = "//libc/src/unistd:close",
+)
+
+alias(
+ name = "dup",
+ actual = "//libc/src/unistd:dup",
+)
+
+alias(
+ name = "dup2",
+ actual = "//libc/src/unistd:dup2",
+)
+
+alias(
+ name = "dup3",
+ actual = "//libc/src/unistd:dup3",
+)
+
+alias(
+ name = "environ",
+ actual = "//libc/src/unistd:environ",
+)
+
+alias(
+ name = "fchdir",
+ actual = "//libc/src/unistd:fchdir",
+)
+
+alias(
+ name = "getcpu",
+ actual = "//libc/src/sched:getcpu",
+)
+
+alias(
+ name = "sched_getcpu",
+ actual = "//libc/src/sched:sched_getcpu",
+)
+
+alias(
+ name = "sched_get_priority_max",
+ actual = "//libc/src/sched:sched_get_priority_max",
+)
+
+alias(
+ name = "sched_get_priority_min",
+ actual = "//libc/src/sched:sched_get_priority_min",
+)
+
+alias(
+ name = "sched_getparam",
+ actual = "//libc/src/sched:sched_getparam",
+)
+
+alias(
+ name = "sched_getscheduler",
+ actual = "//libc/src/sched:sched_getscheduler",
+)
+
+alias(
+ name = "sched_rr_get_interval",
+ actual = "//libc/src/sched:sched_rr_get_interval",
+)
+
+alias(
+ name = "sched_setaffinity",
+ actual = "//libc/src/sched:sched_setaffinity",
+)
+
+alias(
+ name = "sched_setparam",
+ actual = "//libc/src/sched:sched_setparam",
+)
+
+alias(
+ name = "sched_setscheduler",
+ actual = "//libc/src/sched:sched_setscheduler",
+)
+
+alias(
+ name = "sched_yield",
+ actual = "//libc/src/sched:sched_yield",
+)
+
+alias(
+ name = "fchown",
+ actual = "//libc/src/unistd:fchown",
+)
+
+alias(
+ name = "fsync",
+ actual = "//libc/src/unistd:fsync",
+)
+
+alias(
+ name = "ftruncate",
+ actual = "//libc/src/unistd:ftruncate",
+)
+
+alias(
+ name = "getcwd",
+ actual = "//libc/src/unistd:getcwd",
+)
+
+alias(
+ name = "geteuid",
+ actual = "//libc/src/unistd:geteuid",
+)
+
+alias(
+ name = "gethostname",
+ actual = "//libc/src/unistd:gethostname",
+)
+
+alias(
+ name = "getpagesize",
+ actual = "//libc/src/unistd:getpagesize",
+)
+
+alias(
+ name = "getpid",
+ actual = "//libc/src/unistd:getpid",
+)
+
+alias(
+ name = "getppid",
+ actual = "//libc/src/unistd:getppid",
+)
+
+alias(
+ name = "fork",
+ actual = "//libc/src/unistd:fork",
+)
+
+alias(
+ name = "poll",
+ actual = "//libc/src/poll",
+)
+
+alias(
+ name = "kill",
+ actual = "//libc/src/signal:kill",
+)
+
+alias(
+ name = "sigaction",
+ actual = "//libc/src/signal:sigaction",
+)
+
+alias(
+ name = "sigaltstack",
+ actual = "//libc/src/signal:sigaltstack",
+)
+
+alias(
+ name = "signal",
+ actual = "//libc/src/signal",
+)
+
+alias(
+ name = "waitpid",
+ actual = "//libc/src/sys/wait:waitpid",
+)
+
+alias(
+ name = "getsid",
+ actual = "//libc/src/unistd:getsid",
+)
+
+alias(
+ name = "getuid",
+ actual = "//libc/src/unistd:getuid",
+)
+
+alias(
+ name = "getegid",
+ actual = "//libc/src/unistd:getegid",
+)
+
+alias(
+ name = "getgid",
+ actual = "//libc/src/unistd:getgid",
+)
+
+# libc_function(
+# name = "getopt",
+# srcs = ["src/unistd/getopt.cpp"],
+# hdrs = ["src/unistd/getopt.h"],
+# deps = [
+# ":__support_common",
+# ":__support_cpp_optional",
+# ":__support_cpp_string_view",
+# ":__support_file_file",
+# ":__support_osutil_syscall",
+# ":errno",
+# ":hdr_unistd_macros",
+# ],
+# )
+
+alias(
+ name = "isatty",
+ actual = "//libc/src/unistd:isatty",
+)
+
+alias(
+ name = "link",
+ actual = "//libc/src/unistd:link",
+)
+
+alias(
+ name = "linkat",
+ actual = "//libc/src/unistd:linkat",
+)
+
+alias(
+ name = "pipe",
+ actual = "//libc/src/unistd:pipe",
+)
+
+alias(
+ name = "lseek",
+ actual = "//libc/src/unistd:lseek",
+)
+
+alias(
+ name = "pread",
+ actual = "//libc/src/unistd:pread",
+)
+
+alias(
+ name = "pwrite",
+ actual = "//libc/src/unistd:pwrite",
+)
+
+alias(
+ name = "read",
+ actual = "//libc/src/unistd:read",
+)
+
+alias(
+ name = "readlink",
+ actual = "//libc/src/unistd:readlink",
+)
+
+alias(
+ name = "readlinkat",
+ actual = "//libc/src/unistd:readlinkat",
+)
+
+alias(
+ name = "rmdir",
+ actual = "//libc/src/unistd:rmdir",
+)
+
+alias(
+ name = "setsid",
+ actual = "//libc/src/unistd:setsid",
+)
+
+alias(
+ name = "symlink",
+ actual = "//libc/src/unistd:symlink",
+)
+
+alias(
+ name = "symlinkat",
+ actual = "//libc/src/unistd:symlinkat",
+)
+
+#TODO: Enable once fullbuild is added to bazel, since this depends on a macro
+# definition in the public header
+
+# libc_function(
+# name = "syscall",
+# srcs = ["src/unistd/linux/syscall.cpp"],
+# hdrs = ["src/unistd/syscall.h"],
+# deps = [
+# ":__support_common",
+# ":__support_osutil_syscall",
+# ":errno",
+# ":hdr_unistd_macros",
+# ],
+# )
+
+alias(
+ name = "swab",
+ actual = "//libc/src/unistd:swab",
+)
+
+alias(
+ name = "truncate",
+ actual = "//libc/src/unistd:truncate",
+)
+
+alias(
+ name = "unlink",
+ actual = "//libc/src/unistd:unlink",
+)
+
+alias(
+ name = "unlinkat",
+ actual = "//libc/src/unistd:unlinkat",
+)
+
+alias(
+ name = "sysconf",
+ actual = "//libc/src/unistd:sysconf",
+)
+
+alias(
+ name = "write",
+ actual = "//libc/src/unistd:write",
+)
+
+################################ stdio targets #################################
+
+alias(
+ name = "fflush",
+ actual = "//libc/src/stdio:fflush",
+)
+
+alias(
+ name = "fclose",
+ actual = "//libc/src/stdio:fclose",
+)
+
+alias(
+ name = "fopen",
+ actual = "//libc/src/stdio:fopen",
+)
+
+alias(
+ name = "fread",
+ actual = "//libc/src/stdio:fread",
+)
+
+alias(
+ name = "fwrite",
+ actual = "//libc/src/stdio:fwrite",
+)
+
+alias(
+ name = "feof",
+ actual = "//libc/src/stdio:feof",
+)
+
+alias(
+ name = "ferror",
+ actual = "//libc/src/stdio:ferror",
+)
+
+alias(
+ name = "asprintf",
+ actual = "//libc/src/stdio:asprintf",
+)
+
+alias(
+ name = "sprintf",
+ actual = "//libc/src/stdio:sprintf",
+)
+
+alias(
+ name = "snprintf",
+ actual = "//libc/src/stdio:snprintf",
+)
+
+alias(
+ name = "printf",
+ actual = "//libc/src/stdio:printf",
+)
+
+alias(
+ name = "fprintf",
+ actual = "//libc/src/stdio:fprintf",
+)
+
+alias(
+ name = "vasprintf",
+ actual = "//libc/src/stdio:vasprintf",
+)
+
+alias(
+ name = "vsprintf",
+ actual = "//libc/src/stdio:vsprintf",
+)
+
+alias(
+ name = "vsnprintf",
+ actual = "//libc/src/stdio:vsnprintf",
+)
+
+alias(
+ name = "vprintf",
+ actual = "//libc/src/stdio:vprintf",
+)
+
+alias(
+ name = "vfprintf",
+ actual = "//libc/src/stdio:vfprintf",
+)
+
+alias(
+ name = "scanf",
+ actual = "//libc/src/stdio:scanf",
+)
+
+alias(
+ name = "vscanf",
+ actual = "//libc/src/stdio:vscanf",
+)
+
+alias(
+ name = "fscanf",
+ actual = "//libc/src/stdio:fscanf",
+)
+
+alias(
+ name = "vfscanf",
+ actual = "//libc/src/stdio:vfscanf",
+)
+
+alias(
+ name = "sscanf",
+ actual = "//libc/src/stdio:sscanf",
+)
+
+alias(
+ name = "vsscanf",
+ actual = "//libc/src/stdio:vsscanf",
+)
+
+alias(
+ name = "remove",
+ actual = "//libc/src/stdio:remove",
+)
+
+alias(
+ name = "rename",
+ actual = "//libc/src/stdio:rename",
+)
+
+############################### sys/mman targets ###############################
+
+alias(
+ name = "madvise",
+ actual = "//libc/src/sys/mman:madvise",
+)
+
+alias(
+ name = "mincore",
+ actual = "//libc/src/sys/mman:mincore",
+)
+
+alias(
+ name = "mlock",
+ actual = "//libc/src/sys/mman:mlock",
+)
+
+alias(
+ name = "mlock2",
+ actual = "//libc/src/sys/mman:mlock2",
+)
+
+alias(
+ name = "mlockall",
+ actual = "//libc/src/sys/mman:mlockall",
+)
+
+alias(
+ name = "mmap",
+ actual = "//libc/src/sys/mman:mmap",
+)
+
+alias(
+ name = "mprotect",
+ actual = "//libc/src/sys/mman:mprotect",
+)
+
+alias(
+ name = "mremap",
+ actual = "//libc/src/sys/mman:mremap",
+)
+
+alias(
+ name = "msync",
+ actual = "//libc/src/sys/mman:msync",
+)
+
+alias(
+ name = "munlock",
+ actual = "//libc/src/sys/mman:munlock",
+)
+
+alias(
+ name = "munlockall",
+ actual = "//libc/src/sys/mman:munlockall",
+)
+
+alias(
+ name = "munmap",
+ actual = "//libc/src/sys/mman:munmap",
+)
+
+alias(
+ name = "memfd_create",
+ actual = "//libc/src/sys/mman:memfd_create",
+)
+
+alias(
+ name = "pkey_alloc",
+ actual = "//libc/src/sys/mman:pkey_alloc",
+)
+
+alias(
+ name = "pkey_free",
+ actual = "//libc/src/sys/mman:pkey_free",
+)
+
+alias(
+ name = "pkey_get",
+ actual = "//libc/src/sys/mman:pkey_get",
+)
+
+alias(
+ name = "pkey_mprotect",
+ actual = "//libc/src/sys/mman:pkey_mprotect",
+)
+
+alias(
+ name = "pkey_set",
+ actual = "//libc/src/sys/mman:pkey_set",
+)
+
+alias(
+ name = "posix_madvise",
+ actual = "//libc/src/sys/mman:posix_madvise",
+)
+
+alias(
+ name = "remap_file_pages",
+ actual = "//libc/src/sys/mman:remap_file_pages",
+)
+
+alias(
+ name = "shm_open",
+ actual = "//libc/src/sys/mman:shm_open",
+)
+
+alias(
+ name = "shm_unlink",
+ actual = "//libc/src/sys/mman:shm_unlink",
+)
+
+############################# sys/random targets #############################
+
+alias(
+ name = "getrandom",
+ actual = "//libc/src/sys/random:getrandom",
+)
+
+############################## sys/prctl targets ##############################
+
+alias(
+ name = "prctl",
+ actual = "//libc/src/sys/prctl",
+)
+
+############################# sys/resource targets #############################
+
+alias(
+ name = "getrlimit",
+ actual = "//libc/src/sys/resource:getrlimit",
+)
+
+alias(
+ name = "setrlimit",
+ actual = "//libc/src/sys/resource:setrlimit",
+)
+
+############################### sys/sem targets ################################
+
+alias(
+ name = "semctl",
+ actual = "//libc/src/sys/sem:semctl",
+)
+
+alias(
+ name = "semget",
+ actual = "//libc/src/sys/sem:semget",
+)
+
+alias(
+ name = "semop",
+ actual = "//libc/src/sys/sem:semop",
+)
+
+############################# sys/sendfile targets #############################
+
+alias(
+ name = "sendfile",
+ actual = "//libc/src/sys/sendfile",
+)
+
+############################### sys/stat targets ###############################
+
+alias(
+ name = "mkdir",
+ actual = "//libc/src/sys/stat:mkdir",
+)
+
+alias(
+ name = "mkdirat",
+ actual = "//libc/src/sys/stat:mkdirat",
+)
+
+############################## sys/socket targets ##############################
+
+alias(
+ name = "accept",
+ actual = "//libc/src/sys/socket:accept",
+)
+
+alias(
+ name = "accept4",
+ actual = "//libc/src/sys/socket:accept4",
+)
+
+alias(
+ name = "bind",
+ actual = "//libc/src/sys/socket:bind",
+)
+
+alias(
+ name = "connect",
+ actual = "//libc/src/sys/socket:connect",
+)
+
+alias(
+ name = "getpeername",
+ actual = "//libc/src/sys/socket:getpeername",
+)
+
+alias(
+ name = "getsockname",
+ actual = "//libc/src/sys/socket:getsockname",
+)
+
+alias(
+ name = "getsockopt",
+ actual = "//libc/src/sys/socket:getsockopt",
+)
+
+alias(
+ name = "listen",
+ actual = "//libc/src/sys/socket:listen",
+)
+
+alias(
+ name = "recv",
+ actual = "//libc/src/sys/socket:recv",
+)
+
+alias(
+ name = "recvfrom",
+ actual = "//libc/src/sys/socket:recvfrom",
+)
+
+alias(
+ name = "recvmmsg",
+ actual = "//libc/src/sys/socket:recvmmsg",
+)
+
+alias(
+ name = "recvmsg",
+ actual = "//libc/src/sys/socket:recvmsg",
+)
+
+alias(
+ name = "send",
+ actual = "//libc/src/sys/socket:send",
+)
+
+alias(
+ name = "sendmmsg",
+ actual = "//libc/src/sys/socket:sendmmsg",
+)
+
+alias(
+ name = "sendmsg",
+ actual = "//libc/src/sys/socket:sendmsg",
+)
+
+alias(
+ name = "sendto",
+ actual = "//libc/src/sys/socket:sendto",
+)
+
+alias(
+ name = "setsockopt",
+ actual = "//libc/src/sys/socket:setsockopt",
+)
+
+alias(
+ name = "shutdown",
+ actual = "//libc/src/sys/socket:shutdown",
+)
+
+alias(
+ name = "sockatmark",
+ actual = "//libc/src/sys/socket:sockatmark",
+)
+
+alias(
+ name = "socket",
+ actual = "//libc/src/sys/socket",
+)
+
+alias(
+ name = "socketpair",
+ actual = "//libc/src/sys/socket:socketpair",
+)
+
+############################### sys/uio targets ################################
+
+alias(
+ name = "readv",
+ actual = "//libc/src/sys/uio:readv",
+)
+
+alias(
+ name = "writev",
+ actual = "//libc/src/sys/uio:writev",
+)
+
+############################# sys/utsname targets ##############################
+
+alias(
+ name = "uname",
+ actual = "//libc/src/sys/utsname:uname",
+)
+
+############################## sys/epoll targets ###############################
+
+alias(
+ name = "epoll_create",
+ actual = "//libc/src/sys/epoll:epoll_create",
+)
+
+alias(
+ name = "epoll_create1",
+ actual = "//libc/src/sys/epoll:epoll_create1",
+)
+
+alias(
+ name = "epoll_ctl",
+ actual = "//libc/src/sys/epoll:epoll_ctl",
+)
+
+alias(
+ name = "epoll_pwait",
+ actual = "//libc/src/sys/epoll:epoll_pwait",
+)
+
+alias(
+ name = "epoll_pwait2",
+ actual = "//libc/src/sys/epoll:epoll_pwait2",
+)
+
+alias(
+ name = "epoll_wait",
+ actual = "//libc/src/sys/epoll:epoll_wait",
+)
+
+############################## wchar targets ###############################
+
+alias(
+ name = "btowc",
+ actual = "//libc/src/wchar:btowc",
+)
+
+alias(
+ name = "wcpcpy",
+ actual = "//libc/src/wchar:wcpcpy",
+)
+
+alias(
+ name = "wcpncpy",
+ actual = "//libc/src/wchar:wcpncpy",
+)
+
+alias(
+ name = "wcscat",
+ actual = "//libc/src/wchar:wcscat",
+)
+
+alias(
+ name = "wcschr",
+ actual = "//libc/src/wchar:wcschr",
+)
+
+alias(
+ name = "wcscmp",
+ actual = "//libc/src/wchar:wcscmp",
+)
+
+alias(
+ name = "wcscpy",
+ actual = "//libc/src/wchar:wcscpy",
+)
+
+alias(
+ name = "wcscspn",
+ actual = "//libc/src/wchar:wcscspn",
+)
+
+alias(
+ name = "wcslcat",
+ actual = "//libc/src/wchar:wcslcat",
+)
+
+alias(
+ name = "wcslcpy",
+ actual = "//libc/src/wchar:wcslcpy",
+)
+
+alias(
+ name = "wcslen",
+ actual = "//libc/src/wchar:wcslen",
+)
+
+alias(
+ name = "wcsncat",
+ actual = "//libc/src/wchar:wcsncat",
+)
+
+alias(
+ name = "wcsncmp",
+ actual = "//libc/src/wchar:wcsncmp",
+)
+
+alias(
+ name = "wcsncpy",
+ actual = "//libc/src/wchar:wcsncpy",
+)
+
+alias(
+ name = "wcspbrk",
+ actual = "//libc/src/wchar:wcspbrk",
+)
+
+alias(
+ name = "wcsrchr",
+ actual = "//libc/src/wchar:wcsrchr",
+)
+
+alias(
+ name = "wcsspn",
+ actual = "//libc/src/wchar:wcsspn",
+)
+
+alias(
+ name = "wcsstr",
+ actual = "//libc/src/wchar:wcsstr",
+)
+
+alias(
+ name = "wctob",
+ actual = "//libc/src/wchar:wctob",
+)
+
+alias(
+ name = "wmemchr",
+ actual = "//libc/src/wchar:wmemchr",
+)
+
+alias(
+ name = "wmemcmp",
+ actual = "//libc/src/wchar:wmemcmp",
+)
+
+alias(
+ name = "wmemcpy",
+ actual = "//libc/src/wchar:wmemcpy",
+)
+
+alias(
+ name = "wmemmove",
+ actual = "//libc/src/wchar:wmemmove",
+)
+
+alias(
+ name = "wmempcpy",
+ actual = "//libc/src/wchar:wmempcpy",
+)
+
+alias(
+ name = "wmemset",
+ actual = "//libc/src/wchar:wmemset",
+)
diff --git a/utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel
index a28e38504b88fe..b3c5d221edadfe 100644
--- a/utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel
@@ -3192,6 +3192,22 @@ libc_support_library(
],
)
+libc_support_library(
+ name = "cosbf16",
+ hdrs = ["cosbf16.h"],
+ deps = [
+ ":sincosf_utils",
+ "//libc/hdr:errno_macros",
+ "//libc/hdr:fenv_macros",
+ "//libc/src/__support/FPUtil:bfloat16",
+ "//libc/src/__support/FPUtil:cast",
+ "//libc/src/__support/FPUtil:fenv_impl",
+ "//libc/src/__support/FPUtil:fp_bits",
+ "//libc/src/__support/FPUtil:multiply_add",
+ "//libc/src/__support/macros:optimization",
+ ],
+)
+
libc_support_library(
name = "cosf",
hdrs = [
diff --git a/utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel
index ed405ad161f95c..f999de00e099d0 100644
--- a/utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel
@@ -707,6 +707,13 @@ libc_math_function(
],
)
+libc_math_function(
+ name = "cosbf16",
+ additional_deps = [
+ "//libc/src/__support/math:cosbf16",
+ ],
+)
+
libc_math_function(
name = "cosf",
additional_deps = ["//libc/src/__support/math:cosf"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
index 333862f4596d08..938b19f5f5e73e 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
@@ -180,6 +180,13 @@ math_mpfr_test(
math_mpfr_test(name = "cos")
+math_mpfr_test(
+ name = "cosbf16",
+ deps = [
+ "//libc/src/__support/FPUtil:bfloat16",
+ ],
+)
+
math_mpfr_test(
name = "cosf",
hdrs = ["sdcomp26094.h"],
diff --git a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
index ce56ed23fdf071..bfb8c1cdcad462 100644
--- a/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel
@@ -330,6 +330,13 @@ math_test(
math_test(name = "cos")
+math_test(
+ name = "cosbf16",
+ deps = [
+ "//libc/src/__support/FPUtil:bfloat16",
+ ],
+)
+
math_test(name = "cosf")
math_test(
More information about the libc-commits
mailing list