mirror of
https://github.com/intel/llvm.git
synced 2026-01-15 12:25:46 +08:00
[libc][bazel] Add powf target and fix bazel overlay. (#71464)
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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")
|
||||
|
||||
@@ -760,6 +760,13 @@ math_test(
|
||||
],
|
||||
)
|
||||
|
||||
math_test(
|
||||
name = "powf",
|
||||
deps = [
|
||||
"//libc/utils/MPFRWrapper:mpfr_wrapper",
|
||||
],
|
||||
)
|
||||
|
||||
math_test(
|
||||
name = "fmod",
|
||||
hdrs = ["FModTest.h"],
|
||||
|
||||
Reference in New Issue
Block a user