2727# include < cuda/__ptx/instructions/shr.h>
2828#endif // _CCCL_CUDA_COMPILATION()
2929#include < cuda/std/__type_traits/conditional.h>
30- #include < cuda/std/__type_traits/is_constant_evaluated.h>
3130#include < cuda/std/__type_traits/is_unsigned_integer.h>
3231#include < cuda/std/limits>
3332
@@ -38,7 +37,7 @@ _CCCL_BEGIN_NAMESPACE_CUDA
3837template <typename _Tp>
3938[[nodiscard]] _CCCL_API constexpr _Tp __shl (const _Tp __value, int __shift) noexcept
4039{
41- if (!:: cuda::std::__cccl_default_is_constant_evaluated ())
40+ _CCCL_IF_NOT_CONSTEVAL_DEFAULT
4241 {
4342 if constexpr (sizeof (_Tp) <= sizeof (uint64_t ))
4443 {
@@ -53,7 +52,7 @@ template <typename _Tp>
5352template <typename _Tp>
5453[[nodiscard]] _CCCL_API constexpr _Tp __shr (const _Tp __value, int __shift) noexcept
5554{
56- if (!:: cuda::std::__cccl_default_is_constant_evaluated ())
55+ _CCCL_IF_NOT_CONSTEVAL_DEFAULT
5756 {
5857 if constexpr (sizeof (_Tp) <= sizeof (uint64_t ))
5958 {
@@ -73,7 +72,7 @@ template <typename _Tp = uint32_t>
7372 _CCCL_ASSERT (__width >= 0 && __width <= __digits, " width out of range" );
7473 _CCCL_ASSERT (__start >= 0 && __start <= __digits, " start position out of range" );
7574 _CCCL_ASSERT (__start + __width <= __digits, " start position + width out of range" );
76- if (!:: cuda::std::__cccl_default_is_constant_evaluated ())
75+ _CCCL_IF_NOT_CONSTEVAL_DEFAULT
7776 {
7877 if constexpr (sizeof (_Tp) <= sizeof (uint32_t ))
7978 {
0 commit comments