Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 68a755b

Browse files
committedDec 30, 2024·
Disable 128-bit path in get_system_time
1 parent 3eed807 commit 68a755b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎rpcs3/Emu/Cell/lv2/sys_time.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ u64 get_timebased_time()
151151
{
152152
const u64 tsc = utils::get_tsc();
153153

154-
#if _MSC_VER
154+
#if 0
155155
const u64 result = static_cast<u64>(u128_from_mul(tsc, g_timebase_freq) / freq) * g_cfg.core.clocks_scale / 100u;
156156
#else
157157
const u64 result = (tsc / freq * g_timebase_freq + tsc % freq * g_timebase_freq / freq) * g_cfg.core.clocks_scale / 100u;
@@ -168,7 +168,7 @@ u64 get_timebased_time()
168168
const u64 time = count.QuadPart;
169169
const u64 freq = s_time_aux_info.perf_freq;
170170

171-
#if _MSC_VER
171+
#if 0
172172
const u64 result = static_cast<u64>(u128_from_mul(time * g_cfg.core.clocks_scale, g_timebase_freq) / freq / 100u);
173173
#else
174174
const u64 result = (time / freq * g_timebase_freq + time % freq * g_timebase_freq / freq) * g_cfg.core.clocks_scale / 100u;
@@ -211,7 +211,7 @@ u64 get_system_time()
211211
{
212212
const u64 tsc = utils::get_tsc();
213213

214-
#if _MSC_VER
214+
#if 0
215215
const u64 result = static_cast<u64>(u128_from_mul(tsc, 1000000ull) / freq);
216216
#else
217217
const u64 result = (tsc / freq * 1000000ull + tsc % freq * 1000000ull / freq);
@@ -228,7 +228,7 @@ u64 get_system_time()
228228
const u64 time = count.QuadPart;
229229
const u64 freq = s_time_aux_info.perf_freq;
230230

231-
#if _MSC_VER
231+
#if 0
232232
const u64 result = static_cast<u64>(u128_from_mul(time, 1000000ull) / freq);
233233
#else
234234
const u64 result = time / freq * 1000000ull + (time % freq) * 1000000ull / freq;

0 commit comments

Comments
 (0)
Please sign in to comment.