Skip to content

Commit

Permalink
replaced !FMT_ICC_ON_WINDOWS by FMT_ICC_POSIX removed #pragma manged
Browse files Browse the repository at this point in the history
  • Loading branch information
mborn-adi committed Sep 24, 2021
1 parent 3acda1c commit 17fb5de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
6 changes: 3 additions & 3 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@

#ifdef __ICL
# define FMT_ICC_VERSION __ICL
# define FMT_ICC_ON_WINDOWS 1
# define FMT_ICC_POSIX 0
#elif defined(__INTEL_COMPILER)
# define FMT_ICC_VERSION __INTEL_COMPILER
# define FMT_ICC_ON_WINDOWS 0
# define FMT_ICC_POSIX 1
#else
# define FMT_ICC_VERSION 0
# define FMT_ICC_ON_WINDOWS 0
# define FMT_ICC_POSIX 1
#endif

#ifdef __NVCC__
Expand Down
12 changes: 2 additions & 10 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ FMT_END_NAMESPACE
# define FMT_BUILTIN_CLZLL(n) __builtin_clzll(n)
#endif
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctz) || FMT_ICC_VERSION) && \
!FMT_ICC_ON_WINDOWS
FMT_ICC_POSIX
# define FMT_BUILTIN_CTZ(n) __builtin_ctz(n)
#endif
#if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_ctzll) || \
FMT_ICC_VERSION) && \
!FMT_ICC_ON_WINDOWS
FMT_ICC_POSIX
# define FMT_BUILTIN_CTZLL(n) __builtin_ctzll(n)
#endif

Expand All @@ -187,9 +187,6 @@ FMT_BEGIN_NAMESPACE
namespace detail {
// Avoid Clang with Microsoft CodeGen's -Wunknown-pragmas warning.
# if !defined(__clang__)
# if !defined(__ICL)
# pragma managed(push, off)
# endif
# pragma intrinsic(_BitScanForward)
# pragma intrinsic(_BitScanReverse)
# if defined(_WIN64)
Expand Down Expand Up @@ -251,11 +248,6 @@ inline auto ctzll(uint64_t x) -> int {
return static_cast<int>(r);
}
# define FMT_BUILTIN_CTZLL(n) detail::ctzll(n)
# if !defined(__clang__)
# if !defined(__ICL)
# pragma managed(pop)
# endif
# endif
} // namespace detail
FMT_END_NAMESPACE
#endif
Expand Down

0 comments on commit 17fb5de

Please sign in to comment.