It was technically possible but clumsy to determine what endianness a guest
was configured with using the state in byteswap.hh. This change makes that
information available more directly.
Also get rid of unused (and mildly redundant) ByteOrderDiffers constant.
namespace BigEndianGuest
{
- const bool ByteOrderDiffers = (HostByteOrder != BigEndianByteOrder);
+ const ByteOrder GuestByteOrder = BigEndianByteOrder;
template <typename T>
inline T gtole(T value) {return betole(value);}
template <typename T>
namespace LittleEndianGuest
{
- const bool ByteOrderDiffers = (HostByteOrder != LittleEndianByteOrder);
+ const ByteOrder GuestByteOrder = LittleEndianByteOrder;
template <typename T>
inline T gtole(T value) {return value;}
template <typename T>