Jit64: Avoid pointer casts if possible.

This commit is contained in:
degasus
2016-11-03 21:01:00 +01:00
parent f325d41def
commit 21f3e97435
7 changed files with 20 additions and 22 deletions

View File

@ -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)