mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
Jit64: Avoid pointer casts if possible.
This commit is contained in:
@ -324,7 +324,7 @@ inline OpArg ImmPtr(const void* imm)
|
||||
return Imm64((u64)imm);
|
||||
}
|
||||
|
||||
inline u32 PtrOffset(const void* ptr, const void* base)
|
||||
inline u32 PtrOffset(const void* ptr, const void* base = nullptr)
|
||||
{
|
||||
s64 distance = (s64)ptr - (s64)base;
|
||||
if (distance >= 0x80000000LL || distance < -0x80000000LL)
|
||||
|
Reference in New Issue
Block a user