[libc-commits] [libc] [llvm] [libc][math] Implement isnanbf16 function (PR #238777)
Vaibhav Agrawal via libc-commits
libc-commits at lists.llvm.org
Fri Nov 13 22:27:41 PST 2026
https://github.com/competitive-programmer04 updated https://github.com/llvm/llvm-project/pull/238777
>From b76d349374829ea7a181a9047617141e8672fcc7 Mon Sep 17 00:00:00 2001
From: competitive-programmer04 <coder8809 at gmail.com>
Date: Wed, 4 Nov 2026 18:18:52 +0530
Subject: [PATCH 1/2] [libc][math] Implement isnanbf16 function
Add support for the isnanbf16 function for bfloat16 floating point type.
Uses fputil::FPBits<bfloat16>::is_nan() for the underlying implementation.
Includes unit smoke tests covering special constants (NaNs, infinities, zeros, subnormals) and rounded numbers.
---
libc/config/baremetal/aarch64/entrypoints.txt | 1 +
libc/config/baremetal/arm/entrypoints.txt | 1 +
libc/config/baremetal/hexagon/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/freebsd/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 +
libc/shared/math.h | 1 +
libc/shared/math/isnanbf16.h | 21 +
libc/src/__support/math/CMakeLists.txt | 10 +
libc/src/__support/math/isnanbf16.h | 27 +
libc/src/math/CMakeLists.txt | 1 +
libc/src/math/generic/CMakeLists.txt | 10 +
libc/src/math/generic/isnanbf16.cpp | 15 +
libc/src/math/isnanbf16.h | 22 +
libc/test/shared/CMakeLists.txt | 1 +
.../shared/shared_math_constexpr_test.cpp | 1 +
libc/test/shared/shared_math_test.cpp | 1 +
libc/test/src/math/smoke/CMakeLists.txt | 13 +
libc/test/src/math/smoke/isnanbf16_test.cpp | 15 +
.../llvm-project-overlay/libc/BUILD.bazel | 7550 ++++++++++++++++-
.../libc/test/src/math/smoke/BUILD.bazel | 8 +
29 files changed, 7535 insertions(+), 175 deletions(-)
create mode 100644 libc/shared/math/isnanbf16.h
create mode 100644 libc/src/__support/math/isnanbf16.h
create mode 100644 libc/src/math/generic/isnanbf16.cpp
create mode 100644 libc/src/math/isnanbf16.h
create mode 100644 libc/test/src/math/smoke/isnanbf16_test.cpp
diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index 0fb0107bca1883..baeb8689e98e73 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -734,6 +734,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index 89f02bdd938d62..0ed4f143bade94 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -746,6 +746,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/baremetal/hexagon/entrypoints.txt b/libc/config/baremetal/hexagon/entrypoints.txt
index 891b563e8c91e1..ebabf073a207ed 100644
--- a/libc/config/baremetal/hexagon/entrypoints.txt
+++ b/libc/config/baremetal/hexagon/entrypoints.txt
@@ -685,6 +685,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index b0ff79e477d94a..d62f6affbff530 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -737,6 +737,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/darwin/aarch64/entrypoints.txt b/libc/config/darwin/aarch64/entrypoints.txt
index c987b82e262835..e676715bbee4bc 100644
--- a/libc/config/darwin/aarch64/entrypoints.txt
+++ b/libc/config/darwin/aarch64/entrypoints.txt
@@ -556,6 +556,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/darwin/x86_64/entrypoints.txt b/libc/config/darwin/x86_64/entrypoints.txt
index 671cdb575d2721..8ff43f3e40e4e8 100644
--- a/libc/config/darwin/x86_64/entrypoints.txt
+++ b/libc/config/darwin/x86_64/entrypoints.txt
@@ -338,6 +338,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/freebsd/x86_64/entrypoints.txt b/libc/config/freebsd/x86_64/entrypoints.txt
index 212978537bdc14..34124330c65c31 100644
--- a/libc/config/freebsd/x86_64/entrypoints.txt
+++ b/libc/config/freebsd/x86_64/entrypoints.txt
@@ -628,6 +628,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt
index 3a9a5bfb8d27df..30af20b3edfc5c 100644
--- a/libc/config/gpu/amdgpu/entrypoints.txt
+++ b/libc/config/gpu/amdgpu/entrypoints.txt
@@ -671,6 +671,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt
index e5400773ee22f2..76335a6722139a 100644
--- a/libc/config/gpu/nvptx/entrypoints.txt
+++ b/libc/config/gpu/nvptx/entrypoints.txt
@@ -669,6 +669,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index 291b11da09d6ad..b481941831d256 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -993,6 +993,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/linux/arm/entrypoints.txt b/libc/config/linux/arm/entrypoints.txt
index 2927e66c631d0b..a2b02939ce5e9a 100644
--- a/libc/config/linux/arm/entrypoints.txt
+++ b/libc/config/linux/arm/entrypoints.txt
@@ -734,6 +734,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index b8082355d8c5af..07107dd6c2d2cb 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -1089,6 +1089,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 59d5a4ab376732..3adf86533289de 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -1089,6 +1089,7 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
diff --git a/libc/config/windows/entrypoints.txt b/libc/config/windows/entrypoints.txt
index 8c0df83a707723..e086ac44c320d5 100644
--- a/libc/config/windows/entrypoints.txt
+++ b/libc/config/windows/entrypoints.txt
@@ -438,6 +438,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/shared/math.h b/libc/shared/math.h
index 56654666305c52..3bcd333c5248f3 100644
--- a/libc/shared/math.h
+++ b/libc/shared/math.h
@@ -311,6 +311,7 @@
#include "math/iscanonicall.h"
// TODO: isnan is a macro in <math.h>
// #include "math/isnan.h"
+#include "math/isnanbf16.h"
#include "math/isnanf.h"
#include "math/isnanf128.h"
#include "math/isnanf16.h"
diff --git a/libc/shared/math/isnanbf16.h b/libc/shared/math/isnanbf16.h
new file mode 100644
index 00000000000000..528a45f86b880b
--- /dev/null
+++ b/libc/shared/math/isnanbf16.h
@@ -0,0 +1,21 @@
+//===-- Shared isnanbf16 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_ISNANBF16_H
+#define LLVM_LIBC_SHARED_MATH_ISNANBF16_H
+
+#include "shared/libc_common.h"
+#include "src/__support/math/isnanbf16.h"
+
+namespace LIBC_NAMESPACE_DECL {
+namespace shared {
+using math::isnanbf16;
+} // namespace shared
+} // namespace LIBC_NAMESPACE_DECL
+#endif // LLVM_LIBC_SHARED_MATH_ISNANBF16_H
diff --git a/libc/src/__support/math/CMakeLists.txt b/libc/src/__support/math/CMakeLists.txt
index 9e9d149e350d95..d428c6cec88f71 100644
--- a/libc/src/__support/math/CMakeLists.txt
+++ b/libc/src/__support/math/CMakeLists.txt
@@ -1896,6 +1896,16 @@ add_header_library(
libc.src.__support.macros.config
)
+add_header_library(
+ isnanbf16
+ HDRS
+ isnanbf16.h
+ DEPENDS
+ libc.src.__support.FPUtil.bfloat16
+ libc.src.__support.FPUtil.fp_bits
+ libc.src.__support.macros.config
+)
+
add_header_library(
issignaling
HDRS
diff --git a/libc/src/__support/math/isnanbf16.h b/libc/src/__support/math/isnanbf16.h
new file mode 100644
index 00000000000000..48e6af724f9ba2
--- /dev/null
+++ b/libc/src/__support/math/isnanbf16.h
@@ -0,0 +1,27 @@
+//===-- Implementation header for isnanbf16 ----------------------*- 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_ISNANBF16_H
+#define LLVM_LIBC_SRC___SUPPORT_MATH_ISNANBF16_H
+
+#include "src/__support/FPUtil/FPBits.h"
+#include "src/__support/FPUtil/bfloat16.h"
+#include "src/__support/macros/config.h"
+
+namespace LIBC_NAMESPACE_DECL {
+namespace math {
+
+LIBC_INLINE constexpr int isnanbf16(bfloat16 x) {
+ return fputil::FPBits<bfloat16>(x).is_nan();
+}
+
+} // namespace math
+} // namespace LIBC_NAMESPACE_DECL
+
+#endif // LLVM_LIBC_SRC___SUPPORT_MATH_ISNANBF16_H
diff --git a/libc/src/math/CMakeLists.txt b/libc/src/math/CMakeLists.txt
index 88fca3c6b572f7..4ff742fb2499f9 100644
--- a/libc/src/math/CMakeLists.txt
+++ b/libc/src/math/CMakeLists.txt
@@ -388,6 +388,7 @@ add_math_entrypoint_object(ilogbbf16)
add_math_entrypoint_object(isnan)
add_math_entrypoint_object(isnanf)
add_math_entrypoint_object(isnanf16)
+add_math_entrypoint_object(isnanbf16)
add_math_entrypoint_object(isnanf128)
add_math_entrypoint_object(isnanf80)
add_math_entrypoint_object(isnanl)
diff --git a/libc/src/math/generic/CMakeLists.txt b/libc/src/math/generic/CMakeLists.txt
index d1cfee7bb4a1ed..65955c2bcb19e0 100644
--- a/libc/src/math/generic/CMakeLists.txt
+++ b/libc/src/math/generic/CMakeLists.txt
@@ -3331,6 +3331,16 @@ add_entrypoint_object(
libc.src.__support.math.isnanf16
)
+add_entrypoint_object(
+ isnanbf16
+ SRCS
+ isnanbf16.cpp
+ HDRS
+ ../isnanbf16.h
+ DEPENDS
+ libc.src.__support.math.isnanbf16
+)
+
add_entrypoint_object(
nan
SRCS
diff --git a/libc/src/math/generic/isnanbf16.cpp b/libc/src/math/generic/isnanbf16.cpp
new file mode 100644
index 00000000000000..80c99e42a23440
--- /dev/null
+++ b/libc/src/math/generic/isnanbf16.cpp
@@ -0,0 +1,15 @@
+//===-- Implementation of isnanbf16 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/isnanbf16.h"
+#include "src/__support/math/isnanbf16.h"
+
+namespace LIBC_NAMESPACE_DECL {
+LLVM_LIBC_FUNCTION(int, isnanbf16, (bfloat16 x)) { return math::isnanbf16(x); }
+} // namespace LIBC_NAMESPACE_DECL
diff --git a/libc/src/math/isnanbf16.h b/libc/src/math/isnanbf16.h
new file mode 100644
index 00000000000000..7fe6afe38abad0
--- /dev/null
+++ b/libc/src/math/isnanbf16.h
@@ -0,0 +1,22 @@
+//===-- Implementation header for isnanbf16 ----------------------*- 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_ISNANBF16_H
+#define LLVM_LIBC_SRC_MATH_ISNANBF16_H
+
+#include "src/__support/macros/config.h"
+#include "src/__support/macros/properties/types.h"
+
+namespace LIBC_NAMESPACE_DECL {
+
+int isnanbf16(bfloat16 x);
+
+} // namespace LIBC_NAMESPACE_DECL
+
+#endif // LLVM_LIBC_SRC_MATH_ISNANBF16_H
diff --git a/libc/test/shared/CMakeLists.txt b/libc/test/shared/CMakeLists.txt
index d530538e2c9e98..f1f1c9c65edc0c 100644
--- a/libc/test/shared/CMakeLists.txt
+++ b/libc/test/shared/CMakeLists.txt
@@ -340,6 +340,7 @@ else()
libc.src.__support.math.isnanf128
libc.src.__support.math.isnanf80
libc.src.__support.math.isnanf16
+ libc.src.__support.math.isnanbf16
libc.src.__support.math.isnanl
libc.src.__support.math.issignaling
libc.src.__support.math.issignalingbf16
diff --git a/libc/test/shared/shared_math_constexpr_test.cpp b/libc/test/shared/shared_math_constexpr_test.cpp
index 28d16a053d39ea..4aa67e9dbdd678 100644
--- a/libc/test/shared/shared_math_constexpr_test.cpp
+++ b/libc/test/shared/shared_math_constexpr_test.cpp
@@ -292,6 +292,7 @@ static_assert(0.0f16 == LIBC_NAMESPACE::shared::nextafterf16(0.0f16, 0.0f16));
static_assert(0.0f16 == LIBC_NAMESPACE::shared::rintf16(0.0f16));
static_assert(1 == LIBC_NAMESPACE::shared::iscanonicalf16(0.0f16));
static_assert(0 == LIBC_NAMESPACE::shared::isnanf16(0.0f16));
+static_assert(0 == LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.016)));
static_assert(0.0 == LIBC_NAMESPACE::shared::issignalingf16(0.0f16));
static_assert(1 == [] {
const char arg{};
diff --git a/libc/test/shared/shared_math_test.cpp b/libc/test/shared/shared_math_test.cpp
index 7003d8be373f17..a1207b78895099 100644
--- a/libc/test/shared/shared_math_test.cpp
+++ b/libc/test/shared/shared_math_test.cpp
@@ -165,6 +165,7 @@ TEST(LlvmLibcSharedMathTest, AllFloat16) {
EXPECT_FP_EQ(0x0p+0f16, LIBC_NAMESPACE::shared::rintf16(0.0f16));
EXPECT_EQ(1, LIBC_NAMESPACE::shared::iscanonicalf16(0.0f16));
EXPECT_EQ(0, LIBC_NAMESPACE::shared::isnanf16(0.0f16));
+ EXPECT_EQ(0, LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.016)));
EXPECT_EQ(0, LIBC_NAMESPACE::shared::issignalingf16(0.0f16));
EXPECT_TRUE(FPBits(LIBC_NAMESPACE::shared::nanf16("")).is_nan());
EXPECT_FP_EQ(0x0p+0f16, LIBC_NAMESPACE::shared::roundf16(0.0f16));
diff --git a/libc/test/src/math/smoke/CMakeLists.txt b/libc/test/src/math/smoke/CMakeLists.txt
index 509de823e0fd83..f26a0c7ac0d3b0 100644
--- a/libc/test/src/math/smoke/CMakeLists.txt
+++ b/libc/test/src/math/smoke/CMakeLists.txt
@@ -2328,6 +2328,19 @@ add_fp_unittest(
libc.src.math.isnanf16
)
+add_fp_unittest(
+ isnanbf16_test
+ SUITE
+ libc-math-smoke-tests
+ SRCS
+ isnanbf16_test.cpp
+ HDRS
+ IsNanTest.h
+ DEPENDS
+ libc.src.math.isnanbf16
+ libc.src.__support.FPUtil.bfloat16
+)
+
add_fp_unittest(
llogb_test
SUITE
diff --git a/libc/test/src/math/smoke/isnanbf16_test.cpp b/libc/test/src/math/smoke/isnanbf16_test.cpp
new file mode 100644
index 00000000000000..bdd553b3112c9a
--- /dev/null
+++ b/libc/test/src/math/smoke/isnanbf16_test.cpp
@@ -0,0 +1,15 @@
+//===-- Unittests for isnanbf16
+//--------------------------------------------===//
+//
+// 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 "IsNanTest.h"
+#include "src/__support/FPUtil/bfloat16.h"
+
+#include "src/math/isnanbf16.h"
+
+LIST_ISNAN_TESTS(Isnanbf16, bfloat16, LIBC_NAMESPACE::isnanbf16)
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 67738c97df794c..8a37f2c4ad3e6f 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -1162,235 +1162,3772 @@ alias(
########################### math support library ###############################
libc_support_library(
- name = "__support_math_static_rounding_expf",
- hdrs = ["shared/math/static_rounding/expf.h"],
+ name = "__support_math_log_range_reduction",
+ hdrs = ["src/__support/math/log_range_reduction.h"],
deps = [
- ":shared_libc_common",
- "//libc/src/__support:common",
- "//libc/src/__support/macros:config",
- "//libc/src/__support/math:expf_integer_eval",
+ ":__support_common",
+ ":__support_fputil_dyadic_float",
+ ":__support_macros_config",
+ ":__support_math_common_constants",
+ ":__support_uint128",
],
)
libc_support_library(
- name = "__support_math_static_rounding_exp2f",
- hdrs = ["shared/math/static_rounding/exp2f.h"],
+ name = "__support_math_acos",
+ hdrs = ["src/__support/math/acos.h"],
deps = [
- ":shared_libc_common",
- "//libc/src/__support:common",
- "//libc/src/__support/macros:config",
- "//libc/src/__support/math:exp2f_integer_eval",
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_macros_properties_types",
+ ":__support_math_asin_utils",
],
)
-############################### complex targets ################################
+libc_support_library(
+ name = "__support_math_acosbf16",
+ hdrs = ["src/__support/math/acosbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ],
+)
-alias(
- name = "cimag",
- actual = "//libc/src/complex:cimag",
+libc_support_library(
+ name = "__support_math_acosf",
+ hdrs = ["src/__support/math/acosf.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ],
)
-alias(
- name = "cimagf",
- actual = "//libc/src/complex:cimagf",
+libc_support_library(
+ name = "__support_math_acosf16",
+ hdrs = ["src/__support/math/acosf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fma",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-alias(
- name = "cimagf128",
- actual = "//libc/src/complex:cimagf128",
+libc_support_library(
+ name = "__support_math_acosh_float_constants",
+ hdrs = ["src/__support/math/acosh_float_constants.h"],
+ deps = [
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "cimagf16",
- actual = "//libc/src/complex:cimagf16",
+libc_support_library(
+ name = "__support_math_acoshf_utils",
+ hdrs = ["src/__support/math/acoshf_utils.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_macros_attributes",
+ ":__support_macros_optimization",
+ ":__support_math_acosh_float_constants",
+ ],
)
-alias(
- name = "cimagl",
- actual = "//libc/src/complex:cimagl",
+libc_support_library(
+ name = "__support_math_acoshf",
+ hdrs = ["src/__support/math/acoshf.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ],
)
-alias(
- name = "conj",
- actual = "//libc/src/complex:conj",
+libc_support_library(
+ name = "__support_math_acoshbf16",
+ hdrs = ["src/__support/math/acoshbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ],
)
-alias(
- name = "conjf",
- actual = "//libc/src/complex:conjf",
+libc_support_library(
+ name = "__support_math_acoshf16",
+ hdrs = ["src/__support/math/acoshf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-alias(
- name = "conjf128",
- actual = "//libc/src/complex:conjf128",
+libc_support_library(
+ name = "__support_math_acospif",
+ hdrs = ["src/__support/math/acospif.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ],
)
-alias(
- name = "conjf16",
- actual = "//libc/src/complex:conjf16",
+libc_support_library(
+ name = "__support_math_acospif16",
+ hdrs = ["src/__support/math/acospif16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_types",
+ ":__support_math_asin_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-alias(
- name = "conjl",
- actual = "//libc/src/complex:conjl",
+libc_support_library(
+ name = "__support_math_rsqrtf",
+ hdrs = ["src/__support/math/rsqrtf.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":hdr_errno_macros",
+ ":hdr_fenv_macros",
+ ],
)
-alias(
- name = "cproj",
- actual = "//libc/src/complex:cproj",
+libc_support_library(
+ name = "__support_math_rsqrtf16",
+ hdrs = ["src/__support/math/rsqrtf16.h"],
+ deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":hdr_errno_macros",
+ ":hdr_fenv_macros",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-alias(
- name = "cprojf",
- actual = "//libc/src/complex:cprojf",
+libc_support_library(
+ name = "__support_math_setpayload",
+ hdrs = ["src/__support/math/setpayload.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "cprojf128",
- actual = "//libc/src/complex:cprojf128",
+libc_support_library(
+ name = "__support_math_setpayloadbf16",
+ hdrs = ["src/__support/math/setpayloadbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "cprojf16",
- actual = "//libc/src/complex:cprojf16",
+libc_support_library(
+ name = "__support_math_setpayloadf",
+ hdrs = ["src/__support/math/setpayloadf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "cprojl",
- actual = "//libc/src/complex:cprojl",
+libc_support_library(
+ name = "__support_math_setpayloadf128",
+ hdrs = ["src/__support/math/setpayloadf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "creal",
- actual = "//libc/src/complex:creal",
+libc_support_library(
+ name = "__support_math_setpayloadf16",
+ hdrs = ["src/__support/math/setpayloadf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-alias(
- name = "crealf",
- actual = "//libc/src/complex:crealf",
+libc_support_library(
+ name = "__support_math_setpayloadl",
+ hdrs = ["src/__support/math/setpayloadl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "crealf128",
- actual = "//libc/src/complex:crealf128",
+libc_support_library(
+ name = "__support_math_setpayloadsig",
+ hdrs = ["src/__support/math/setpayloadsig.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "crealf16",
- actual = "//libc/src/complex:crealf16",
+libc_support_library(
+ name = "__support_math_setpayloadsigbf16",
+ hdrs = ["src/__support/math/setpayloadsigbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
)
-alias(
- name = "creall",
- actual = "//libc/src/complex:creall",
+libc_support_library(
+ name = "__support_math_setpayloadsigf",
+ hdrs = ["src/__support/math/setpayloadsigf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
)
-################################ link targets ##################################
+libc_support_library(
+ name = "__support_math_setpayloadsigf128",
+ hdrs = ["src/__support/math/setpayloadsigf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
-alias(
- name = "_r_debug",
- actual = "//libc/src/link:_r_debug",
+libc_support_library(
+ name = "__support_math_setpayloadsigf16",
+ hdrs = ["src/__support/math/setpayloadsigf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
)
-################################ math targets ##################################
+libc_support_library(
+ name = "__support_math_setpayloadsigl",
+ hdrs = ["src/__support/math/setpayloadsigl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
-[
- 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",
+libc_support_library(
+ name = "__support_math_sqrtf16",
+ hdrs = ["src/__support/math/sqrtf16.h"],
+ deps = [
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asin_utils",
+ hdrs = ["src/__support/math/asin_utils.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_integer_literals",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asin",
+ hdrs = ["src/__support/math/asin.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_asin_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinhf",
+ hdrs = ["src/__support/math/asinhf.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinhf16",
+ hdrs = ["src/__support/math/asinhf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinpi",
+ hdrs = ["src/__support/math/asinpi.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_rounding_mode",
+ ":__support_fputil_sqrt",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_asin_utils",
+ ":__support_sign",
+ ":hdr_errno_macros",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinpif",
+ hdrs = ["src/__support/math/asinpif.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan_utils",
+ hdrs = ["src/__support/math/atan_utils.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_integer_literals",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan",
+ hdrs = ["src/__support/math/atan.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_atan_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan2",
+ hdrs = ["src/__support/math/atan2.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_atan_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan2f",
+ hdrs = ["src/__support/math/atan2f.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_asin_utils",
+ ":__support_math_atan_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan2f128",
+ hdrs = ["src/__support/math/atan2f128.h"],
+ deps = [
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_float128",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_nearest_integer",
+ ":__support_integer_literals",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_atan_utils",
+ ":__support_uint128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atan2f16",
+ hdrs = ["src/__support/math/atan2f16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ":__support_math_atan_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanbf16",
+ hdrs = ["src/__support/math/atanbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanf",
+ hdrs = ["src/__support/math/atanf.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ":__support_math_atan_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanf16",
+ hdrs = ["src/__support/math/atanf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinbf16",
+ hdrs = ["src/__support/math/asinbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":__support_math_asin_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinf",
+ hdrs = ["src/__support/math/asinf.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_asin_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_asinf16",
+ hdrs = ["src/__support/math/asinf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_optimization",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanhf",
+ hdrs = ["src/__support/math/atanhf.h"],
+ deps = [
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_acoshf_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanhf16",
+ hdrs = ["src/__support/math/atanhf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_atanpif16",
+ hdrs = ["src/__support/math/atanpif16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":hdr_fenv_macros",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16add",
+ hdrs = ["src/__support/math/bf16add.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16addf",
+ hdrs = ["src/__support/math/bf16addf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16addl",
+ hdrs = ["src/__support/math/bf16addl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16addf128",
+ hdrs = ["src/__support/math/bf16addf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ":__support_macros_properties_types",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16div",
+ hdrs = ["src/__support/math/bf16div.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16divf",
+ hdrs = ["src/__support/math/bf16divf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16divl",
+ hdrs = ["src/__support/math/bf16divl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16divf128",
+ hdrs = ["src/__support/math/bf16divf128.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16fma",
+ hdrs = ["src/__support/math/bf16fma.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_fma",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16fmaf",
+ hdrs = ["src/__support/math/bf16fmaf.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_fma",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16fmaf128",
+ hdrs = ["src/__support/math/bf16fmaf128.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_fma",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16fmal",
+ hdrs = ["src/__support/math/bf16fmal.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_fma",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16mul",
+ hdrs = ["src/__support/math/bf16mul.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16mulf",
+ hdrs = ["src/__support/math/bf16mulf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16mulf128",
+ hdrs = ["src/__support/math/bf16mulf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16mull",
+ hdrs = ["src/__support/math/bf16mull.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16sub",
+ hdrs = ["src/__support/math/bf16sub.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16subf",
+ hdrs = ["src/__support/math/bf16subf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16subf128",
+ hdrs = ["src/__support/math/bf16subf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_bf16subl",
+ hdrs = ["src/__support/math/bf16subl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalize",
+ hdrs = ["src/__support/math/canonicalize.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizebf16",
+ hdrs = ["src/__support/math/canonicalizebf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizef",
+ hdrs = ["src/__support/math/canonicalizef.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizef128",
+ hdrs = ["src/__support/math/canonicalizef128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizef80",
+ hdrs = ["src/__support/math/canonicalizef80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizef16",
+ hdrs = ["src/__support/math/canonicalizef16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_canonicalizel",
+ hdrs = ["src/__support/math/canonicalizel.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cbrt",
+ hdrs = ["src/__support/math/cbrt.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_integer_literals",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cbrtbf16",
+ hdrs = ["src/__support/math/cbrtbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ":__support_math_cbrtf",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cbrtf",
+ hdrs = ["src/__support/math/cbrtf.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_integer_literals",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceil",
+ hdrs = ["src/__support/math/ceil.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceilbf16",
+ hdrs = ["src/__support/math/ceilbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceilf",
+ hdrs = ["src/__support/math/ceilf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceilf128",
+ hdrs = ["src/__support/math/ceilf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceilf16",
+ hdrs = ["src/__support/math/ceilf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":__support_macros_properties_cpu_features",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ceill",
+ hdrs = ["src/__support/math/ceill.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysign",
+ hdrs = ["src/__support/math/copysign.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignbf16",
+ hdrs = ["src/__support/math/copysignbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignf",
+ hdrs = ["src/__support/math/copysignf.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignf128",
+ hdrs = ["src/__support/math/copysignf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignf80",
+ hdrs = ["src/__support/math/copysignf80.h"],
+ deps = [
+ ":__support_fputil_float80",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignf16",
+ hdrs = ["src/__support/math/copysignf16.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_copysignl",
+ hdrs = ["src/__support/math/copysignl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cbrtf16",
+ hdrs = ["src/__support/math/cbrtf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_common_constants",
+ hdrs = ["src/__support/math/common_constants.h"],
+ deps = [
+ ":__support_macros_config",
+ ":__support_math_acosh_float_constants",
+ ":__support_math_exp_constants",
+ ":__support_number_pair",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dsqrtf128",
+ hdrs = ["src/__support/math/dsqrtf128.h"],
+ deps = [
+ ":__support_fputil_sqrt",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum",
+ hdrs = ["src/__support/math/fmaximum.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximumbf16",
+ hdrs = ["src/__support/math/fmaximumbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximumf",
+ hdrs = ["src/__support/math/fmaximumf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximumf128",
+ hdrs = ["src/__support/math/fmaximumf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximumf16",
+ hdrs = ["src/__support/math/fmaximumf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximumf80",
+ hdrs = ["src/__support/math/fmaximumf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximuml",
+ hdrs = ["src/__support/math/fmaximuml.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_mag",
+ hdrs = ["src/__support/math/fmaximum_mag.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magbf16",
+ hdrs = ["src/__support/math/fmaximum_magbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magf",
+ hdrs = ["src/__support/math/fmaximum_magf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magf128",
+ hdrs = ["src/__support/math/fmaximum_magf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magf16",
+ hdrs = ["src/__support/math/fmaximum_magf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magf80",
+ hdrs = ["src/__support/math/fmaximum_magf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_magl",
+ hdrs = ["src/__support/math/fmaximum_magl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_mag_numf128",
+ hdrs = ["src/__support/math/fmaximum_mag_numf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_mag_numf16",
+ hdrs = ["src/__support/math/fmaximum_mag_numf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_mag_numf80",
+ hdrs = ["src/__support/math/fmaximum_mag_numf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_mag_numl",
+ hdrs = ["src/__support/math/fmaximum_mag_numl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_num",
+ hdrs = ["src/__support/math/fmaximum_num.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numbf16",
+ hdrs = ["src/__support/math/fmaximum_numbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numf",
+ hdrs = ["src/__support/math/fmaximum_numf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numf128",
+ hdrs = ["src/__support/math/fmaximum_numf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numf16",
+ hdrs = ["src/__support/math/fmaximum_numf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numf80",
+ hdrs = ["src/__support/math/fmaximum_numf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmaximum_numl",
+ hdrs = ["src/__support/math/fmaximum_numl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmin",
+ hdrs = ["src/__support/math/fmin.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminbf16",
+ hdrs = ["src/__support/math/fminbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminf",
+ hdrs = ["src/__support/math/fminf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminf128",
+ hdrs = ["src/__support/math/fminf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminf16",
+ hdrs = ["src/__support/math/fminf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminf80",
+ hdrs = ["src/__support/math/fminf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum",
+ hdrs = ["src/__support/math/fminimum.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimumbf16",
+ hdrs = ["src/__support/math/fminimumbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimumf",
+ hdrs = ["src/__support/math/fminimumf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimumf128",
+ hdrs = ["src/__support/math/fminimumf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimumf16",
+ hdrs = ["src/__support/math/fminimumf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimumf80",
+ hdrs = ["src/__support/math/fminimumf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimuml",
+ hdrs = ["src/__support/math/fminimuml.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag",
+ hdrs = ["src/__support/math/fminimum_mag.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magbf16",
+ hdrs = ["src/__support/math/fminimum_magbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magf",
+ hdrs = ["src/__support/math/fminimum_magf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magf128",
+ hdrs = ["src/__support/math/fminimum_magf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magf16",
+ hdrs = ["src/__support/math/fminimum_magf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magf80",
+ hdrs = ["src/__support/math/fminimum_magf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_magl",
+ hdrs = ["src/__support/math/fminimum_magl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_num",
+ hdrs = ["src/__support/math/fminimum_mag_num.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numbf16",
+ hdrs = ["src/__support/math/fminimum_mag_numbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numf",
+ hdrs = ["src/__support/math/fminimum_mag_numf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numf128",
+ hdrs = ["src/__support/math/fminimum_mag_numf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numf16",
+ hdrs = ["src/__support/math/fminimum_mag_numf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numf80",
+ hdrs = ["src/__support/math/fminimum_mag_numf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_mag_numl",
+ hdrs = ["src/__support/math/fminimum_mag_numl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_num",
+ hdrs = ["src/__support/math/fminimum_num.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numbf16",
+ hdrs = ["src/__support/math/fminimum_numbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numf",
+ hdrs = ["src/__support/math/fminimum_numf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numf128",
+ hdrs = ["src/__support/math/fminimum_numf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numf16",
+ hdrs = ["src/__support/math/fminimum_numf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numf80",
+ hdrs = ["src/__support/math/fminimum_numf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminimum_numl",
+ hdrs = ["src/__support/math/fminimum_numl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fminl",
+ hdrs = ["src/__support/math/fminl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmod",
+ hdrs = ["src/__support/math/fmod.h"],
+ deps = [
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmodbf16",
+ hdrs = ["src/__support/math/fmodbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmodf",
+ hdrs = ["src/__support/math/fmodf.h"],
+ deps = [
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmodf128",
+ hdrs = ["src/__support/math/fmodf128.h"],
+ deps = [
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmodf16",
+ hdrs = ["src/__support/math/fmodf16.h"],
+ deps = [
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmodl",
+ hdrs = ["src/__support/math/fmodl.h"],
+ deps = [
+ ":__support_fputil_generic_fmod",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmul",
+ hdrs = ["src/__support/math/fmul.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_double_double",
+ ":__support_macros_config",
+ ":hdr_errno_macros",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmulf128",
+ hdrs = ["src/__support/math/fmulf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fmull",
+ hdrs = ["src/__support/math/fmull.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_frexp",
+ hdrs = ["src/__support/math/frexp.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_frexpbf16",
+ hdrs = ["src/__support/math/frexpbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_frexpl",
+ hdrs = ["src/__support/math/frexpl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfp",
+ hdrs = ["src/__support/math/fromfp.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpbf16",
+ hdrs = ["src/__support/math/fromfpbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpf",
+ hdrs = ["src/__support/math/fromfpf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpf128",
+ hdrs = ["src/__support/math/fromfpf128.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpf16",
+ hdrs = ["src/__support/math/fromfpf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpl",
+ hdrs = ["src/__support/math/fromfpl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpx",
+ hdrs = ["src/__support/math/fromfpx.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpxbf16",
+ hdrs = ["src/__support/math/fromfpxbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpxf",
+ hdrs = ["src/__support/math/fromfpxf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpxf128",
+ hdrs = ["src/__support/math/fromfpxf128.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpxf16",
+ hdrs = ["src/__support/math/fromfpxf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fromfpxl",
+ hdrs = ["src/__support/math/fromfpxl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fsub",
+ hdrs = ["src/__support/math/fsub.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fsubf128",
+ hdrs = ["src/__support/math/fsubf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_fsubl",
+ hdrs = ["src/__support/math/fsubl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonical",
+ hdrs = ["src/__support/math/iscanonical.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicalbf16",
+ hdrs = ["src/__support/math/iscanonicalbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicalf",
+ hdrs = ["src/__support/math/iscanonicalf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicalf128",
+ hdrs = ["src/__support/math/iscanonicalf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicalf80",
+ hdrs = ["src/__support/math/iscanonicalf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicalf16",
+ hdrs = ["src/__support/math/iscanonicalf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_iscanonicall",
+ hdrs = ["src/__support/math/iscanonicall.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnan",
+ hdrs = ["src/__support/math/isnan.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanf",
+ hdrs = ["src/__support/math/isnanf.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanf128",
+ hdrs = ["src/__support/math/isnanf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanf80",
+ hdrs = ["src/__support/math/isnanf80.h"],
+ deps = [
+ ":__support_fputil_float80",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanl",
+ hdrs = ["src/__support/math/isnanl.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanf16",
+ hdrs = ["src/__support/math/isnanf16.h"],
+ deps = [
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_isnanbf16",
+ hdrs = ["src/__support/math/isnanbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignaling",
+ hdrs = ["src/__support/math/issignaling.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingbf16",
+ hdrs = ["src/__support/math/issignalingbf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_bfloat16",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingf",
+ hdrs = ["src/__support/math/issignalingf.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingf128",
+ hdrs = ["src/__support/math/issignalingf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingf80",
+ hdrs = ["src/__support/math/issignalingf80.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_fputil_float80",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingf16",
+ hdrs = ["src/__support/math/issignalingf16.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_issignalingl",
+ hdrs = ["src/__support/math/issignalingl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ldexp",
+ hdrs = ["src/__support/math/ldexp.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ldexpbf16",
+ hdrs = ["src/__support/math/ldexpbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ldexpl",
+ hdrs = ["src/__support/math/ldexpl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ilogbbf16",
+ hdrs = ["src/__support/math/ilogbbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrint",
+ hdrs = ["src/__support/math/llrint.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrintbf16",
+ hdrs = ["src/__support/math/llrintbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrintf",
+ hdrs = ["src/__support/math/llrintf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrintf128",
+ hdrs = ["src/__support/math/llrintf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrintf16",
+ hdrs = ["src/__support/math/llrintf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llrintl",
+ hdrs = ["src/__support/math/llrintl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llround",
+ hdrs = ["src/__support/math/llround.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llroundbf16",
+ hdrs = ["src/__support/math/llroundbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llroundf",
+ hdrs = ["src/__support/math/llroundf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llroundf128",
+ hdrs = ["src/__support/math/llroundf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llroundf16",
+ hdrs = ["src/__support/math/llroundf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llroundl",
+ hdrs = ["src/__support/math/llroundl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrint",
+ hdrs = ["src/__support/math/lrint.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrintbf16",
+ hdrs = ["src/__support/math/lrintbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrintf",
+ hdrs = ["src/__support/math/lrintf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrintf128",
+ hdrs = ["src/__support/math/lrintf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrintf16",
+ hdrs = ["src/__support/math/lrintf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lrintl",
+ hdrs = ["src/__support/math/lrintl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lround",
+ hdrs = ["src/__support/math/lround.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lroundbf16",
+ hdrs = ["src/__support/math/lroundbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lroundf",
+ hdrs = ["src/__support/math/lroundf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lroundf128",
+ hdrs = ["src/__support/math/lroundf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lroundf16",
+ hdrs = ["src/__support/math/lroundf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_lroundl",
+ hdrs = ["src/__support/math/lroundl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modf",
+ hdrs = ["src/__support/math/modf.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modfbf16",
+ hdrs = ["src/__support/math/modfbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modff",
+ hdrs = ["src/__support/math/modff.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modff128",
+ hdrs = ["src/__support/math/modff128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modff16",
+ hdrs = ["src/__support/math/modff16.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_modfl",
+ hdrs = ["src/__support/math/modfl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nan",
+ hdrs = ["src/__support/math/nan.h"],
+ deps = [
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nanbf16",
+ hdrs = ["src/__support/math/nanbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nanf",
+ hdrs = ["src/__support/math/nanf.h"],
+ deps = [
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nanf128",
+ hdrs = ["src/__support/math/nanf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nanf16",
+ hdrs = ["src/__support/math/nanf16.h"],
+ deps = [
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nanl",
+ hdrs = ["src/__support/math/nanl.h"],
+ deps = [
+ ":__support_libc_errno",
+ ":__support_macros_config",
+ ":__support_str_to_float",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyint",
+ hdrs = ["src/__support/math/nearbyint.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyintbf16",
+ hdrs = ["src/__support/math/nearbyintbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyintf",
+ hdrs = ["src/__support/math/nearbyintf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyintf128",
+ hdrs = ["src/__support/math/nearbyintf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyintf16",
+ hdrs = ["src/__support/math/nearbyintf16.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_nearbyintl",
+ hdrs = ["src/__support/math/nearbyintl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainder",
+ hdrs = ["src/__support/math/remainder.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainderbf16",
+ hdrs = ["src/__support/math/remainderbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainderf",
+ hdrs = ["src/__support/math/remainderf.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainderf128",
+ hdrs = ["src/__support/math/remainderf128.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainderf16",
+ hdrs = ["src/__support/math/remainderf16.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remainderl",
+ hdrs = ["src/__support/math/remainderl.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquo",
+ hdrs = ["src/__support/math/remquo.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquobf16",
+ hdrs = ["src/__support/math/remquobf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquof",
+ hdrs = ["src/__support/math/remquof.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquof128",
+ hdrs = ["src/__support/math/remquof128.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_fputil_float128",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquof16",
+ hdrs = ["src/__support/math/remquof16.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_remquol",
+ hdrs = ["src/__support/math/remquol.h"],
+ deps = [
+ ":__support_fputil_division_and_remainder_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rint",
+ hdrs = ["src/__support/math/rint.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rintbf16",
+ hdrs = ["src/__support/math/rintbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rintf",
+ hdrs = ["src/__support/math/rintf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rintf128",
+ hdrs = ["src/__support/math/rintf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rintf16",
+ hdrs = ["src/__support/math/rintf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":__support_macros_properties_cpu_features",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_rintl",
+ hdrs = ["src/__support/math/rintl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_round",
+ hdrs = ["src/__support/math/round.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_architectures",
+ ":__support_macros_properties_compiler",
+ ":__support_macros_properties_cpu_features",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundbf16",
+ hdrs = ["src/__support/math/roundbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundeven",
+ hdrs = ["src/__support/math/roundeven.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundevenbf16",
+ hdrs = ["src/__support/math/roundevenbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundevenf",
+ hdrs = ["src/__support/math/roundevenf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundevenf128",
+ hdrs = ["src/__support/math/roundevenf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundevenf16",
+ hdrs = ["src/__support/math/roundevenf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":__support_macros_properties_cpu_features",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundevenl",
+ hdrs = ["src/__support/math/roundevenl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundf",
+ hdrs = ["src/__support/math/roundf.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_architectures",
+ ":__support_macros_properties_compiler",
+ ":__support_macros_properties_cpu_features",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundf128",
+ hdrs = ["src/__support/math/roundf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundf16",
+ hdrs = ["src/__support/math/roundf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ":__support_macros_properties_cpu_features",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_roundl",
+ hdrs = ["src/__support/math/roundl.h"],
+ deps = [
+ ":__support_fputil_nearest_integer_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbln",
+ hdrs = ["src/__support/math/scalbln.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalblnbf16",
+ hdrs = ["src/__support/math/scalblnbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalblnf",
+ hdrs = ["src/__support/math/scalblnf.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalblnf128",
+ hdrs = ["src/__support/math/scalblnf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalblnf16",
+ hdrs = ["src/__support/math/scalblnf16.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalblnl",
+ hdrs = ["src/__support/math/scalblnl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbn",
+ hdrs = ["src/__support/math/scalbn.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbnbf16",
+ hdrs = ["src/__support/math/scalbnbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbnf",
+ hdrs = ["src/__support/math/scalbnf.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbnf128",
+ hdrs = ["src/__support/math/scalbnf128.h"],
+ deps = [
+ ":__support_fputil_float128",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbnf16",
+ hdrs = ["src/__support/math/scalbnf16.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_scalbnl",
+ hdrs = ["src/__support/math/scalbnl.h"],
+ deps = [
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ":hdr_float_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_llogbbf16",
+ hdrs = ["src/__support/math/llogbbf16.h"],
+ deps = [
+ ":__support_fputil_bfloat16",
+ ":__support_fputil_manipulation_functions",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_sincos_integer_utils",
+ hdrs = ["src/__support/math/sincos_integer_utils.h"],
+ deps = [
+ ":__support_big_int",
+ ":__support_cpp_bit",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_frac128",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_extras",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cos_integer_eval",
+ hdrs = ["src/__support/math/cos_integer_eval.h"],
+ deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_frac128",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_sincos_integer_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_sin_integer_eval",
+ hdrs = ["src/__support/math/sin_integer_eval.h"],
+ deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_frac128",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_sincos_integer_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cos",
+ hdrs = ["src/__support/math/cos.h"],
+ deps = [
+ ":__support_fputil_double_double",
+ ":__support_fputil_dyadic_float",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_range_reduction_double",
+ ":__support_sincos_eval",
+ ":hdr_errno_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cosf",
+ hdrs = [
+ "src/__support/math/cosf.h",
+ "src/__support/math/cosf_double_eval.h",
+ "src/__support/math/cosf_float_eval.h",
+ ],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_sincosf_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cosf16",
+ hdrs = ["src/__support/math/cosf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_optimization",
+ ":__support_math_sincosf16_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cosh_double_eval",
+ hdrs = ["src/__support/math/cosh_double_eval.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_sinhcosh_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cosh",
+ hdrs = ["src/__support/math/cosh.h"],
+ deps = [
+ ":__support_common",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_cosh_double_eval",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_coshf",
+ hdrs = ["src/__support/math/coshf.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_sinhfcoshf_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_coshf16",
+ hdrs = ["src/__support/math/coshf16.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_expxf16_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cospif",
+ hdrs = ["src/__support/math/cospif.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fma",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_common_constants",
+ ":__support_sincosf_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_cospif16",
+ hdrs = ["src/__support/math/cospif16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_is_integer",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_optimization",
+ ":__support_math_sincosf16_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_daddf128",
+ hdrs = ["src/__support/math/daddf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_daddl",
+ hdrs = ["src/__support/math/daddl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ddivf128",
+ hdrs = ["src/__support/math/ddivf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_ddivl",
+ hdrs = ["src/__support/math/ddivl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dmulf128",
+ hdrs = ["src/__support/math/dmulf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dmull",
+ hdrs = ["src/__support/math/dmull.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dsqrtl",
+ hdrs = ["src/__support/math/dsqrtl.h"],
+ deps = [
+ ":__support_fputil_sqrt",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dsubf128",
+ hdrs = ["src/__support/math/dsubf128.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_dsubl",
+ hdrs = ["src/__support/math/dsubl.h"],
+ deps = [
+ ":__support_fputil_basic_operations",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_exp10m1f",
+ hdrs = ["src/__support/math/exp10m1f.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_exp10f_utils",
+ ":hdr_errno_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_exp10m1f16",
+ hdrs = ["src/__support/math/exp10m1f16.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_exp10f16_utils",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_erff",
+ hdrs = ["src/__support/math/erff.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_common_constants",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_erff16",
+ hdrs = ["src/__support/math/erff16.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_common_constants",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_erfcf16",
+ hdrs = ["src/__support/math/erfcf16.h"],
+ deps = [
+ ":__support_fputil_cast",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fenv_impl",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":llvm_libc_macros_float16_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_exp_float_constants",
+ hdrs = ["src/__support/math/exp_float_constants.h"],
+ deps = [
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_check_exp_exceptions",
+ hdrs = ["src/__support/math/check/exp_exceptions.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_fp_bits",
+ ":__support_macros_config",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_exp2f_float_utils",
+ hdrs = ["src/__support/math/exp2f_float_utils.h"],
+ deps = [
+ ":__support_common",
+ ":__support_cpp_bit",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_exp2f_integer_utils",
+ hdrs = ["src/__support/math/exp2f_integer_utils.h"],
+ deps = [
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_frac64",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_types",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_expf_double_eval",
+ hdrs = ["src/__support/math/expf_double_eval.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_check_exp_exceptions",
+ ":__support_math_exp_float_constants",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_expf_float_utils",
+ hdrs = ["src/__support/math/expf_float_utils.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_double_double",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_polyeval",
+ ":__support_macros_config",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_expf_float_eval",
+ hdrs = ["src/__support/math/expf_float_eval.h"],
+ deps = [
+ ":__support_common",
+ ":__support_fputil_double_double",
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fp_bits",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_check_exp_exceptions",
+ ":__support_math_exp2f_float_utils",
+ ":__support_math_expf_float_utils",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_expf_integer_eval",
+ hdrs = ["src/__support/math/expf_integer_eval.h"],
+ deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_fp_bits",
+ ":__support_frac64",
+ ":__support_macros_attributes",
+ ":__support_macros_config",
+ ":__support_macros_optimization",
+ ":__support_math_check_exp_exceptions",
+ ":__support_math_exp2f_integer_utils",
+ ":hdr_fenv_macros",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_static_rounding_expf",
+ hdrs = ["shared/math/static_rounding/expf.h"],
+ deps = [
+ ":shared_libc_common",
+ "//libc/src/__support:common",
+ "//libc/src/__support/macros:config",
+ "//libc/src/__support/math:expf_integer_eval",
+ ],
+)
+
+libc_support_library(
+ name = "__support_math_static_rounding_exp2f",
+ hdrs = ["shared/math/static_rounding/exp2f.h"],
+ deps = [
+ ":shared_libc_common",
+ "//libc/src/__support:common",
+ "//libc/src/__support/macros:config",
+ "//libc/src/__support/math:exp2f_integer_eval",
+ ],
+)
+
+############################### 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",
@@ -1829,6 +5366,3669 @@ alias(
]
]
+libc_math_function(
+ name = "acos",
+ additional_deps = [":__support_math_acos"],
+)
+
+libc_math_function(
+ name = "acosbf16",
+ additional_deps = [":__support_math_acosbf16"],
+)
+
+libc_math_function(
+ name = "acosf",
+ additional_deps = [":__support_math_acosf"],
+)
+
+libc_math_function(
+ name = "acosf16",
+ additional_deps = [
+ ":__support_math_acosf16",
+ ],
+)
+
+libc_math_function(
+ name = "acoshf",
+ additional_deps = [":__support_math_acoshf"],
+)
+
+libc_math_function(
+ name = "acoshbf16",
+ additional_deps = [":__support_math_acoshbf16"],
+)
+
+libc_math_function(
+ name = "acoshf16",
+ additional_deps = [
+ ":__support_math_acoshf16",
+ ],
+)
+
+libc_math_function(
+ name = "acospif",
+ additional_deps = [
+ ":__support_math_acospif",
+ ],
+)
+
+libc_math_function(
+ name = "acospif16",
+ additional_deps = [
+ ":__support_math_acospif16",
+ ],
+)
+
+libc_math_function(
+ name = "asin",
+ additional_deps = [":__support_math_asin"],
+)
+
+libc_math_function(
+ name = "asinbf16",
+ additional_deps = [
+ ":__support_math_asinbf16",
+ ],
+)
+
+libc_math_function(
+ name = "asinf",
+ additional_deps = [":__support_math_asinf"],
+)
+
+libc_math_function(
+ name = "asinf16",
+ additional_deps = [
+ ":__support_math_asinf16",
+ ],
+)
+
+libc_math_function(
+ name = "asinhf",
+ additional_deps = [":__support_math_asinhf"],
+)
+
+libc_math_function(
+ name = "asinhf16",
+ additional_deps = [
+ ":__support_math_asinhf16",
+ ],
+)
+
+libc_math_function(
+ name = "asinpi",
+ additional_deps = [
+ ":__support_math_asinpi",
+ ],
+)
+
+libc_math_function(
+ name = "asinpif",
+ additional_deps = [
+ ":__support_math_asinpif",
+ ],
+)
+
+libc_math_function(
+ name = "atanbf16",
+ additional_deps = [":__support_math_atanbf16"],
+)
+
+libc_math_function(
+ name = "atanf",
+ additional_deps = [":__support_math_atanf"],
+)
+
+libc_math_function(
+ name = "atanf16",
+ additional_deps = [
+ ":__support_math_atanf16",
+ ],
+)
+
+libc_math_function(
+ name = "atan",
+ additional_deps = [":__support_math_atan"],
+)
+
+libc_math_function(
+ name = "atan2f",
+ additional_deps = [":__support_math_atan2f"],
+)
+
+libc_math_function(
+ name = "atan2f128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_atan2f128",
+ ],
+)
+
+libc_math_function(
+ name = "atan2f16",
+ additional_deps = [":__support_math_atan2f16"],
+)
+
+libc_math_function(
+ name = "atan2",
+ additional_deps = [":__support_math_atan2"],
+)
+
+libc_math_function(
+ name = "atanhf",
+ additional_deps = [":__support_math_atanhf"],
+)
+
+libc_math_function(
+ name = "atanhf16",
+ additional_deps = [
+ ":__support_math_atanhf16",
+ ],
+)
+
+libc_math_function(
+ name = "atanpif16",
+ additional_deps = [":__support_math_atanpif16"],
+)
+
+libc_math_function(
+ name = "bf16add",
+ additional_deps = [":__support_math_bf16add"],
+)
+
+libc_math_function(
+ name = "bf16addf",
+ additional_deps = [":__support_math_bf16addf"],
+)
+
+libc_math_function(
+ name = "bf16addl",
+ additional_deps = [":__support_math_bf16addl"],
+)
+
+libc_math_function(
+ name = "bf16addf128",
+ additional_deps = [":__support_math_bf16addf128"],
+)
+
+libc_math_function(
+ name = "bf16div",
+ additional_deps = [":__support_math_bf16div"],
+)
+
+libc_math_function(
+ name = "bf16divl",
+ additional_deps = [":__support_math_bf16divl"],
+)
+
+libc_math_function(
+ name = "bf16sub",
+ additional_deps = [":__support_math_bf16sub"],
+)
+
+libc_math_function(
+ name = "bf16subf",
+ additional_deps = [":__support_math_bf16subf"],
+)
+
+libc_math_function(
+ name = "bf16subf128",
+ additional_deps = [":__support_math_bf16subf128"],
+)
+
+libc_math_function(
+ name = "bf16subl",
+ additional_deps = [":__support_math_bf16subl"],
+)
+
+libc_math_function(
+ name = "bf16fma",
+ additional_deps = [":__support_math_bf16fma"],
+)
+
+libc_math_function(
+ name = "bf16fmaf",
+ additional_deps = [":__support_math_bf16fmaf"],
+)
+
+libc_math_function(
+ name = "bf16fmaf128",
+ additional_deps = [":__support_math_bf16fmaf128"],
+)
+
+libc_math_function(
+ name = "bf16fmal",
+ additional_deps = [":__support_math_bf16fmal"],
+)
+
+libc_math_function(
+ name = "bf16mul",
+ additional_deps = [
+ ":__support_math_bf16mul",
+ ],
+)
+
+libc_math_function(
+ name = "bf16mulf",
+ additional_deps = [
+ ":__support_math_bf16mulf",
+ ],
+)
+
+libc_math_function(
+ name = "bf16mulf128",
+ additional_deps = [
+ ":__support_math_bf16mulf128",
+ ],
+)
+
+libc_math_function(
+ name = "bf16mull",
+ additional_deps = [
+ ":__support_math_bf16mull",
+ ],
+)
+
+libc_math_function(
+ name = "bf16divf",
+ additional_deps = [
+ ":__support_math_bf16divf",
+ ],
+)
+
+libc_math_function(
+ name = "bf16divf128",
+ additional_deps = [
+ ":__support_math_bf16divf128",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalize",
+ additional_deps = [
+ ":__support_math_canonicalize",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizef",
+ additional_deps = [
+ ":__support_math_canonicalizef",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizebf16",
+ additional_deps = [
+ ":__support_math_canonicalizebf16",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizel",
+ additional_deps = [
+ ":__support_math_canonicalizel",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizef128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_canonicalizef128",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizef80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_canonicalizef80",
+ ],
+)
+
+libc_math_function(
+ name = "canonicalizef16",
+ additional_deps = [
+ ":__support_math_canonicalizef16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximumbf16",
+ additional_deps = [
+ ":__support_math_fmaximumbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magbf16",
+ additional_deps = [
+ ":__support_math_fmaximum_magbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numbf16",
+ additional_deps = [
+ ":__support_math_fmaximum_numbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminbf16",
+ additional_deps = [
+ ":__support_math_fminbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimumbf16",
+ additional_deps = [
+ ":__support_math_fminimumbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magbf16",
+ additional_deps = [
+ ":__support_math_fminimum_magbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numbf16",
+ additional_deps = [
+ ":__support_math_fminimum_mag_numbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numbf16",
+ additional_deps = [
+ ":__support_math_fminimum_numbf16",
+ ],
+)
+
+libc_math_function(
+ name = "frexpbf16",
+ additional_deps = [
+ ":__support_math_frexpbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpbf16",
+ additional_deps = [
+ ":__support_math_fromfpbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpxbf16",
+ additional_deps = [
+ ":__support_math_fromfpxbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ilogbbf16",
+ additional_deps = [
+ ":__support_math_ilogbbf16",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonical",
+ additional_deps = [
+ ":__support_math_iscanonical",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicalbf16",
+ additional_deps = [
+ ":__support_math_iscanonicalbf16",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicalf",
+ additional_deps = [
+ ":__support_math_iscanonicalf",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicall",
+ additional_deps = [
+ ":__support_math_iscanonicall",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicalf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_iscanonicalf128",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicalf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_iscanonicalf80",
+ ],
+)
+
+libc_math_function(
+ name = "iscanonicalf16",
+ additional_deps = [
+ ":__support_math_iscanonicalf16",
+ ],
+)
+
+libc_math_function(
+ name = "isnan",
+ additional_deps = [
+ ":__support_math_isnan",
+ ],
+)
+
+libc_math_function(
+ name = "isnanf",
+ additional_deps = [
+ ":__support_math_isnanf",
+ ],
+)
+
+libc_math_function(
+ name = "isnanf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_isnanf128",
+ ],
+)
+
+libc_math_function(
+ name = "isnanf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_isnanf80",
+ ],
+)
+
+libc_math_function(
+ name = "isnanl",
+ additional_deps = [
+ ":__support_math_isnanl",
+ ],
+)
+
+libc_math_function(
+ name = "isnanf16",
+ additional_deps = [
+ ":__support_math_isnanf16",
+ ],
+)
+
+libc_math_function(
+ name = "isnanbf16",
+ additional_deps = [
+ ":__support_math_isnanbf16",
+ ],
+)
+
+libc_math_function(
+ name = "issignaling",
+ additional_deps = [
+ ":__support_math_issignaling",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingbf16",
+ additional_deps = [
+ ":__support_math_issignalingbf16",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingf",
+ additional_deps = [
+ ":__support_math_issignalingf",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingl",
+ additional_deps = [
+ ":__support_math_issignalingl",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_issignalingf128",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_issignalingf80",
+ ],
+)
+
+libc_math_function(
+ name = "issignalingf16",
+ additional_deps = [
+ ":__support_math_issignalingf16",
+ ],
+)
+
+libc_math_function(
+ name = "cbrt",
+ additional_deps = [":__support_math_cbrt"],
+)
+
+libc_math_function(
+ name = "cbrtbf16",
+ additional_deps = [":__support_math_cbrtbf16"],
+)
+
+libc_math_function(
+ name = "cbrtf",
+ additional_deps = [":__support_math_cbrtf"],
+)
+
+libc_math_function(
+ name = "cbrtf16",
+ additional_deps = [":__support_math_cbrtf16"],
+)
+
+libc_math_function(
+ name = "ceil",
+ additional_deps = [
+ ":__support_math_ceil",
+ ],
+)
+
+libc_math_function(
+ name = "ceilbf16",
+ additional_deps = [
+ ":__support_math_ceilbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ceilf",
+ additional_deps = [
+ ":__support_math_ceilf",
+ ],
+)
+
+libc_math_function(
+ name = "ceill",
+ additional_deps = [
+ ":__support_math_ceill",
+ ],
+)
+
+libc_math_function(
+ name = "ceilf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_math_ceilf128",
+ ":__support_fputil_float128",
+ ],
+)
+
+libc_math_function(
+ name = "ceilf16",
+ additional_deps = [
+ ":__support_math_ceilf16",
+ ],
+)
+
+libc_math_function(
+ name = "copysign",
+ additional_deps = [
+ ":__support_math_copysign",
+ ],
+)
+
+libc_math_function(
+ name = "copysignbf16",
+ additional_deps = [
+ ":__support_math_copysignbf16",
+ ],
+)
+
+libc_math_function(
+ name = "copysignf",
+ additional_deps = [
+ ":__support_math_copysignf",
+ ],
+)
+
+libc_math_function(
+ name = "copysignl",
+ additional_deps = [
+ ":__support_math_copysignl",
+ ],
+)
+
+libc_math_function(
+ name = "copysignf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_copysignf128",
+ ],
+)
+
+libc_math_function(
+ name = "copysignf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_copysignf80",
+ ],
+)
+
+libc_math_function(
+ name = "copysignf16",
+ additional_deps = [
+ ":__support_math_copysignf16",
+ ],
+)
+
+libc_math_function(
+ name = "cos",
+ additional_deps = [
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_cos",
+ ":__support_math_cos_integer_eval",
+ ],
+)
+
+libc_math_function(
+ name = "cosf",
+ additional_deps = [":__support_math_cosf"],
+)
+
+libc_math_function(
+ name = "cosf16",
+ additional_deps = [
+ ":__support_math_cosf16",
+ ],
+)
+
+libc_math_function(
+ name = "cosh",
+ additional_deps = [":__support_math_cosh"],
+)
+
+libc_math_function(
+ name = "coshf",
+ additional_deps = [":__support_math_coshf"],
+)
+
+libc_math_function(
+ name = "coshf16",
+ additional_deps = [
+ ":__support_math_coshf16",
+ ],
+)
+
+libc_math_function(
+ name = "cospif",
+ additional_deps = [":__support_math_cospif"],
+)
+
+libc_math_function(
+ name = "cospif16",
+ additional_deps = [
+ ":__support_math_cospif16",
+ ],
+)
+
+libc_math_function(
+ name = "daddl",
+ additional_deps = [
+ ":__support_math_daddl",
+ ],
+)
+
+libc_math_function(
+ name = "daddf128",
+ additional_deps = [
+ ":__support_math_daddf128",
+ ],
+)
+
+libc_math_function(
+ name = "ddivl",
+ additional_deps = [
+ ":__support_math_ddivl",
+ ],
+)
+
+libc_math_function(
+ name = "ddivf128",
+ additional_deps = [
+ ":__support_math_ddivf128",
+ ],
+)
+
+libc_math_function(
+ name = "dfmal",
+ additional_deps = [":__support_math_dfmal"],
+)
+
+libc_math_function(
+ name = "dfmaf128",
+ additional_deps = [
+ ":__support_math_dfmaf128",
+ ":llvm_libc_types_float128",
+ ],
+)
+
+libc_math_function(
+ name = "dmull",
+ additional_deps = [
+ ":__support_math_dmull",
+ ],
+)
+
+libc_math_function(
+ name = "dmulf128",
+ additional_deps = [
+ ":__support_math_dmulf128",
+ ],
+)
+
+libc_math_function(
+ name = "dsqrtl",
+ additional_deps = [":__support_math_dsqrtl"],
+)
+
+libc_math_function(
+ name = "dsqrtf128",
+ additional_deps = [
+ ":__support_math_dsqrtf128",
+ ],
+)
+
+libc_math_function(
+ name = "dsubl",
+ additional_deps = [
+ ":__support_math_dsubl",
+ ],
+)
+
+libc_math_function(
+ name = "dsubf128",
+ additional_deps = [
+ ":__support_math_dsubf128",
+ ],
+)
+
+libc_math_function(
+ name = "erff",
+ additional_deps = [":__support_math_erff"],
+)
+
+libc_math_function(
+ name = "erff16",
+ additional_deps = [
+ ":__support_math_erff16",
+ ],
+)
+
+libc_math_function(
+ name = "erfcf16",
+ additional_deps = [
+ ":__support_math_erfcf16",
+ ],
+)
+
+libc_math_function(
+ name = "exp",
+ additional_deps = [
+ ":__support_math_exp",
+ ],
+)
+
+libc_math_function(
+ name = "expf",
+ additional_deps = [
+ ":__support_math_expf",
+ ":__support_math_static_rounding_expf",
+ ],
+)
+
+libc_math_function(
+ name = "expf16",
+ additional_deps = [
+ ":__support_math_expf16",
+ ":__support_math_expxf16_utils",
+ ],
+)
+
+libc_math_function(
+ name = "expbf16",
+ additional_deps = [
+ ":__support_math_expbf16",
+ ],
+)
+
+libc_math_function(
+ name = "exp10",
+ additional_deps = [
+ ":__support_math_exp10",
+ ],
+)
+
+libc_math_function(
+ name = "exp10f",
+ additional_deps = [
+ ":__support_math_exp10f",
+ ],
+)
+
+libc_math_function(
+ name = "exp10f16",
+ additional_deps = [
+ ":__support_math_exp10f16",
+ ],
+)
+
+libc_math_function(
+ name = "exp10m1f16",
+ additional_deps = [
+ ":__support_math_exp10m1f16",
+ ],
+)
+
+libc_math_function(
+ name = "exp10m1f",
+ additional_deps = [":__support_math_exp10m1f"],
+)
+
+libc_math_function(
+ name = "exp2",
+ additional_deps = [":__support_math_exp2"],
+)
+
+libc_math_function(
+ name = "exp2f",
+ additional_deps = [
+ ":__support_math_exp2f",
+ ":__support_math_static_rounding_exp2f",
+ ],
+)
+
+libc_math_function(
+ name = "exp2f16",
+ additional_deps = [
+ ":__support_math_exp2f16",
+ ],
+)
+
+libc_math_function(
+ name = "exp2m1f",
+ additional_deps = [":__support_math_exp2m1f"],
+)
+
+libc_math_function(
+ name = "exp2m1f16",
+ additional_deps = [
+ ":__support_math_exp2m1f16",
+ ],
+)
+
+libc_math_function(
+ name = "expm1",
+ additional_deps = [":__support_math_expm1"],
+)
+
+libc_math_function(
+ name = "expm1f",
+ additional_deps = [":__support_math_expm1f"],
+)
+
+libc_math_function(
+ name = "expm1f16",
+ additional_deps = [
+ ":__support_math_expm1f16",
+ ],
+)
+
+libc_math_function(
+ name = "f16add",
+ additional_deps = [":__support_math_f16add"],
+)
+
+libc_math_function(
+ name = "f16addf",
+ additional_deps = [":__support_math_f16addf"],
+)
+
+libc_math_function(
+ name = "f16addf128",
+ additional_deps = [":__support_math_f16addf128"],
+)
+
+libc_math_function(
+ name = "f16addl",
+ additional_deps = [":__support_math_f16addl"],
+)
+
+libc_math_function(
+ name = "f16div",
+ additional_deps = [
+ ":__support_math_f16div",
+ ],
+)
+
+libc_math_function(
+ name = "f16divf",
+ additional_deps = [
+ ":__support_math_f16divf",
+ ],
+)
+
+libc_math_function(
+ name = "f16divf128",
+ additional_deps = [
+ ":__support_math_f16divf128",
+ ],
+)
+
+libc_math_function(
+ name = "f16divl",
+ additional_deps = [
+ ":__support_math_f16divl",
+ ],
+)
+
+libc_math_function(
+ name = "f16fma",
+ additional_deps = [
+ ":__support_math_f16fma",
+ ],
+)
+
+libc_math_function(
+ name = "f16fmaf",
+ additional_deps = [
+ ":__support_math_f16fmaf",
+ ],
+)
+
+libc_math_function(
+ name = "f16fmaf128",
+ additional_deps = [
+ ":__support_math_f16fmaf128",
+ ],
+)
+
+libc_math_function(
+ name = "f16fmal",
+ additional_deps = [
+ ":__support_math_f16fmal",
+ ],
+)
+
+libc_math_function(
+ name = "f16mul",
+ additional_deps = [
+ ":__support_math_f16mul",
+ ],
+)
+
+libc_math_function(
+ name = "f16mulf",
+ additional_deps = [
+ ":__support_math_f16mulf",
+ ],
+)
+
+libc_math_function(
+ name = "f16mulf128",
+ additional_deps = [
+ ":__support_math_f16mulf128",
+ ],
+)
+
+libc_math_function(
+ name = "f16mull",
+ additional_deps = [
+ ":__support_math_f16mull",
+ ],
+)
+
+libc_math_function(
+ name = "f16sqrt",
+ additional_deps = [
+ ":__support_math_f16sqrt",
+ ],
+)
+
+libc_math_function(
+ name = "f16sqrtf",
+ additional_deps = [
+ ":__support_math_f16sqrtf",
+ ],
+)
+
+libc_math_function(
+ name = "f16sqrtf128",
+ additional_deps = [
+ ":__support_math_f16sqrtf128",
+ ],
+)
+
+libc_math_function(
+ name = "f16sqrtl",
+ additional_deps = [
+ ":__support_math_f16sqrtl",
+ ],
+)
+
+libc_math_function(
+ name = "f16sub",
+ additional_deps = [
+ ":__support_math_f16sub",
+ ],
+)
+
+libc_math_function(
+ name = "f16subf",
+ additional_deps = [
+ ":__support_math_f16subf",
+ ],
+)
+
+libc_math_function(
+ name = "f16subf128",
+ additional_deps = [
+ ":__support_math_f16subf128",
+ ],
+)
+
+libc_math_function(
+ name = "f16subl",
+ additional_deps = [
+ ":__support_math_f16subl",
+ ],
+)
+
+libc_math_function(
+ name = "fabs",
+ additional_deps = [
+ ":__support_math_fabs",
+ ],
+)
+
+libc_math_function(
+ name = "fabsbf16",
+ additional_deps = [
+ ":__support_math_fabsbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fabsf",
+ additional_deps = [
+ ":__support_math_fabsf",
+ ],
+)
+
+libc_math_function(
+ name = "fabsl",
+ additional_deps = [
+ ":__support_math_fabsl",
+ ],
+)
+
+libc_math_function(
+ name = "fabsf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fabsf128",
+ ],
+)
+
+libc_math_function(
+ name = "fabsf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fabsf80",
+ ],
+)
+
+libc_math_function(
+ name = "fabsf16",
+ additional_deps = [
+ ":__support_math_fabsf16",
+ ],
+)
+
+libc_math_function(
+ name = "fadd",
+ additional_deps = [
+ ":__support_math_fadd",
+ ],
+)
+
+libc_math_function(
+ name = "faddl",
+ additional_deps = [
+ ":__support_math_faddl",
+ ],
+)
+
+libc_math_function(
+ name = "faddf128",
+ additional_deps = [
+ ":__support_math_faddf128",
+ ],
+)
+
+libc_math_function(
+ name = "fdim",
+ additional_deps = [
+ ":__support_math_fdim",
+ ],
+)
+
+libc_math_function(
+ name = "fdimbf16",
+ additional_deps = [
+ ":__support_math_fdimbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fdimf",
+ additional_deps = [
+ ":__support_math_fdimf",
+ ],
+)
+
+libc_math_function(
+ name = "fdiml",
+ additional_deps = [
+ ":__support_math_fdiml",
+ ],
+)
+
+libc_math_function(
+ name = "fdimf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fdimf128",
+ ],
+)
+
+libc_math_function(
+ name = "fdimf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fdimf80",
+ ],
+)
+
+libc_math_function(
+ name = "fdimf16",
+ additional_deps = [
+ ":__support_math_fdimf16",
+ ],
+)
+
+libc_math_function(
+ name = "fdiv",
+ additional_deps = [
+ ":__support_math_fdiv",
+ ],
+)
+
+libc_math_function(
+ name = "fdivl",
+ additional_deps = [
+ ":__support_math_fdivl",
+ ],
+)
+
+libc_math_function(
+ name = "fdivf128",
+ additional_deps = [
+ ":__support_math_fdivf128",
+ ],
+)
+
+libc_math_function(
+ name = "ffma",
+ additional_deps = [
+ ":__support_math_ffma",
+ ],
+)
+
+libc_math_function(
+ name = "ffmal",
+ additional_deps = [":__support_math_ffmal"],
+)
+
+libc_math_function(
+ name = "ffmaf128",
+ additional_deps = [
+ ":__support_math_ffmaf128",
+ ],
+)
+
+libc_math_function(
+ name = "floor",
+ additional_deps = [
+ ":__support_math_floor",
+ ],
+)
+
+libc_math_function(
+ name = "floorbf16",
+ additional_deps = [
+ ":__support_math_floorbf16",
+ ],
+)
+
+libc_math_function(
+ name = "floorf",
+ additional_deps = [
+ ":__support_math_floorf",
+ ],
+)
+
+libc_math_function(
+ name = "floorl",
+ additional_deps = [
+ ":__support_math_floorl",
+ ],
+)
+
+libc_math_function(
+ name = "floorf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_math_floorf128",
+ ":__support_fputil_float128",
+ ],
+)
+
+libc_math_function(
+ name = "floorf16",
+ additional_deps = [
+ ":__support_math_floorf16",
+ ],
+)
+
+libc_math_function(
+ name = "fma",
+ additional_deps = [":__support_math_fma"],
+)
+
+libc_math_function(
+ name = "fmaf",
+ additional_deps = [":__support_math_fmaf"],
+)
+
+libc_math_function(
+ name = "fmaf16",
+ additional_deps = [
+ ":__support_math_fmaf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmabf16",
+ additional_deps = [
+ ":__support_math_fmabf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmax",
+ additional_deps = [
+ ":__support_math_fmax",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxf",
+ additional_deps = [
+ ":__support_math_fmaxf",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxbf16",
+ additional_deps = [
+ ":__support_math_fmaxbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fmaxf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxf16",
+ additional_deps = [
+ ":__support_math_fmaxf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fmaxf80",
+ ],
+)
+
+libc_math_function(
+ name = "fmaxl",
+ additional_deps = [
+ ":__support_math_fmaxl",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum",
+ additional_deps = [
+ ":__support_math_fmaximum",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximumf",
+ additional_deps = [
+ ":__support_math_fmaximumf",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximuml",
+ additional_deps = [
+ ":__support_math_fmaximuml",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximumf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fmaximumf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximumf16",
+ additional_deps = [
+ ":__support_math_fmaximumf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximumf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fmaximumf80",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag",
+ additional_deps = [
+ ":__support_math_fmaximum_mag",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magf",
+ additional_deps = [
+ ":__support_math_fmaximum_magf",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magl",
+ additional_deps = [
+ ":__support_math_fmaximum_magl",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fmaximum_magf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fmaximum_magf80",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_magf16",
+ additional_deps = [
+ ":__support_math_fmaximum_magf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_num",
+ additional_deps = [
+ ":__support_math_fmaximum_mag_num",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numbf16",
+ additional_deps = [
+ ":__support_math_fmaximum_mag_numbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numf",
+ additional_deps = [
+ ":__support_math_fmaximum_mag_numf",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numl",
+ additional_deps = [
+ ":__support_math_fmaximum_mag_numl",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fmaximum_mag_numf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fmaximum_mag_numf80",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_mag_numf16",
+ additional_deps = [
+ ":__support_math_fmaximum_mag_numf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_num",
+ additional_deps = [
+ ":__support_math_fmaximum_num",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numf",
+ additional_deps = [
+ ":__support_math_fmaximum_numf",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numl",
+ additional_deps = [
+ ":__support_math_fmaximum_numl",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fmaximum_numf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fmaximum_numf80",
+ ],
+)
+
+libc_math_function(
+ name = "fmaximum_numf16",
+ additional_deps = [
+ ":__support_math_fmaximum_numf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmin",
+ additional_deps = [
+ ":__support_math_fmin",
+ ],
+)
+
+libc_math_function(
+ name = "fminf",
+ additional_deps = [
+ ":__support_math_fminf",
+ ],
+)
+
+libc_math_function(
+ name = "fminl",
+ additional_deps = [
+ ":__support_math_fminl",
+ ],
+)
+
+libc_math_function(
+ name = "fminf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fminf128",
+ ],
+)
+
+libc_math_function(
+ name = "fminf16",
+ additional_deps = [
+ ":__support_math_fminf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fminf80",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum",
+ additional_deps = [
+ ":__support_math_fminimum",
+ ],
+)
+
+libc_math_function(
+ name = "fminimumf",
+ additional_deps = [
+ ":__support_math_fminimumf",
+ ],
+)
+
+libc_math_function(
+ name = "fminimuml",
+ additional_deps = [
+ ":__support_math_fminimuml",
+ ],
+)
+
+libc_math_function(
+ name = "fminimumf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fminimumf128",
+ ],
+)
+
+libc_math_function(
+ name = "fminimumf16",
+ additional_deps = [
+ ":__support_math_fminimumf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimumf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fminimumf80",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag",
+ additional_deps = [
+ ":__support_math_fminimum_mag",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magf",
+ additional_deps = [
+ ":__support_math_fminimum_magf",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magl",
+ additional_deps = [
+ ":__support_math_fminimum_magl",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fminimum_magf128",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fminimum_magf80",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_magf16",
+ additional_deps = [
+ ":__support_math_fminimum_magf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_num",
+ additional_deps = [
+ ":__support_math_fminimum_mag_num",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numf",
+ additional_deps = [
+ ":__support_math_fminimum_mag_numf",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numl",
+ additional_deps = [
+ ":__support_math_fminimum_mag_numl",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fminimum_mag_numf128",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fminimum_mag_numf80",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_mag_numf16",
+ additional_deps = [
+ ":__support_math_fminimum_mag_numf16",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_num",
+ additional_deps = [
+ ":__support_math_fminimum_num",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numf",
+ additional_deps = [
+ ":__support_math_fminimum_numf",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numl",
+ additional_deps = [
+ ":__support_math_fminimum_numl",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_fminimum_numf128",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_fminimum_numf80",
+ ],
+)
+
+libc_math_function(
+ name = "fminimum_numf16",
+ additional_deps = [
+ ":__support_math_fminimum_numf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmod",
+ additional_deps = [
+ ":__support_math_fmod",
+ ],
+)
+
+libc_math_function(
+ name = "fmodbf16",
+ additional_deps = [
+ ":__support_math_fmodbf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmodf",
+ additional_deps = [
+ ":__support_math_fmodf",
+ ],
+)
+
+libc_math_function(
+ name = "fmodl",
+ additional_deps = [
+ ":__support_math_fmodl",
+ ],
+)
+
+libc_math_function(
+ name = "fmodf128",
+ additional_deps = [
+ ":__support_math_fmodf128",
+ ],
+)
+
+libc_math_function(
+ name = "fmodf16",
+ additional_deps = [
+ ":__support_math_fmodf16",
+ ],
+)
+
+libc_math_function(
+ name = "fmul",
+ additional_deps = [
+ ":__support_math_fmul",
+ ],
+)
+
+libc_math_function(
+ name = "fmull",
+ additional_deps = [
+ ":__support_math_fmull",
+ ],
+)
+
+libc_math_function(
+ name = "fmulf128",
+ additional_deps = [
+ ":__support_math_fmulf128",
+ ],
+)
+
+libc_math_function(
+ name = "frexp",
+ additional_deps = [
+ ":__support_math_frexp",
+ ],
+)
+
+libc_math_function(
+ name = "frexpf",
+ additional_deps = [":__support_math_frexpf"],
+)
+
+libc_math_function(
+ name = "frexpl",
+ additional_deps = [
+ ":__support_math_frexpl",
+ ],
+)
+
+libc_math_function(
+ name = "frexpf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_frexpf128",
+ ],
+)
+
+libc_math_function(
+ name = "frexpf16",
+ additional_deps = [
+ ":__support_math_frexpf16",
+ ],
+)
+
+libc_math_function(
+ name = "fromfp",
+ additional_deps = [
+ ":__support_math_fromfp",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpf",
+ additional_deps = [
+ ":__support_math_fromfpf",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpl",
+ additional_deps = [
+ ":__support_math_fromfpl",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpf128",
+ additional_deps = [
+ ":__support_math_fromfpf128",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpf16",
+ additional_deps = [
+ ":__support_math_fromfpf16",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpx",
+ additional_deps = [
+ ":__support_math_fromfpx",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpxf",
+ additional_deps = [
+ ":__support_math_fromfpxf",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpxl",
+ additional_deps = [
+ ":__support_math_fromfpxl",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpxf128",
+ additional_deps = [
+ ":__support_math_fromfpxf128",
+ ],
+)
+
+libc_math_function(
+ name = "fromfpxf16",
+ additional_deps = [
+ ":__support_math_fromfpxf16",
+ ],
+)
+
+libc_math_function(
+ name = "fsqrt",
+ additional_deps = [":__support_math_fsqrt"],
+)
+
+libc_math_function(
+ name = "fsqrtl",
+ additional_deps = [":__support_math_fsqrtl"],
+)
+
+libc_math_function(
+ name = "fsqrtf128",
+ additional_deps = [
+ ":__support_math_fsqrtf128",
+ ],
+)
+
+libc_math_function(
+ name = "fsub",
+ additional_deps = [
+ ":__support_math_fsub",
+ ],
+)
+
+libc_math_function(
+ name = "fsubl",
+ additional_deps = [
+ ":__support_math_fsubl",
+ ],
+)
+
+libc_math_function(
+ name = "fsubf128",
+ additional_deps = [
+ ":__support_math_fsubf128",
+ ],
+)
+
+libc_math_function(
+ name = "getpayload",
+ additional_deps = [
+ ":__support_math_getpayload",
+ ],
+)
+
+libc_math_function(
+ name = "getpayloadbf16",
+ additional_deps = [
+ ":__support_math_getpayloadbf16",
+ ],
+)
+
+libc_math_function(
+ name = "getpayloadf",
+ additional_deps = [
+ ":__support_math_getpayloadf",
+ ],
+)
+
+libc_math_function(
+ name = "getpayloadl",
+ additional_deps = [
+ ":__support_math_getpayloadl",
+ ],
+)
+
+libc_math_function(
+ name = "getpayloadf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_getpayloadf128",
+ ],
+)
+
+libc_math_function(
+ name = "getpayloadf16",
+ additional_deps = [
+ ":__support_math_getpayloadf16",
+ ],
+)
+
+libc_math_function(
+ name = "hypot",
+ additional_deps = [
+ ":__support_math_hypot",
+ ],
+)
+
+libc_math_function(
+ name = "hypotf",
+ additional_deps = [
+ ":__support_math_hypotf",
+ ],
+)
+
+libc_math_function(
+ name = "hypotbf16",
+ additional_deps = [
+ ":__support_math_hypotbf16",
+ ],
+)
+
+libc_math_function(
+ name = "hypotf16",
+ additional_deps = [
+ ":__support_math_hypotf16",
+ ],
+)
+
+libc_math_function(
+ name = "ilogb",
+ additional_deps = [":__support_math_ilogb"],
+)
+
+libc_math_function(
+ name = "ilogbf",
+ additional_deps = [":__support_math_ilogbf"],
+)
+
+libc_math_function(
+ name = "ilogbl",
+ additional_deps = ["__support_math_ilogbl"],
+)
+
+libc_math_function(
+ name = "ilogbf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_ilogbf128",
+ ],
+)
+
+libc_math_function(
+ name = "ilogbf16",
+ additional_deps = [
+ ":__support_math_ilogbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ldexp",
+ additional_deps = [
+ ":__support_math_ldexp",
+ ],
+)
+
+libc_math_function(
+ name = "ldexpbf16",
+ additional_deps = [
+ ":__support_math_ldexpbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ldexpf",
+ additional_deps = [":__support_math_ldexpf"],
+)
+
+libc_math_function(
+ name = "ldexpl",
+ additional_deps = [
+ ":__support_math_ldexpl",
+ ],
+)
+
+libc_math_function(
+ name = "ldexpf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_ldexpf128",
+ ],
+)
+
+libc_math_function(
+ name = "ldexpf16",
+ additional_deps = [
+ ":__support_math_ldexpf16",
+ ],
+)
+
+libc_math_function(
+ name = "lgammaf",
+ additional_deps = [":__support_math_lgammaf"],
+)
+
+libc_math_function(
+ name = "lgammaf16",
+ additional_deps = [":__support_math_lgammaf16"],
+)
+
+libc_math_function(
+ name = "llogb",
+ additional_deps = [
+ ":__support_math_llogb",
+ ],
+)
+
+libc_math_function(
+ name = "llogbbf16",
+ additional_deps = [
+ ":__support_math_llogbbf16",
+ ],
+)
+
+libc_math_function(
+ name = "llogbf",
+ additional_deps = [
+ ":__support_math_llogbf",
+ ],
+)
+
+libc_math_function(
+ name = "llogbl",
+ additional_deps = [
+ ":__support_math_llogbl",
+ ],
+)
+
+libc_math_function(
+ name = "llogbf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_llogbf128",
+ ],
+)
+
+libc_math_function(
+ name = "llogbf16",
+ additional_deps = [
+ ":__support_math_llogbf16",
+ ],
+)
+
+libc_math_function(
+ name = "llrint",
+ additional_deps = [
+ ":__support_math_llrint",
+ ],
+)
+
+libc_math_function(
+ name = "llrintbf16",
+ additional_deps = [
+ ":__support_math_llrintbf16",
+ ],
+)
+
+libc_math_function(
+ name = "llrintf",
+ additional_deps = [
+ ":__support_math_llrintf",
+ ],
+)
+
+libc_math_function(
+ name = "llrintl",
+ additional_deps = [
+ ":__support_math_llrintl",
+ ],
+)
+
+libc_math_function(
+ name = "llrintf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_llrintf128",
+ ],
+)
+
+libc_math_function(
+ name = "llrintf16",
+ additional_deps = [
+ ":__support_math_llrintf16",
+ ],
+)
+
+libc_math_function(
+ name = "llround",
+ additional_deps = [
+ ":__support_math_llround",
+ ],
+)
+
+libc_math_function(
+ name = "llroundbf16",
+ additional_deps = [
+ ":__support_math_llroundbf16",
+ ],
+)
+
+libc_math_function(
+ name = "llroundf",
+ additional_deps = [
+ ":__support_math_llroundf",
+ ],
+)
+
+libc_math_function(
+ name = "llroundl",
+ additional_deps = [
+ ":__support_math_llroundl",
+ ],
+)
+
+libc_math_function(
+ name = "llroundf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_llroundf128",
+ ],
+)
+
+libc_math_function(
+ name = "llroundf16",
+ additional_deps = [
+ ":__support_math_llroundf16",
+ ],
+)
+
+libc_math_function(
+ name = "log",
+ additional_deps = [
+ ":__support_math_log",
+ ],
+)
+
+libc_math_function(
+ name = "logf",
+ additional_deps = [":__support_math_logf"],
+)
+
+libc_math_function(
+ name = "logf16",
+ additional_deps = [
+ ":__support_math_logf16",
+ ],
+)
+
+libc_math_function(
+ name = "log10",
+ additional_deps = [":__support_math_log10"],
+)
+
+libc_math_function(
+ name = "log10f",
+ additional_deps = [
+ ":__support_math_log10f",
+ ],
+)
+
+libc_math_function(
+ name = "log10f16",
+ additional_deps = [
+ ":__support_math_log10f16",
+ ],
+)
+
+libc_math_function(
+ name = "log10p1bf16",
+ additional_deps = [
+ ":__support_math_log10p1bf16",
+ ],
+)
+
+libc_math_function(
+ name = "log10p1f16",
+ additional_deps = [
+ ":__support_math_log10p1f16",
+ ],
+)
+
+libc_math_function(
+ name = "log1p",
+ additional_deps = [":__support_math_log1p"],
+)
+
+libc_math_function(
+ name = "log1pf",
+ additional_deps = [
+ ":__support_math_log1pf",
+ ],
+)
+
+libc_math_function(
+ name = "log2",
+ additional_deps = [":__support_math_log2"],
+)
+
+libc_math_function(
+ name = "log2f",
+ additional_deps = [
+ ":__support_math_log2f",
+ ],
+)
+
+libc_math_function(
+ name = "log2f16",
+ additional_deps = [
+ ":__support_math_log2f16",
+ ],
+)
+
+libc_math_function(
+ name = "log2p1f16",
+ additional_deps = [
+ ":__support_math_log2p1f16",
+ ],
+)
+
+libc_math_function(
+ name = "logb",
+ additional_deps = [
+ ":__support_math_logb",
+ ],
+)
+
+libc_math_function(
+ name = "logbbf16",
+ additional_deps = [":__support_math_logbbf16"],
+)
+
+libc_math_function(
+ name = "logbf",
+ additional_deps = [":__support_math_logbf"],
+)
+
+libc_math_function(
+ name = "logbl",
+ additional_deps = [":__support_math_logbl"],
+)
+
+libc_math_function(
+ name = "logbf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_logbf128",
+ ],
+)
+
+libc_math_function(
+ name = "logbf16",
+ additional_deps = [
+ ":__support_math_logbf16",
+ ],
+)
+
+libc_math_function(
+ name = "log_bf16",
+ additional_deps = [
+ ":__support_math_log_bf16",
+ ],
+)
+
+libc_math_function(
+ name = "lrint",
+ additional_deps = [
+ ":__support_math_lrint",
+ ],
+)
+
+libc_math_function(
+ name = "lrintbf16",
+ additional_deps = [
+ ":__support_math_lrintbf16",
+ ],
+)
+
+libc_math_function(
+ name = "lrintf",
+ additional_deps = [
+ ":__support_math_lrintf",
+ ],
+)
+
+libc_math_function(
+ name = "lrintl",
+ additional_deps = [
+ ":__support_math_lrintl",
+ ],
+)
+
+libc_math_function(
+ name = "lrintf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_lrintf128",
+ ],
+)
+
+libc_math_function(
+ name = "lrintf16",
+ additional_deps = [
+ ":__support_math_lrintf16",
+ ],
+)
+
+libc_math_function(
+ name = "lround",
+ additional_deps = [
+ ":__support_math_lround",
+ ],
+)
+
+libc_math_function(
+ name = "lroundbf16",
+ additional_deps = [
+ ":__support_math_lroundbf16",
+ ],
+)
+
+libc_math_function(
+ name = "lroundf",
+ additional_deps = [
+ ":__support_math_lroundf",
+ ],
+)
+
+libc_math_function(
+ name = "lroundl",
+ additional_deps = [
+ ":__support_math_lroundl",
+ ],
+)
+
+libc_math_function(
+ name = "lroundf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_lroundf128",
+ ],
+)
+
+libc_math_function(
+ name = "lroundf16",
+ additional_deps = [
+ ":__support_math_lroundf16",
+ ],
+)
+
+libc_math_function(
+ name = "modf",
+ additional_deps = [
+ ":__support_math_modf",
+ ],
+)
+
+libc_math_function(
+ name = "modfbf16",
+ additional_deps = [
+ ":__support_math_modfbf16",
+ ],
+)
+
+libc_math_function(
+ name = "modff",
+ additional_deps = [
+ ":__support_math_modff",
+ ],
+)
+
+libc_math_function(
+ name = "modfl",
+ additional_deps = [
+ ":__support_math_modfl",
+ ],
+)
+
+libc_math_function(
+ name = "modff128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_modff128",
+ ],
+)
+
+libc_math_function(
+ name = "modff16",
+ additional_deps = [
+ ":__support_math_modff16",
+ ],
+)
+
+libc_math_function(
+ name = "nan",
+ additional_deps = [
+ ":__support_math_nan",
+ ],
+)
+
+libc_math_function(
+ name = "nanbf16",
+ additional_deps = [
+ ":__support_math_nanbf16",
+ ],
+)
+
+libc_math_function(
+ name = "nanf",
+ additional_deps = [
+ ":__support_math_nanf",
+ ],
+)
+
+libc_math_function(
+ name = "nanl",
+ additional_deps = [
+ ":__support_math_nanl",
+ ],
+)
+
+libc_math_function(
+ name = "nanf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_nanf128",
+ ],
+)
+
+libc_math_function(
+ name = "nanf16",
+ additional_deps = [
+ ":__support_math_nanf16",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyint",
+ additional_deps = [
+ ":__support_math_nearbyint",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyintbf16",
+ additional_deps = [
+ ":__support_math_nearbyintbf16",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyintf",
+ additional_deps = [
+ ":__support_math_nearbyintf",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyintl",
+ additional_deps = [
+ ":__support_math_nearbyintl",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyintf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_nearbyintf128",
+ ],
+)
+
+libc_math_function(
+ name = "nearbyintf16",
+ additional_deps = [
+ ":__support_math_nearbyintf16",
+ ],
+)
+
+libc_math_function(
+ name = "nextafter",
+ additional_deps = [
+ ":__support_math_nextafter",
+ ],
+)
+
+libc_math_function(
+ name = "nextafterbf16",
+ additional_deps = [
+ ":__support_math_nextafterbf16",
+ ],
+)
+
+libc_math_function(
+ name = "nextafterf",
+ additional_deps = [
+ ":__support_math_nextafterf",
+ ],
+)
+
+libc_math_function(
+ name = "nextafterl",
+ additional_deps = [
+ ":__support_math_nextafterl",
+ ],
+)
+
+libc_math_function(
+ name = "nextafterf128",
+ additional_deps = [
+ ":__support_math_nextafterf128",
+ ],
+)
+
+libc_math_function(
+ name = "nextafterf16",
+ additional_deps = [
+ ":__support_math_nextafterf16",
+ ],
+)
+
+libc_math_function(
+ name = "nextdown",
+ additional_deps = [
+ ":__support_math_nextdown",
+ ],
+)
+
+libc_math_function(
+ name = "nextdownbf16",
+ additional_deps = [
+ ":__support_math_nextdownbf16",
+ ],
+)
+
+libc_math_function(
+ name = "nextdownf",
+ additional_deps = [
+ ":__support_math_nextdownf",
+ ],
+)
+
+libc_math_function(
+ name = "nextdownl",
+ additional_deps = [
+ ":__support_math_nextdownl",
+ ],
+)
+
+libc_math_function(
+ name = "nextdownf128",
+ additional_deps = [
+ ":__support_math_nextdownf128",
+ ],
+)
+
+libc_math_function(
+ name = "nextdownf16",
+ additional_deps = [
+ ":__support_math_nextdownf16",
+ ],
+)
+
+libc_math_function(
+ name = "nexttoward",
+ additional_deps = [
+ ":__support_math_nexttoward",
+ ],
+)
+
+libc_math_function(
+ name = "nexttowardbf16",
+ additional_deps = [
+ ":__support_math_nexttowardbf16",
+ ],
+)
+
+libc_math_function(
+ name = "nexttowardf",
+ additional_deps = [
+ ":__support_math_nexttowardf",
+ ],
+)
+
+libc_math_function(
+ name = "nexttowardf16",
+ additional_deps = [
+ ":__support_math_nexttowardf16",
+ ],
+)
+
+libc_math_function(
+ name = "nexttowardl",
+ additional_deps = [
+ ":__support_math_nexttowardl",
+ ],
+)
+
+libc_math_function(
+ name = "nextup",
+ additional_deps = [
+ ":__support_math_nextup",
+ ],
+)
+
+libc_math_function(
+ name = "nextupf",
+ additional_deps = [
+ ":__support_math_nextupf",
+ ],
+)
+
+libc_math_function(
+ name = "nextupl",
+ additional_deps = [
+ ":__support_math_nextupl",
+ ],
+)
+
+libc_math_function(
+ name = "nextupf128",
+ additional_deps = [
+ ":__support_math_nextupf128",
+ ],
+)
+
+libc_math_function(
+ name = "nextupf16",
+ additional_deps = [
+ ":__support_math_nextupf16",
+ ],
+)
+
+libc_math_function(
+ name = "nextupbf16",
+ additional_deps = [
+ ":__support_math_nextupbf16",
+ ],
+)
+
+libc_math_function(
+ name = "pow",
+ additional_deps = [
+ ":__support_math_pow",
+ ],
+)
+
+libc_math_function(
+ name = "powf",
+ additional_deps = [
+ ":__support_math_powf",
+ ],
+)
+
+libc_math_function(
+ name = "remainder",
+ additional_deps = [
+ ":__support_math_remainder",
+ ],
+)
+
+libc_math_function(
+ name = "remainderbf16",
+ additional_deps = [
+ ":__support_math_remainderbf16",
+ ],
+)
+
+libc_math_function(
+ name = "remainderf",
+ additional_deps = [
+ ":__support_math_remainderf",
+ ],
+)
+
+libc_math_function(
+ name = "remainderl",
+ additional_deps = [
+ ":__support_math_remainderl",
+ ],
+)
+
+libc_math_function(
+ name = "remainderf128",
+ additional_deps = [
+ ":__support_math_remainderf128",
+ ],
+)
+
+libc_math_function(
+ name = "remainderf16",
+ additional_deps = [
+ ":__support_math_remainderf16",
+ ],
+)
+
+libc_math_function(
+ name = "remquo",
+ additional_deps = [
+ ":__support_math_remquo",
+ ],
+)
+
+libc_math_function(
+ name = "remquobf16",
+ additional_deps = [
+ ":__support_math_remquobf16",
+ ],
+)
+
+libc_math_function(
+ name = "remquof",
+ additional_deps = [
+ ":__support_math_remquof",
+ ],
+)
+
+libc_math_function(
+ name = "remquol",
+ additional_deps = [
+ ":__support_math_remquol",
+ ],
+)
+
+libc_math_function(
+ name = "remquof128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_remquof128",
+ ],
+)
+
+libc_math_function(
+ name = "remquof16",
+ additional_deps = [
+ ":__support_math_remquof16",
+ ],
+)
+
+libc_math_function(
+ name = "rint",
+ additional_deps = [
+ ":__support_math_rint",
+ ],
+)
+
+libc_math_function(
+ name = "rintbf16",
+ additional_deps = [
+ ":__support_math_rintbf16",
+ ],
+)
+
+libc_math_function(
+ name = "rintf",
+ additional_deps = [
+ ":__support_math_rintf",
+ ],
+)
+
+libc_math_function(
+ name = "rintl",
+ additional_deps = [
+ ":__support_math_rintl",
+ ],
+)
+
+libc_math_function(
+ name = "rintf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_rintf128",
+ ],
+)
+
+libc_math_function(
+ name = "rintf16",
+ additional_deps = [
+ ":__support_math_rintf16",
+ ],
+)
+
+libc_math_function(
+ name = "round",
+ additional_deps = [
+ ":__support_math_round",
+ ],
+)
+
+libc_math_function(
+ name = "roundbf16",
+ additional_deps = [
+ ":__support_math_roundbf16",
+ ],
+)
+
+libc_math_function(
+ name = "roundevenbf16",
+ additional_deps = [
+ ":__support_math_roundevenbf16",
+ ],
+)
+
+libc_math_function(
+ name = "roundf",
+ additional_deps = [
+ ":__support_math_roundf",
+ ],
+)
+
+libc_math_function(
+ name = "roundl",
+ additional_deps = [
+ ":__support_math_roundl",
+ ],
+)
+
+libc_math_function(
+ name = "roundf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_roundf128",
+ ],
+)
+
+libc_math_function(
+ name = "roundf16",
+ additional_deps = [
+ ":__support_math_roundf16",
+ ],
+)
+
+libc_math_function(
+ name = "roundeven",
+ additional_deps = [
+ ":__support_math_roundeven",
+ ],
+)
+
+libc_math_function(
+ name = "roundevenf",
+ additional_deps = [
+ ":__support_math_roundevenf",
+ ],
+)
+
+libc_math_function(
+ name = "roundevenl",
+ additional_deps = [
+ ":__support_math_roundevenl",
+ ],
+)
+
+libc_math_function(
+ name = "roundevenf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_roundevenf128",
+ ],
+)
+
+libc_math_function(
+ name = "roundevenf16",
+ additional_deps = [
+ ":__support_math_roundevenf16",
+ ],
+)
+
+libc_math_function(
+ name = "rsqrtf",
+ additional_deps = [":__support_math_rsqrtf"],
+)
+
+libc_math_function(
+ name = "rsqrtf16",
+ additional_deps = [
+ ":__support_math_rsqrtf16",
+ ],
+)
+
+libc_math_function(
+ name = "scalbln",
+ additional_deps = [
+ ":__support_math_scalbln",
+ ],
+)
+
+libc_math_function(
+ name = "scalblnbf16",
+ additional_deps = [
+ ":__support_math_scalblnbf16",
+ ],
+)
+
+libc_math_function(
+ name = "scalblnf",
+ additional_deps = [
+ ":__support_math_scalblnf",
+ ],
+)
+
+libc_math_function(
+ name = "scalblnl",
+ additional_deps = [
+ ":__support_math_scalblnl",
+ ],
+)
+
+libc_math_function(
+ name = "scalblnf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_scalblnf128",
+ ],
+)
+
+libc_math_function(
+ name = "scalblnf16",
+ additional_deps = [
+ ":__support_math_scalblnf16",
+ ],
+)
+
+libc_math_function(
+ name = "scalbn",
+ additional_deps = [
+ ":__support_math_scalbn",
+ ],
+)
+
+libc_math_function(
+ name = "scalbnbf16",
+ additional_deps = [
+ ":__support_math_scalbnbf16",
+ ],
+)
+
+libc_math_function(
+ name = "scalbnf",
+ additional_deps = [
+ ":__support_math_scalbnf",
+ ],
+)
+
+libc_math_function(
+ name = "scalbnl",
+ additional_deps = [
+ ":__support_math_scalbnl",
+ ],
+)
+
+libc_math_function(
+ name = "scalbnf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_scalbnf128",
+ ],
+)
+
+libc_math_function(
+ name = "scalbnf16",
+ additional_deps = [
+ ":__support_math_scalbnf16",
+ ],
+)
+
+libc_math_function(
+ name = "setpayload",
+ additional_deps = [
+ ":__support_math_setpayload",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadbf16",
+ additional_deps = [
+ ":__support_math_setpayloadbf16",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadf",
+ additional_deps = [
+ ":__support_math_setpayloadf",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadl",
+ additional_deps = [
+ ":__support_math_setpayloadl",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_setpayloadf128",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadf16",
+ additional_deps = [
+ ":__support_math_setpayloadf16",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsig",
+ additional_deps = [
+ ":__support_math_setpayloadsig",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsigbf16",
+ additional_deps = [
+ ":__support_math_setpayloadsigbf16",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsigf",
+ additional_deps = [
+ ":__support_math_setpayloadsigf",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsigl",
+ additional_deps = [
+ ":__support_math_setpayloadsigl",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsigf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_setpayloadsigf128",
+ ],
+)
+
+libc_math_function(
+ name = "setpayloadsigf16",
+ additional_deps = [
+ ":__support_math_setpayloadsigf16",
+ ],
+)
+
+libc_math_function(
+ name = "sin",
+ additional_deps = [
+ ":__support_macros_optimization",
+ ":__support_macros_properties_cpu_features",
+ ":__support_math_sin",
+ ":__support_math_sin_integer_eval",
+ ],
+)
+
+libc_math_function(
+ name = "sinbf16",
+ additional_deps = [
+ ":__support_math_sinbf16",
+ ],
+)
+
+libc_math_function(
+ name = "sinf",
+ additional_deps = [":__support_math_sinf"],
+)
+
+libc_math_function(
+ name = "sinf16",
+ additional_deps = [
+ ":__support_math_sinf16",
+ ],
+)
+
+libc_math_function(
+ name = "sincos",
+ additional_deps = [
+ ":__support_math_sincos",
+ ],
+)
+
+libc_math_function(
+ name = "sincosf",
+ additional_deps = [":__support_math_sincosf"],
+)
+
+libc_math_function(
+ name = "sinh",
+ additional_deps = [":__support_math_sinh"],
+)
+
+libc_math_function(
+ name = "sinhf",
+ additional_deps = [":__support_math_sinhf"],
+)
+
+libc_math_function(
+ name = "sinhbf16",
+ additional_deps = [
+ ":__support_math_sinhbf16",
+ ],
+)
+
+libc_math_function(
+ name = "sinhf16",
+ additional_deps = [
+ ":__support_math_sinhf16",
+ ],
+)
+
+libc_math_function(
+ name = "sinpif",
+ additional_deps = [":__support_math_sinpif"],
+)
+
+libc_math_function(
+ name = "sinpif16",
+ additional_deps = [
+ ":__support_math_sinpif16",
+ ],
+)
+
+libc_math_function(
+ name = "asinpif16",
+ additional_deps = [
+ ":__support_math_asinpif16",
+ ],
+)
+
+libc_math_function(
+ name = "sqrt",
+ additional_deps = [":__support_math_sqrt"],
+)
+
+libc_math_function(
+ name = "sqrtbf16",
+ additional_deps = [":__support_math_sqrtbf16"],
+)
+
+libc_math_function(
+ name = "sqrtf",
+ additional_deps = [":__support_math_sqrtf"],
+)
+
+libc_math_function(
+ name = "sqrtl",
+ additional_deps = [
+ ":__support_math_sqrtl",
+ ],
+)
+
+libc_math_function(
+ name = "sqrtf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_sqrtf128",
+ ],
+)
+
+libc_math_function(
+ name = "sqrtf16",
+ additional_deps = [
+ ":__support_math_sqrtf16",
+ ],
+)
+
+libc_math_function(
+ name = "tan",
+ additional_deps = [":__support_math_tan"],
+)
+
+libc_math_function(
+ name = "tanbf16",
+ additional_deps = [
+ ":__support_math_tanbf16",
+ ],
+)
+
+libc_math_function(
+ name = "tanf",
+ additional_deps = [":__support_math_tanf"],
+)
+
+libc_math_function(
+ name = "tanf16",
+ additional_deps = [
+ ":__support_math_tanf16",
+ ],
+)
+
+libc_math_function(
+ name = "tanh",
+ additional_deps = [":__support_math_tanh"],
+)
+
+libc_math_function(
+ name = "tanhf",
+ additional_deps = [
+ ":__support_math_tanhf",
+ ],
+)
+
+libc_math_function(
+ name = "tanhf16",
+ additional_deps = [
+ ":__support_math_tanhf16",
+ ],
+)
+
+libc_math_function(
+ name = "tanpif",
+ additional_deps = [
+ ":__support_math_tanpif",
+ ],
+)
+
+libc_math_function(
+ name = "tanpif16",
+ additional_deps = [":__support_math_tanpif16"],
+)
+
+libc_math_function(
+ name = "totalorder",
+ additional_deps = [
+ ":__support_math_totalorder",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderbf16",
+ additional_deps = [
+ ":__support_math_totalorderbf16",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderf",
+ additional_deps = [
+ ":__support_math_totalorderf",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderl",
+ additional_deps = [
+ ":__support_math_totalorderl",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_totalorderf128",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_totalorderf80",
+ ],
+)
+
+libc_math_function(
+ name = "totalorderf16",
+ additional_deps = [
+ ":__support_math_totalorderf16",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermag",
+ additional_deps = [
+ ":__support_math_totalordermag",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagbf16",
+ additional_deps = [
+ ":__support_math_totalordermagbf16",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagf",
+ additional_deps = [
+ ":__support_math_totalordermagf",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagl",
+ additional_deps = [
+ ":__support_math_totalordermagl",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_totalordermagf128",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagf80",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float80",
+ ":__support_math_totalordermagf80",
+ ],
+)
+
+libc_math_function(
+ name = "totalordermagf16",
+ additional_deps = [
+ ":__support_math_totalordermagf16",
+ ],
+)
+
+libc_math_function(
+ name = "trunc",
+ additional_deps = [
+ ":__support_math_trunc",
+ ],
+)
+
+libc_math_function(
+ name = "truncbf16",
+ additional_deps = [
+ ":__support_math_truncbf16",
+ ],
+)
+
+libc_math_function(
+ name = "truncf",
+ additional_deps = [
+ ":__support_math_truncf",
+ ],
+)
+
+libc_math_function(
+ name = "truncl",
+ additional_deps = [
+ ":__support_math_truncl",
+ ],
+)
+
+libc_math_function(
+ name = "truncf128",
+ additional_deps = [
+ ":__support_cpp_bit",
+ ":__support_fputil_float128",
+ ":__support_math_truncf128",
+ ],
+)
+
+libc_math_function(
+ name = "truncf16",
+ additional_deps = [
+ ":__support_math_truncf16",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfp",
+ additional_deps = [
+ ":__support_math_ufromfp",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpbf16",
+ additional_deps = [
+ ":__support_math_ufromfpbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpf",
+ additional_deps = [
+ ":__support_math_ufromfpf",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpl",
+ additional_deps = [
+ ":__support_math_ufromfpl",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpf128",
+ additional_deps = [
+ ":__support_math_ufromfpf128",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpf16",
+ additional_deps = [
+ ":__support_math_ufromfpf16",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpx",
+ additional_deps = [
+ ":__support_math_ufromfpx",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpxbf16",
+ additional_deps = [
+ ":__support_math_ufromfpxbf16",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpxf",
+ additional_deps = [
+ ":__support_math_ufromfpxf",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpxl",
+ additional_deps = [
+ ":__support_math_ufromfpxl",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpxf128",
+ additional_deps = [
+ ":__support_math_ufromfpxf128",
+ ],
+)
+
+libc_math_function(
+ name = "ufromfpxf16",
+ additional_deps = [
+ ":__support_math_ufromfpxf16",
+ ],
+)
+
############################## inttypes targets ##############################
alias(
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 2d322ba9ef637c..099fd39d6f2ee6 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
@@ -1635,6 +1635,14 @@ math_test(
hdrs = ["IsNanTest.h"],
)
+math_test(
+ name = "isnanbf16",
+ hdrs = ["IsNanTest.h"],
+ deps = [
+ "//libc:__support_fputil_bfloat16",
+ ],
+)
+
math_test(
name = "llogbf16",
hdrs = ["ILogbTest.h"],
>From 7218715858913b5fa7d3d8325d20cfe65a73fa81 Mon Sep 17 00:00:00 2001
From: competitive-programmer04 <coder8809 at gmail.com>
Date: Tue, 10 Nov 2026 01:57:06 +0530
Subject: [PATCH 2/2] [libc][math] checking for ninja
---
libc/config/baremetal/aarch64/entrypoints.txt | 2 +-
libc/config/baremetal/arm/entrypoints.txt | 2 +-
libc/config/baremetal/hexagon/entrypoints.txt | 2 +-
libc/config/baremetal/riscv/entrypoints.txt | 2 +-
libc/config/darwin/aarch64/entrypoints.txt | 2 +-
libc/config/gpu/amdgpu/entrypoints.txt | 2 +-
libc/config/gpu/nvptx/entrypoints.txt | 2 +-
libc/config/linux/aarch64/entrypoints.txt | 2 +-
libc/config/linux/riscv/entrypoints.txt | 2 +-
libc/config/linux/x86_64/entrypoints.txt | 2 +-
libc/shared/math/isnanbf16.h | 9 +++++++--
libc/src/__support/math/isnanbf16.h | 10 +++++++---
libc/src/math/generic/isnanbf16.cpp | 8 ++++++--
libc/src/math/isnanbf16.h | 8 ++++++--
libc/test/shared/CMakeLists.txt | 1 +
libc/test/shared/shared_math_constexpr_test.cpp | 4 +++-
libc/test/shared/shared_math_test.cpp | 2 +-
libc/test/src/math/smoke/isnanbf16_test.cpp | 8 ++++++--
18 files changed, 47 insertions(+), 23 deletions(-)
diff --git a/libc/config/baremetal/aarch64/entrypoints.txt b/libc/config/baremetal/aarch64/entrypoints.txt
index baeb8689e98e73..0c15df98a6d901 100644
--- a/libc/config/baremetal/aarch64/entrypoints.txt
+++ b/libc/config/baremetal/aarch64/entrypoints.txt
@@ -734,7 +734,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -875,6 +874,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/baremetal/arm/entrypoints.txt b/libc/config/baremetal/arm/entrypoints.txt
index 0ed4f143bade94..a1cff6b5b9a22d 100644
--- a/libc/config/baremetal/arm/entrypoints.txt
+++ b/libc/config/baremetal/arm/entrypoints.txt
@@ -746,7 +746,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -886,6 +885,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/baremetal/hexagon/entrypoints.txt b/libc/config/baremetal/hexagon/entrypoints.txt
index ebabf073a207ed..1a91e806575cf0 100644
--- a/libc/config/baremetal/hexagon/entrypoints.txt
+++ b/libc/config/baremetal/hexagon/entrypoints.txt
@@ -685,7 +685,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -875,6 +874,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/baremetal/riscv/entrypoints.txt b/libc/config/baremetal/riscv/entrypoints.txt
index d62f6affbff530..2a3518aa4069b4 100644
--- a/libc/config/baremetal/riscv/entrypoints.txt
+++ b/libc/config/baremetal/riscv/entrypoints.txt
@@ -737,7 +737,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -878,6 +877,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/darwin/aarch64/entrypoints.txt b/libc/config/darwin/aarch64/entrypoints.txt
index e676715bbee4bc..06f0790fb1ca75 100644
--- a/libc/config/darwin/aarch64/entrypoints.txt
+++ b/libc/config/darwin/aarch64/entrypoints.txt
@@ -556,7 +556,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -697,6 +696,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt
index 30af20b3edfc5c..ac777fbfbbb62b 100644
--- a/libc/config/gpu/amdgpu/entrypoints.txt
+++ b/libc/config/gpu/amdgpu/entrypoints.txt
@@ -671,7 +671,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -764,6 +763,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt
index 76335a6722139a..4aa4a9b560fc16 100644
--- a/libc/config/gpu/nvptx/entrypoints.txt
+++ b/libc/config/gpu/nvptx/entrypoints.txt
@@ -669,7 +669,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -780,6 +779,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/linux/aarch64/entrypoints.txt b/libc/config/linux/aarch64/entrypoints.txt
index b481941831d256..231a1d2444cca5 100644
--- a/libc/config/linux/aarch64/entrypoints.txt
+++ b/libc/config/linux/aarch64/entrypoints.txt
@@ -993,7 +993,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -1131,6 +1130,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/linux/riscv/entrypoints.txt b/libc/config/linux/riscv/entrypoints.txt
index 07107dd6c2d2cb..03232990f7d22c 100644
--- a/libc/config/linux/riscv/entrypoints.txt
+++ b/libc/config/linux/riscv/entrypoints.txt
@@ -1089,7 +1089,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -1233,6 +1232,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/config/linux/x86_64/entrypoints.txt b/libc/config/linux/x86_64/entrypoints.txt
index 3adf86533289de..15b91cdcabb61e 100644
--- a/libc/config/linux/x86_64/entrypoints.txt
+++ b/libc/config/linux/x86_64/entrypoints.txt
@@ -1089,7 +1089,6 @@ if(LIBC_TYPES_HAS_FLOAT16)
libc.src.math.ilogbf16
libc.src.math.iscanonicalf16
libc.src.math.isnanf16
- libc.src.math.isnanbf16
libc.src.math.issignalingf16
libc.src.math.ldexpf16
libc.src.math.lgammaf16
@@ -1233,6 +1232,7 @@ list(APPEND TARGET_LIBM_ENTRYPOINTS
libc.src.math.hypotbf16
libc.src.math.ilogbbf16
libc.src.math.iscanonicalbf16
+ libc.src.math.isnanbf16
libc.src.math.issignalingbf16
libc.src.math.ldexpbf16
libc.src.math.llogbbf16
diff --git a/libc/shared/math/isnanbf16.h b/libc/shared/math/isnanbf16.h
index 528a45f86b880b..52bf0138daa261 100644
--- a/libc/shared/math/isnanbf16.h
+++ b/libc/shared/math/isnanbf16.h
@@ -1,11 +1,16 @@
-//===-- Shared isnanbf16 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
//
//===----------------------------------------------------------------------===//
+///
+/// \brief
+/// This file will be used for shared_math_test.cpp and
+/// shared_math_constexpr_test.cpp
+///
+//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SHARED_MATH_ISNANBF16_H
#define LLVM_LIBC_SHARED_MATH_ISNANBF16_H
diff --git a/libc/src/__support/math/isnanbf16.h b/libc/src/__support/math/isnanbf16.h
index 48e6af724f9ba2..bbca482a33453d 100644
--- a/libc/src/__support/math/isnanbf16.h
+++ b/libc/src/__support/math/isnanbf16.h
@@ -1,11 +1,15 @@
-//===-- Implementation header for isnanbf16 ----------------------*- 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
//
//===----------------------------------------------------------------------===//
+///
+/// \brief
+/// This file implements the isnanbf16 function using FPBits.
+///
+//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC___SUPPORT_MATH_ISNANBF16_H
#define LLVM_LIBC_SRC___SUPPORT_MATH_ISNANBF16_H
@@ -17,7 +21,7 @@
namespace LIBC_NAMESPACE_DECL {
namespace math {
-LIBC_INLINE constexpr int isnanbf16(bfloat16 x) {
+LIBC_INLINE LIBC_CONSTEXPR int isnanbf16(bfloat16 x) {
return fputil::FPBits<bfloat16>(x).is_nan();
}
diff --git a/libc/src/math/generic/isnanbf16.cpp b/libc/src/math/generic/isnanbf16.cpp
index 80c99e42a23440..36da87458c13d0 100644
--- a/libc/src/math/generic/isnanbf16.cpp
+++ b/libc/src/math/generic/isnanbf16.cpp
@@ -1,11 +1,15 @@
-//===-- Implementation of isnanbf16 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
//
//===----------------------------------------------------------------------===//
+///
+/// \brief
+/// This file implements the entrypoint for isnanbf16.
+///
+//===----------------------------------------------------------------------===//
#include "src/math/isnanbf16.h"
#include "src/__support/math/isnanbf16.h"
diff --git a/libc/src/math/isnanbf16.h b/libc/src/math/isnanbf16.h
index 7fe6afe38abad0..f0a1339ea73c39 100644
--- a/libc/src/math/isnanbf16.h
+++ b/libc/src/math/isnanbf16.h
@@ -1,11 +1,15 @@
-//===-- Implementation header for isnanbf16 ----------------------*- 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
//
//===----------------------------------------------------------------------===//
+///
+/// \brief
+/// This file declares the isnanbf16 function.
+///
+//===----------------------------------------------------------------------===//
#ifndef LLVM_LIBC_SRC_MATH_ISNANBF16_H
#define LLVM_LIBC_SRC_MATH_ISNANBF16_H
diff --git a/libc/test/shared/CMakeLists.txt b/libc/test/shared/CMakeLists.txt
index f1f1c9c65edc0c..6e934e1b4c053f 100644
--- a/libc/test/shared/CMakeLists.txt
+++ b/libc/test/shared/CMakeLists.txt
@@ -748,6 +748,7 @@ else()
libc.src.__support.math.isnanf128
libc.src.__support.math.isnanf80
libc.src.__support.math.isnanf16
+ libc.src.__support.math.isnanbf16
libc.src.__support.math.isnanl
libc.src.__support.math.issignaling
libc.src.__support.math.issignalingbf16
diff --git a/libc/test/shared/shared_math_constexpr_test.cpp b/libc/test/shared/shared_math_constexpr_test.cpp
index 4aa67e9dbdd678..d43c5523b4a2f6 100644
--- a/libc/test/shared/shared_math_constexpr_test.cpp
+++ b/libc/test/shared/shared_math_constexpr_test.cpp
@@ -292,7 +292,6 @@ static_assert(0.0f16 == LIBC_NAMESPACE::shared::nextafterf16(0.0f16, 0.0f16));
static_assert(0.0f16 == LIBC_NAMESPACE::shared::rintf16(0.0f16));
static_assert(1 == LIBC_NAMESPACE::shared::iscanonicalf16(0.0f16));
static_assert(0 == LIBC_NAMESPACE::shared::isnanf16(0.0f16));
-static_assert(0 == LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.016)));
static_assert(0.0 == LIBC_NAMESPACE::shared::issignalingf16(0.0f16));
static_assert(1 == [] {
const char arg{};
@@ -736,6 +735,9 @@ static_assert(bfloat16(0.0) ==
bfloat16(0.0)));
static_assert(bfloat16(0.0) == LIBC_NAMESPACE::shared::rintbf16(bfloat16(0.0)));
static_assert(1 == LIBC_NAMESPACE::shared::iscanonicalbf16(bfloat16(0.0)));
+#if defined(__clang__) || (defined(__GNUC__) && __GNUC__ >= 10)
+static_assert(0 == LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.0)));
+#endif
static_assert(0 == LIBC_NAMESPACE::shared::issignalingbf16(bfloat16(0.0)));
static_assert(bfloat16(1) == [] {
const char arg{};
diff --git a/libc/test/shared/shared_math_test.cpp b/libc/test/shared/shared_math_test.cpp
index a1207b78895099..8b112077f11c19 100644
--- a/libc/test/shared/shared_math_test.cpp
+++ b/libc/test/shared/shared_math_test.cpp
@@ -165,7 +165,6 @@ TEST(LlvmLibcSharedMathTest, AllFloat16) {
EXPECT_FP_EQ(0x0p+0f16, LIBC_NAMESPACE::shared::rintf16(0.0f16));
EXPECT_EQ(1, LIBC_NAMESPACE::shared::iscanonicalf16(0.0f16));
EXPECT_EQ(0, LIBC_NAMESPACE::shared::isnanf16(0.0f16));
- EXPECT_EQ(0, LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.016)));
EXPECT_EQ(0, LIBC_NAMESPACE::shared::issignalingf16(0.0f16));
EXPECT_TRUE(FPBits(LIBC_NAMESPACE::shared::nanf16("")).is_nan());
EXPECT_FP_EQ(0x0p+0f16, LIBC_NAMESPACE::shared::roundf16(0.0f16));
@@ -958,6 +957,7 @@ TEST(LlvmLibcSharedMathTest, AllBFloat16) {
LIBC_NAMESPACE::shared::nearbyintbf16(bfloat16(0.0)));
EXPECT_FP_EQ(bfloat16(0.0), LIBC_NAMESPACE::shared::rintbf16(bfloat16(0.0)));
EXPECT_EQ(1, LIBC_NAMESPACE::shared::iscanonicalbf16(bfloat16(0.0)));
+ EXPECT_EQ(0, LIBC_NAMESPACE::shared::isnanbf16(bfloat16(0.0)));
EXPECT_EQ(0, LIBC_NAMESPACE::shared::issignalingbf16(bfloat16(0.0)));
EXPECT_TRUE(FPBits(LIBC_NAMESPACE::shared::nanbf16("")).is_nan());
EXPECT_FP_EQ(bfloat16(0.0), LIBC_NAMESPACE::shared::roundbf16(bfloat16(0.0)));
diff --git a/libc/test/src/math/smoke/isnanbf16_test.cpp b/libc/test/src/math/smoke/isnanbf16_test.cpp
index bdd553b3112c9a..827b28753347b1 100644
--- a/libc/test/src/math/smoke/isnanbf16_test.cpp
+++ b/libc/test/src/math/smoke/isnanbf16_test.cpp
@@ -1,11 +1,15 @@
-//===-- Unittests for isnanbf16
-//--------------------------------------------===//
+//===----------------------------------------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
+///
+/// \brief
+/// This file contains unit tests for isnanbf16.
+///
+//===----------------------------------------------------------------------===//
#include "IsNanTest.h"
#include "src/__support/FPUtil/bfloat16.h"
More information about the libc-commits
mailing list