[libc][bazel] Add powf target and fix bazel overlay. (#71464)

This commit is contained in:
lntue
2023-11-07 08:27:02 -05:00
committed by GitHub
parent 6bb7c65493
commit a0303d8923
3 changed files with 25 additions and 12 deletions

View File

@@ -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>

View File

@@ -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 = [
@@ -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")

View File

@@ -760,6 +760,13 @@ math_test(
],
)
math_test(
name = "powf",
deps = [
"//libc/utils/MPFRWrapper:mpfr_wrapper",
],
)
math_test(
name = "fmod",
hdrs = ["FModTest.h"],