diff options
| author | Muhammad Bassiouni <60100307+bassiounix@users.noreply.github.com> | 2025-07-14 18:35:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-14 11:35:53 -0400 |
| commit | cfcda5d0ffd9e714ef10b33f7028a0d8bb11df7c (patch) | |
| tree | 7f041e0cab0c544f820c4fb9deed9b8143a6cf6b /utils | |
| parent | 3e43915be62ef355029b61bebe78637a885b8b6c (diff) | |
[libc][math] Refactor ldexpf implementation to header-only in src/__support/math folder (#147906)
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
Please merge #147901 first
@lntue
Diffstat (limited to 'utils')
| -rw-r--r-- | utils/bazel/llvm-project-overlay/libc/BUILD.bazel | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 5476a178bfc5..cd608a1352a7 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -2197,6 +2197,14 @@ libc_support_library( ], ) +libc_support_library( + name = "__support_math_ldexpf", + hdrs = ["src/__support/math/ldexpf.h"], + deps = [ + ":__support_fputil_manipulation_functions", + ], +) + ############################### complex targets ################################ libc_function( @@ -3346,7 +3354,12 @@ libc_math_function(name = "ilogbf16") libc_math_function(name = "ldexp") -libc_math_function(name = "ldexpf") +libc_math_function( + name = "ldexpf", + additional_deps = [ + ":__support_math_ldexpf", + ] +) libc_math_function(name = "ldexpl") |
