MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / LUDIV

Function LUDIV

FEXCore/Source/Interface/Core/JIT/JIT.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49static struct DivRem LUDIV(uint64_t SrcHigh, uint64_t SrcLow, uint64_t Divisor) {
50 __uint128_t Source = (static_cast<__uint128_t>(SrcHigh) << 64) | SrcLow;
51
52 return {
53 .Quotient = (uint64_t)(Source / Divisor),
54 .Remainder = (uint64_t)(Source % Divisor),
55 };
56}
57
58static struct DivRem
59LDIV(uint64_t SrcHigh, uint64_t SrcLow, int64_t Divisor) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected