mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-06 23:11:25 +12:00
Avoid shifting by greater/equal than max bits values in ppu_rotate_mask
This commit is contained in:
parent
a36f0497ce
commit
c65bb0d267
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ union ppu_opcode_t
|
||||||
|
|
||||||
inline u64 ppu_rotate_mask(u32 mb, u32 me)
|
inline u64 ppu_rotate_mask(u32 mb, u32 me)
|
||||||
{
|
{
|
||||||
return utils::ror64(~0ull << (63 ^ (me - mb)), mb);
|
return utils::ror64(~0ull << (~(me - mb) & 63), mb);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline u32 ppu_decode(u32 inst)
|
inline u32 ppu_decode(u32 inst)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue