workaround for IBM's XLClang compiler

This commit is contained in:
Axel Kohlmeyer
2022-08-08 15:27:52 -04:00
parent fb2dd26d45
commit 92dc854ed4

View File

@ -389,7 +389,8 @@ class uint128_fallback {
hi_ += (lo_ < n ? 1 : 0);
return *this;
}
#if FMT_HAS_BUILTIN(__builtin_addcll)
// LAMMPS customization: XLCClang does not support __builtin_addcll()
#if FMT_HAS_BUILTIN(__builtin_addcll) && !(defined(__xlc__) && defined(__clang__))
unsigned long long carry;
lo_ = __builtin_addcll(lo_, n, 0, &carry);
hi_ += carry;