Skip to content

Commit a0303d8

Browse files
authored
[libc][bazel] Add powf target and fix bazel overlay. (#71464)
1 parent 6bb7c65 commit a0303d8

File tree

3 files changed

+25
-12
lines changed

3 files changed

+25
-12
lines changed

libc/src/math/generic/exp10f_impl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
#include "src/__support/FPUtil/rounding_mode.h"
2020
#include "src/__support/common.h"
2121
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
22-
#include "src/math/exp10f.h"
2322

2423
#include <errno.h>
2524

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

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,17 +1331,6 @@ libc_math_function(
13311331
],
13321332
)
13331333

1334-
libc_math_function(
1335-
name = "powf",
1336-
additional_deps = [
1337-
":__support_fputil_double_double",
1338-
":__support_fputil_sqrt",
1339-
":exp2f",
1340-
":exp10f",
1341-
":explogxf",
1342-
],
1343-
)
1344-
13451334
libc_math_function(
13461335
name = "logf",
13471336
additional_deps = [
@@ -1573,6 +1562,24 @@ libc_math_function(
15731562
],
15741563
)
15751564

1565+
libc_math_function(
1566+
name = "powf",
1567+
additional_deps = [
1568+
":__support_fputil_double_double",
1569+
":__support_fputil_multiply_add",
1570+
":__support_fputil_nearest_integer",
1571+
":__support_fputil_polyeval",
1572+
":__support_fputil_rounding_mode",
1573+
":__support_fputil_sqrt",
1574+
":__support_fputil_triple_double",
1575+
":__support_macros_optimization",
1576+
":common_constants",
1577+
":explogxf",
1578+
":exp2f_impl",
1579+
":exp10f_impl",
1580+
],
1581+
)
1582+
15761583
libc_math_function(name = "fabs")
15771584

15781585
libc_math_function(name = "fabsf")

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
@@ -760,6 +760,13 @@ math_test(
760760
],
761761
)
762762

763+
math_test(
764+
name = "powf",
765+
deps = [
766+
"//libc/utils/MPFRWrapper:mpfr_wrapper",
767+
],
768+
)
769+
763770
math_test(
764771
name = "fmod",
765772
hdrs = ["FModTest.h"],

0 commit comments

Comments
 (0)