replaced FMT_ICC_POSIX with FMT_ICC_INTRINSIC_BUG to be crystal clear about the macro's purpose

This commit is contained in:
Mathias Born 2021-09-30 15:11:11 +02:00
parent 17fb5de4a1
commit a29db701a3
2 changed files with 5 additions and 5 deletions

View File

@ -34,13 +34,13 @@
#ifdef __ICL #ifdef __ICL
# define FMT_ICC_VERSION __ICL # define FMT_ICC_VERSION __ICL
# define FMT_ICC_POSIX 0 # define FMT_ICC_INTRINSIC_BUG 1
#elif defined(__INTEL_COMPILER) #elif defined(__INTEL_COMPILER)
# define FMT_ICC_VERSION __INTEL_COMPILER # define FMT_ICC_VERSION __INTEL_COMPILER
# define FMT_ICC_POSIX 1 # define FMT_ICC_INTRINSIC_BUG 0
#else #else
# define FMT_ICC_VERSION 0 # define FMT_ICC_VERSION 0
# define FMT_ICC_POSIX 1 # define FMT_ICC_INTRINSIC_BUG 0
#endif #endif
#ifdef __NVCC__ #ifdef __NVCC__

View File

@ -166,12 +166,12 @@ FMT_END_NAMESPACE
# define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n) # define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
#endif #endif
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctz) || FMT_ICC_VERSION) && \ #if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctz) || FMT_ICC_VERSION) && \
FMT_ICC_POSIX !FMT_ICC_INTRINSIC_BUG
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n) # define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
#endif #endif
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctzll) || \ #if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctzll) || \
FMT_ICC_VERSION) && \ FMT_ICC_VERSION) && \
FMT_ICC_POSIX !FMT_ICC_INTRINSIC_BUG
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n) # define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
#endif #endif