[libc-commits] [libc] [libc][math] Implement double precision cbrt correctly rounded to all rounding modes. (PR #99262)

via libc-commits libc-commits at lists.llvm.org
Wed Jul 17 07:54:41 PDT 2024


================
@@ -4180,3 +4180,19 @@ add_entrypoint_object(
     libc.src.__support.FPUtil.multiply_add
     libc.src.__support.macros.optimization
 )
+
+add_entrypoint_object(
+  cbrt
+  SRCS
+    cbrt.cpp
+  HDRS
+    ../cbrt.h
+  COMPILE_OPTIONS
+    -O3
+  DEPENDS
+    libc.hdr.fenv_macros
+    libc.src.__support.FPUtil.fenv_impl
+    libc.src.__support.FPUtil.fp_bits
+    libc.src.__support.FPUtil.multiply_add
+    libc.src.__support.macros.optimization
----------------
overmighty wrote:

Should also depend on `polyeval`, `double_double`, `dyadic_float`, `integer_literals`.

https://github.com/llvm/llvm-project/pull/99262


More information about the libc-commits mailing list