diff options
| author | Muhammad Bassiouni <60100307+bassiounix@users.noreply.github.com> | 2025-09-20 07:24:21 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-20 07:24:21 +0300 |
| commit | 2b937daa1310f7c17a03a0a4a7abf83149e1dc71 (patch) | |
| tree | 45e1b1a890039f4285e1026deb05fb4f942bb170 /utils | |
| parent | 3e57a0d01c90c09b1e40d8edfe48f8e5a63e2de6 (diff) | |
| download | llvm-2b937daa1310f7c17a03a0a4a7abf83149e1dc71.tar.gz llvm-2b937daa1310f7c17a03a0a4a7abf83149e1dc71.tar.bz2 llvm-2b937daa1310f7c17a03a0a4a7abf83149e1dc71.zip | |
[libc][math] Refactor dsqrtl implementation to header-only in src/__support/math folder. (#154868)
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.bazel | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel index 67c292f08be7..9d02ff9f459a 100644 --- a/utils/bazel/llvm-project-overlay/libc/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/libc/BUILD.bazel @@ -2650,6 +2650,14 @@ libc_support_library( ) libc_support_library( + name = "__support_math_dsqrtl", + hdrs = ["src/__support/math/dsqrtl.h"], + deps = [ + ":__support_fputil_sqrt", + ], +) + +libc_support_library( name = "__support_math_erff", hdrs = ["src/__support/math/erff.h"], deps = [ @@ -3525,7 +3533,7 @@ libc_math_function(name = "dmulf128") libc_math_function( name = "dsqrtl", additional_deps = [ - ":__support_fputil_sqrt", + ":__support_math_dsqrtl", ], ) |
