[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
Tue Nov 28 09:08:48 PST 2023
================
@@ -222,7 +222,15 @@ bool EditIntegerInput(
value = -value;
}
if (any || !io.GetConnectionState().IsAtEOF()) {
- std::memcpy(n, &value, kind); // a blank field means zero
+ // For integer kind <= 4, the value is stored in the lower order bits on
----------------
klausler wrote:
It might be less confusing to instead change the definition of Fortran::common::Int128 for big-endian hosts so that its `high_` data member comes first.
https://github.com/llvm/llvm-project/pull/73670
More information about the flang-commits
mailing list