PPCAnalyst: Remove unnecessary casts
This commit is contained in:
parent
6eb2b6ef7a
commit
bb377d0fc3
|
@ -84,16 +84,16 @@ struct BlockRegStats
|
||||||
inline void SetInputRegister(int reg, short opindex)
|
inline void SetInputRegister(int reg, short opindex)
|
||||||
{
|
{
|
||||||
if (firstRead[reg] == -1)
|
if (firstRead[reg] == -1)
|
||||||
firstRead[reg] = (short)(opindex);
|
firstRead[reg] = opindex;
|
||||||
lastRead[reg] = (short)(opindex);
|
lastRead[reg] = opindex;
|
||||||
numReads[reg]++;
|
numReads[reg]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void SetOutputRegister(int reg, short opindex)
|
inline void SetOutputRegister(int reg, short opindex)
|
||||||
{
|
{
|
||||||
if (firstWrite[reg] == -1)
|
if (firstWrite[reg] == -1)
|
||||||
firstWrite[reg] = (short)(opindex);
|
firstWrite[reg] = opindex;
|
||||||
lastWrite[reg] = (short)(opindex);
|
lastWrite[reg] = opindex;
|
||||||
numWrites[reg]++;
|
numWrites[reg]++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue