summaryrefslogtreecommitdiffstats
path: root/src/common/uint128.h
diff options
context:
space:
mode:
authorMaide <34639600+Kelebek1@users.noreply.github.com>2022-07-28 01:47:06 +0200
committerGitHub <noreply@github.com>2022-07-28 01:47:06 +0200
commit2e461103790110a3deea6425709b1f7f937085ea (patch)
tree495ea29aedfefc3564a87c8c4b44ed199d1aad3a /src/common/uint128.h
parentimplement pause on system suspend (#8585) (diff)
downloadyuzu-2e461103790110a3deea6425709b1f7f937085ea.tar
yuzu-2e461103790110a3deea6425709b1f7f937085ea.tar.gz
yuzu-2e461103790110a3deea6425709b1f7f937085ea.tar.bz2
yuzu-2e461103790110a3deea6425709b1f7f937085ea.tar.lz
yuzu-2e461103790110a3deea6425709b1f7f937085ea.tar.xz
yuzu-2e461103790110a3deea6425709b1f7f937085ea.tar.zst
yuzu-2e461103790110a3deea6425709b1f7f937085ea.zip
Diffstat (limited to 'src/common/uint128.h')
-rw-r--r--src/common/uint128.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/uint128.h b/src/common/uint128.h
index 199d0f55e..f890ffec2 100644
--- a/src/common/uint128.h
+++ b/src/common/uint128.h
@@ -31,17 +31,12 @@ namespace Common {
return _udiv128(r[1], r[0], d, &remainder);
#endif
#else
-#ifdef __SIZEOF_INT128__
- const auto product = static_cast<unsigned __int128>(a) * static_cast<unsigned __int128>(b);
- return static_cast<u64>(product / d);
-#else
const u64 diva = a / d;
const u64 moda = a % d;
const u64 divb = b / d;
const u64 modb = b % d;
return diva * b + moda * divb + moda * modb / d;
#endif
-#endif
}
// This function multiplies 2 u64 values and produces a u128 value;