mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[CPU/HIR] Fixed MulHi in value.cc for Linux systems
This commit is contained in:
parent
3d30b2eec3
commit
9ae3a72500
|
|
@ -410,12 +410,14 @@ void Value::MulHi(Value* other, bool is_unsigned) {
|
||||||
#else
|
#else
|
||||||
if (is_unsigned) {
|
if (is_unsigned) {
|
||||||
constant.i64 = static_cast<uint64_t>(
|
constant.i64 = static_cast<uint64_t>(
|
||||||
static_cast<unsigned __int128>(constant.i64) *
|
(static_cast<unsigned __int128>(constant.i64) *
|
||||||
static_cast<unsigned __int128>(other->constant.i64));
|
static_cast<unsigned __int128>(other->constant.i64)) >>
|
||||||
|
64);
|
||||||
} else {
|
} else {
|
||||||
constant.i64 =
|
constant.i64 = static_cast<uint64_t>(
|
||||||
static_cast<uint64_t>(static_cast<__int128>(constant.i64) *
|
(static_cast<__int128>(constant.i64) *
|
||||||
static_cast<__int128>(other->constant.i64));
|
static_cast<__int128>(other->constant.i64)) >>
|
||||||
|
64);
|
||||||
}
|
}
|
||||||
#endif // XE_COMPILER_MSVC
|
#endif // XE_COMPILER_MSVC
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue