[libc-commits] [libc] [libc][complex] Add cargf and carg functions to libc complex math (PR #204087)
Victor Campos via libc-commits
libc-commits at lists.llvm.org
Mon Jun 22 06:05:42 PDT 2026
================
@@ -1,5 +1,27 @@
add_custom_target(libc-complex-unittests)
+add_fp_unittest(
+ carg_test
+ NEED_MPC
+ SUITE
+ libc-complex-unittests
+ SRCS
+ carg_test.cpp
+ DEPENDS
+ libc.src.complex.carg
+)
----------------
vhscampos wrote:
Missing dependency to `CArgTest`.
>From examples in `src/math`, it seems to need to declare it in the `HDRS` argument, like this:
```
add_fp_unittest(
carg_test
NEED_MPC
SUITE
libc-complex-unittests
SRCS
carg_test.cpp
HDRS
CArgTest.h
DEPENDS
libc.src.complex.carg
```
https://github.com/llvm/llvm-project/pull/204087
More information about the libc-commits
mailing list