summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-03-13 01:10:51 +0100
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-18 22:29:26 +0200
commit59ce6e6d06e5ce8628f96bb247a342dec356fe43 (patch)
tree99476960b020ac4e4178b7450aa7c8acdf268cbc /src
parentCommon/Fiber: Document fiber interexchange. (diff)
downloadyuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar.gz
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar.bz2
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar.lz
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar.xz
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.tar.zst
yuzu-59ce6e6d06e5ce8628f96bb247a342dec356fe43.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/uint128.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/uint128.cpp b/src/common/uint128.cpp
index 7e77588db..16bf7c828 100644
--- a/src/common/uint128.cpp
+++ b/src/common/uint128.cpp
@@ -19,7 +19,11 @@ u64 MultiplyAndDivide64(u64 a, u64 b, u64 d) {
u128 r{};
r[0] = _umul128(a, b, &r[1]);
u64 remainder;
+#if _MSC_VER < 1923
+ return udiv128(r[1], r[0], d, &remainder);
+#else
return _udiv128(r[1], r[0], d, &remainder);
+#endif
}
#else