Skip to content

Commit

Permalink
Drop unneeded conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Aug 13, 2024
1 parent e64d6a8 commit eef384c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions libcudacxx/include/cuda/std/__complex/nvbf16.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,6 @@ class _LIBCUDACXX_TEMPLATE_VIS _CCCL_ALIGNAS(alignof(__nv_bfloat162)) complex<__
: __repr_(__convert_to_bfloat16(__c.real()), __convert_to_bfloat16(__c.imag()))
{}

_LIBCUDACXX_INLINE_VISIBILITY operator complex<float>() const
{
return complex<float>{__bfloat162float(__repr_.x), __bfloat162float(__repr_.y)};
}
_LIBCUDACXX_INLINE_VISIBILITY operator complex<double>() const
{
return complex<double>{__bfloat162float(__repr_.x), __bfloat162float(__repr_.y)};
}

_LIBCUDACXX_INLINE_VISIBILITY complex& operator=(const value_type& __re)
{
__repr_.x = __re;
Expand Down

0 comments on commit eef384c

Please sign in to comment.