Skip to content

Commit

Permalink
Fix plain use of builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
miscco committed Nov 21, 2024
1 parent 21c8830 commit b2bc723
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libcudacxx/include/cuda/std/__cmath/traits.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ _LIBCUDACXX_BEGIN_NAMESPACE_STD
_CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI bool signbit(float __x) noexcept
{
#if defined(_CCCL_BUILTIN_SIGNBIT)
return __builtin_signbit(__x);
return _CCCL_BUILTIN_SIGNBIT(__x);
#else // ^^^ _CCCL_BUILTIN_SIGNBIT ^^^ / vvv !_CCCL_BUILTIN_SIGNBIT vvv
return ::signbit(__x);
#endif // !_CCCL_BUILTIN_SIGNBIT
Expand All @@ -45,7 +45,7 @@ _CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI bool signbit(float __x) noexcept
_CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI bool signbit(double __x) noexcept
{
#if defined(_CCCL_BUILTIN_SIGNBIT)
return __builtin_signbit(__x);
return _CCCL_BUILTIN_SIGNBIT(__x);
#else // ^^^ _CCCL_BUILTIN_SIGNBIT ^^^ / vvv !_CCCL_BUILTIN_SIGNBIT vvv
return ::signbit(__x);
#endif // !_CCCL_BUILTIN_SIGNBIT
Expand All @@ -55,7 +55,7 @@ _CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI bool signbit(double __x) noexcept
_CCCL_NODISCARD _LIBCUDACXX_HIDE_FROM_ABI bool signbit(long double __x) noexcept
{
# if defined(_CCCL_BUILTIN_SIGNBIT)
return __builtin_signbit(__x);
return _CCCL_BUILTIN_SIGNBIT(__x);
# else // ^^^ _CCCL_BUILTIN_SIGNBIT ^^^ / vvv !_CCCL_BUILTIN_SIGNBIT vvv
return ::signbit(__x);
# endif // !_CCCL_BUILTIN_SIGNBIT
Expand Down

0 comments on commit b2bc723

Please sign in to comment.