Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Remove unnecessary _t in __cxx_atomic layer
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Oct 1, 2021
1 parent 006c2c3 commit 1eb1288
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
template <typename _Tp, int _Sco>
struct __cxx_atomic_base_impl {
using __underlying_t = _Tp;
using __load_t = __cxx_atomic_base_impl<_Tp, _Sco>;
using __temporary_t = __cxx_atomic_base_impl<_Tp, _Sco>;
using __wrap_t = __cxx_atomic_base_impl<_Tp, _Sco>;

Expand Down Expand Up @@ -78,7 +77,6 @@ const volatile __cxx_atomic_base_impl<_Tp, _Sco>* __cxx_atomic_unwrap(__cxx_atom
template <typename _Tp, int _Sco>
struct __cxx_atomic_ref_base_impl {
using __underlying_t = _Tp;
using __load_t = _Tp;
using __temporary_t = _Tp;
using __wrap_t = _Tp;

Expand Down Expand Up @@ -148,7 +146,7 @@ _Tp* __cxx_get_underlying_atomic(_Tp* __a) _NOEXCEPT {
template <typename _Tp, typename _Up>
_LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
auto __cxx_atomic_wrap_to_base(_Tp*, _Up __val) _NOEXCEPT -> typename _Tp::__wrap_t {
return typename _Tp::__temporary_t(__val);
return typename _Tp::__wrap_t(__val);
}
template <typename _Tp>
_LIBCUDACXX_INLINE_VISIBILITY _LIBCUDACXX_CONSTEXPR
Expand Down

0 comments on commit 1eb1288

Please sign in to comment.