Skip to content

Commit 7095b1f

Browse files
committed
mark constexpr and inline
1 parent 2c5d2df commit 7095b1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/src/__support/complex_type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ template <> struct make_real<cfloat128> {
6969

7070
template <typename T> using make_real_t = typename make_real<T>::type;
7171

72-
template <typename T> T conjugate(T c) {
72+
template <typename T> LIBC_INLINE constexpr T conjugate(T c) {
7373
Complex<make_real_t<T>> c_c = cpp::bit_cast<Complex<make_real_t<T>>>(c);
7474
c_c.imag = -c_c.imag;
7575
return cpp::bit_cast<T>(c_c);

0 commit comments

Comments
 (0)