diff --git a/rpcs3/util/endian.hpp b/rpcs3/util/endian.hpp index ca24c2cf6b..4763ff7c9a 100644 --- a/rpcs3/util/endian.hpp +++ b/rpcs3/util/endian.hpp @@ -14,19 +14,17 @@ namespace stx static_assert(std::endian::native == std::endian::little || std::endian::native == std::endian::big); template - constexpr T bswap_impl(T i, std::index_sequence) + FORCE_INLINE constexpr T bswap_impl(T i, std::index_sequence) { - return static_cast(((((i >> (N * 8)) & T{UINT8_MAX}) << - ((sizeof(T) - 1 - N) * 8)) | ...)); + return static_cast(((((i >> (N * 8)) & T{UINT8_MAX}) << ((sizeof(T) - 1 - N) * 8)) | ...)); }; template::type> - constexpr U bswap(T i) + FORCE_INLINE constexpr U bswap(T i) { return bswap_impl(i, std::make_index_sequence{}); } - template struct se_storage {