mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-18 17:00:30 +02:00
Global: Fix some type conversion warnings.
Hidden by some warning disables.
This commit is contained in:
1 parent
5e185f3d87
commit
3df6cb704f
18 files changed
+41
-39
No files matched your search
@@ -120,14 +120,14 @@ void DecodeBitMasks(int immN, int imms, int immr, uint64_t *tmask, uint64_t *wma
|
||||
// if len < 1 then ReservedValue();
|
||||
// assert M >= (1 << len);
|
||||
// Determine S, R and S - R parameters
|
||||
int levels = Ones(len);
|
||||
int levels = (int)Ones(len);
|
||||
uint32_t S = imms & levels;
|
||||
uint32_t R = immr & levels;
|
||||
int diff = S - R; // 6-bit subtract with borrow
|
||||
int esize = 1 << len;
|
||||
int d = diff & Ones(len - 1);
|
||||
uint32_t welem = Ones(S + 1);
|
||||
uint32_t telem = Ones(d + 1);
|
||||
uint32_t welem = (uint32_t)Ones(S + 1);
|
||||
uint32_t telem = (uint32_t)Ones(d + 1);
|
||||
if (wmask) {
|
||||
uint64_t rotated = ROR(welem, R, esize);
|
||||
*wmask = Replicate(rotated, esize);
|
||||
|
||||
Reference in new issue
Block a user