Replace legacy xlc with clang-based xlc

This commit is contained in:
Federico Busato 2022-07-19 11:04:32 -07:00
parent 987e16820c
commit 043c1e4a69
2 changed files with 3 additions and 9 deletions

View File

@ -49,14 +49,8 @@
# define FMT_ICC_VERSION 0
#endif
#ifdef __xlC_ver__
# define FMT_XLC_VERSION __xlC_ver__
#elif defined(__xlC__)
# define FMT_XLC_VERSION __xlC__
#elif defined(__IBMC__)
# define FMT_XLC_VERSION __IBMC__
#elif defined(__IBMCPP__)
# define FMT_XLC_VERSION __IBMCPP__
#ifdef __ibmxl__
# define FMT_XLC_VERSION __ibmxl_vrm__
#else
# define FMT_XLC_VERSION 0
#endif

View File

@ -391,7 +391,7 @@ class uint128_fallback {
hi_ += (lo_ < n ? 1 : 0);
return *this;
}
#if FMT_XLC_VERSION && defined(_ARCH_PWR9) && defined(_ARCH_PPC64)
#if FMT_XLC_VERSION && defined(_ARCH_PWR9)
lo_ = __addex(lo_, n, 0, &carry);
hi_ += carry;
#elif FMT_HAS_BUILTIN(__builtin_addcll) && !FMT_XLC_VERSION