aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMuhammad Bassiouni <60100307+bassiounix@users.noreply.github.com>2025-10-11 23:27:00 +0300
committerGitHub <noreply@github.com>2025-10-11 23:27:00 +0300
commit878527651a87ffa6655916c58372613e4187ee8f (patch)
treea722214133bb9250eb610adaa732569e239600df /utils
parent9f068436d388cb02eea87fe4f6dcab085f7c32ee (diff)
downloadllvm-878527651a87ffa6655916c58372613e4187ee8f.tar.gz
llvm-878527651a87ffa6655916c58372613e4187ee8f.tar.bz2
llvm-878527651a87ffa6655916c58372613e4187ee8f.zip
[libc][math] Refactor exp2f16 implementation to header-only in src/__support/math folder. (#161993)
Part of #147386 in preparation for: https://discourse.llvm.org/t/rfc-make-clang-builtin-math-functions-constexpr-with-llvm-libc-to-support-c-23-constexpr-math-functions/86450
Diffstat (limited to 'utils')
-rw-r--r--utils/bazel/llvm-project-overlay/libc/BUILD.bazel18
1 files changed, 17 insertions, 1 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
index 640fa03a99c9..936bc1248b6e 100644
--- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -2917,6 +2917,22 @@ libc_support_library(
)
libc_support_library(
+ name = "__support_math_exp2f16",
+ hdrs = ["src/__support/math/exp2f16.h"],
+ deps = [
+ ":__support_fputil_except_value_utils",
+ ":__support_fputil_fma",
+ ":__support_fputil_multiply_add",
+ ":__support_fputil_nearest_integer",
+ ":__support_fputil_polyeval",
+ ":__support_fputil_rounding_mode",
+ ":__support_macros_optimization",
+ ":__support_math_common_constants",
+ ":__support_math_expxf16_utils",
+ ],
+)
+
+libc_support_library(
name = "__support_math_exp10",
hdrs = ["src/__support/math/exp10.h"],
deps = [
@@ -3696,7 +3712,7 @@ libc_math_function(
libc_math_function(
name = "exp2f16",
additional_deps = [
- ":__support_math_expxf16_utils",
+ ":__support_math_exp2f16",
],
)