Skip to content

Commit 647337f

Browse files
committed
[libc][bazel] Add hypotf16 bazel targets.
1 parent 1b8defd commit 647337f

File tree

4 files changed

+22
-0
lines changed

4 files changed

+22
-0
lines changed

utils/bazel/llvm-project-overlay/libc/BUILD.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3471,6 +3471,14 @@ libc_math_function(
34713471
],
34723472
)
34733473

3474+
libc_math_function(
3475+
name = "hypotf16",
3476+
additional_deps = [
3477+
":__support_fputil_multiply_add",
3478+
":__support_fputil_sqrt",
3479+
],
3480+
)
3481+
34743482
libc_math_function(name = "ilogb")
34753483

34763484
libc_math_function(name = "ilogbf")

utils/bazel/llvm-project-overlay/libc/libc_build_rules.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ def libc_common_copts():
1717
"-I" + libc_include_path,
1818
"-I" + paths.join(libc_include_path, "include"),
1919
"-DLIBC_NAMESPACE=" + LIBC_NAMESPACE,
20+
# For complex floating point literals.
21+
"-fext-numeric-literals",
2022
]
2123

2224
def libc_release_copts():

utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,13 @@ math_mpfr_test(
286286
],
287287
)
288288

289+
math_mpfr_test(
290+
name = "hypotf16",
291+
hdrs = [
292+
"HypotTest.h",
293+
],
294+
)
295+
289296
math_mpfr_test(
290297
name = "llrint",
291298
hdrs = ["RoundToIntegerTest.h"],

utils/bazel/llvm-project-overlay/libc/test/src/math/smoke/BUILD.bazel

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,6 +898,11 @@ math_test(
898898
hdrs = ["HypotTest.h"],
899899
)
900900

901+
math_test(
902+
name = "hypotf16",
903+
hdrs = ["HypotTest.h"],
904+
)
905+
901906
math_test(
902907
name = "ilogb",
903908
hdrs = ["ILogbTest.h"],

0 commit comments

Comments
 (0)