Skip to content

Commit

Permalink
[libc][bazel] Add powf target and fix bazel overlay. (#71464)
Browse files Browse the repository at this point in the history
  • Loading branch information
lntue authored Nov 7, 2023
1 parent 6bb7c65 commit a0303d8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 12 deletions.
1 change: 0 additions & 1 deletion libc/src/math/generic/exp10f_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#include "src/__support/FPUtil/rounding_mode.h"
#include "src/__support/common.h"
#include "src/__support/macros/optimization.h" // LIBC_UNLIKELY
#include "src/math/exp10f.h"

#include <errno.h>

Expand Down
29 changes: 18 additions & 11 deletions utils/bazel/llvm-project-overlay/libc/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -1331,17 +1331,6 @@ libc_math_function(
],
)

libc_math_function(
name = "powf",
additional_deps = [
":__support_fputil_double_double",
":__support_fputil_sqrt",
":exp2f",
":exp10f",
":explogxf",
],
)

libc_math_function(
name = "logf",
additional_deps = [
Expand Down Expand Up @@ -1573,6 +1562,24 @@ libc_math_function(
],
)

libc_math_function(
name = "powf",
additional_deps = [
":__support_fputil_double_double",
":__support_fputil_multiply_add",
":__support_fputil_nearest_integer",
":__support_fputil_polyeval",
":__support_fputil_rounding_mode",
":__support_fputil_sqrt",
":__support_fputil_triple_double",
":__support_macros_optimization",
":common_constants",
":explogxf",
":exp2f_impl",
":exp10f_impl",
],
)

libc_math_function(name = "fabs")

libc_math_function(name = "fabsf")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,13 @@ math_test(
],
)

math_test(
name = "powf",
deps = [
"//libc/utils/MPFRWrapper:mpfr_wrapper",
],
)

math_test(
name = "fmod",
hdrs = ["FModTest.h"],
Expand Down

0 comments on commit a0303d8

Please sign in to comment.