[CPU/HIR] Fixed MulHi in value.cc for Linux systems
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user