mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-12-25 01:01:52 +01:00
fix clang-cl (#202)
This commit is contained in:
parent
0a1985e481
commit
b752d2eddd
@ -111,7 +111,7 @@ uint64 PPCTimer_tscToMicroseconds(uint64 us)
|
|||||||
|
|
||||||
uint64 remainder;
|
uint64 remainder;
|
||||||
|
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1923
|
#if defined(_MSC_VER) && _MSC_VER >= 1923 && !defined(__clang__)
|
||||||
const uint64 microseconds = _udiv128(r.high, r.low, _rdtscFrequency, &remainder);
|
const uint64 microseconds = _udiv128(r.high, r.low, _rdtscFrequency, &remainder);
|
||||||
#else
|
#else
|
||||||
const uint64 microseconds = udiv128(r.low, r.high, _rdtscFrequency, &remainder);
|
const uint64 microseconds = udiv128(r.low, r.high, _rdtscFrequency, &remainder);
|
||||||
@ -159,7 +159,7 @@ uint64 PPCTimer_getFromRDTSC()
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint64 remainder;
|
uint64 remainder;
|
||||||
#if defined(_MSC_VER) && _MSC_VER >= 1923
|
#if defined(_MSC_VER) && _MSC_VER >= 1923 && !defined(__clang__)
|
||||||
uint64 elapsedTick = _udiv128(_rdtscAcc.high, _rdtscAcc.low, _rdtscFrequency, &remainder);
|
uint64 elapsedTick = _udiv128(_rdtscAcc.high, _rdtscAcc.low, _rdtscFrequency, &remainder);
|
||||||
#else
|
#else
|
||||||
uint64 elapsedTick = udiv128(_rdtscAcc.low, _rdtscAcc.high, _rdtscFrequency, &remainder);
|
uint64 elapsedTick = udiv128(_rdtscAcc.low, _rdtscAcc.high, _rdtscFrequency, &remainder);
|
||||||
|
Loading…
Reference in New Issue
Block a user