Skip to content

Commit 36bdf3e

Browse files
vonosmasAlexey Samsonov
authored andcommitted
[libc][bazel] Add BUILD rules for float16 math functions.
1 parent 486ab08 commit 36bdf3e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

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

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,17 @@ libc_support_library(
17021702
],
17031703
)
17041704

1705+
libc_support_library(
1706+
name = "sincosf16_utils",
1707+
hdrs = ["src/math/generic/sincosf16_utils.h"],
1708+
deps = [
1709+
":__support_common",
1710+
":__support_fputil_fp_bits",
1711+
":__support_fputil_nearest_integer",
1712+
":__support_fputil_polyeval",
1713+
],
1714+
)
1715+
17051716
libc_support_library(
17061717
name = "explogxf",
17071718
srcs = ["src/math/generic/explogxf.cpp"],
@@ -1990,6 +2001,15 @@ libc_math_function(
19902001
],
19912002
)
19922003

2004+
libc_math_function(
2005+
name = "cospif16",
2006+
additional_deps = [
2007+
":__support_fputil_multiply_add",
2008+
":__support_macros_optimization",
2009+
":sincosf16_utils",
2010+
],
2011+
)
2012+
19932013
libc_math_function(name = "daddl")
19942014

19952015
libc_math_function(name = "daddf128")
@@ -3087,6 +3107,7 @@ libc_math_function(
30873107
additional_deps = [
30883108
":__support_fputil_nearest_integer",
30893109
":__support_fputil_polyeval",
3110+
":sincosf16_utils",
30903111
],
30913112
)
30923113

0 commit comments

Comments
 (0)