From 6a857f74eb920dd1824bc7e1651b04cfb7e322fe Mon Sep 17 00:00:00 2001 From: fbusato Date: Fri, 3 Jan 2025 23:19:49 +0000 Subject: [PATCH] disjoin 64/32-bit macros --- libcudacxx/include/cuda/std/__cccl/architecture.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libcudacxx/include/cuda/std/__cccl/architecture.h b/libcudacxx/include/cuda/std/__cccl/architecture.h index f54b1727a52..ef568fcf9a8 100644 --- a/libcudacxx/include/cuda/std/__cccl/architecture.h +++ b/libcudacxx/include/cuda/std/__cccl/architecture.h @@ -50,11 +50,14 @@ # define _CCCL_ARCH_X86_() 0 #endif -// 64-bit / 32-bit +// 64-bit #if _CCCL_ARCH_X86_64_() || _CCCL_ARCH_ARM64_() || defined(__CUDACC_RTC__) # define _CCCL_ARCH_64BIT_() 1 # define _CCCL_ARCH_32BIT_() 0 -#else +#endif + +// 32-bit +#if _CCCL_ARCH_X86_32_() # define _CCCL_ARCH_64BIT_() 0 # define _CCCL_ARCH_32BIT_() 1 #endif