[libc-commits] [PATCH] D127298: [libc] Add expm1f function to bazel's build overlay.

Tue Ly via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Jun 8 06:43:01 PDT 2022


lntue created this revision.
lntue added reviewers: michaelrj, sivachandra.
Herald added subscribers: ecnelises, tschuett.
Herald added a project: All.
lntue requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add expm1f function to bazel's build overlay.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127298

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


Index: utils/bazel/llvm-project-overlay/libc/BUILD.bazel
===================================================================
--- utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+++ utils/bazel/llvm-project-overlay/libc/BUILD.bazel
@@ -423,6 +423,25 @@
     ],
 )
 
+cc_library(
+    name = "common_constants",
+    srcs = ["src/math/generic/common_constants.cpp"],
+    hdrs = ["src/math/generic/common_constants.h"],
+    deps = [
+        ":libc_root",
+    ],
+)
+
+libc_math_function(
+    name = "expm1f",
+    additional_deps = [
+        ":__support_fputil_fma",
+        ":__support_fputil_multiply_add",
+        ":__support_fputil_polyeval",
+        ":common_constants",
+    ],
+)
+
 libc_math_function(name = "fabs")
 
 libc_math_function(name = "fabsf")


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127298.435127.patch
Type: text/x-patch
Size: 770 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20220608/94c04c48/attachment.bin>


More information about the libc-commits mailing list