[libc-commits] [libc] [libc][complex] Implement different flavors of the `conj` function (PR #118671)
Shourya Goel via libc-commits
libc-commits at lists.llvm.org
Mon Dec 9 00:07:55 PST 2024
================
@@ -16,5 +16,12 @@ template <typename T> struct Complex {
T real;
T imag;
};
+
+template <typename T, typename U> T conjugate(T c) {
----------------
Sh0g0-1758 wrote:
I am not sure I see the benefit of this indirection here. We would then also have to add header guards for cfloat16 and cfloat128 in complex_types.h which I think is unnecessary. I think we should leave the functions in complex_types.h as generic as possible.
https://github.com/llvm/llvm-project/pull/118671
More information about the libc-commits
mailing list