[flang-commits] [flang] [Flang] Shift the data from lower to higher order bits in the big endian environment (PR #73670)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Mon Dec 18 11:24:05 PST 2023
================
@@ -255,7 +266,7 @@ template <bool IS_SIGNED = false> class Int128 {
}
}
static constexpr std::uint64_t topBit{std::uint64_t{1} << 63};
- std::uint64_t low_{0}, high_{0};
+ std::uint64_t SWAP(low_, 0, high_, 0);
----------------
klausler wrote:
This line is the declaration that should be wrapped with `#if FLANG_LITTLE_ENDIAN` &c.
https://github.com/llvm/llvm-project/pull/73670
More information about the flang-commits
mailing list