mirror of
https://github.com/ran-j/PS2Recomp.git
synced 2026-09-26 08:51:05 -04:00
feat: add SET_GPR_ZE32 macro for zero-extending loads with unsigned semantics
This commit is contained in:
@@ -758,6 +758,17 @@ static inline void Ps2SetGprLow64(R5900Context *ctx, int reg, __m128i new_low)
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
|
||||
#define SET_GPR_ZE32(ctx_ptr, reg_idx, val) \
|
||||
do \
|
||||
{ \
|
||||
if ((reg_idx) != 0) \
|
||||
{ \
|
||||
__m128i _newVal = _mm_cvtsi64_si128((int64_t)(uint32_t)(val)); \
|
||||
Ps2SetGprLow64(ctx_ptr, reg_idx, _newVal); \
|
||||
} \
|
||||
} while (0)
|
||||
|
||||
#define SET_GPR_S32(ctx_ptr, reg_idx, val) \
|
||||
do \
|
||||
{ \
|
||||
|
||||
Reference in New Issue
Block a user