CommandProcessor: mark some functions as static
This commit is contained in:
parent
44ee2f20b9
commit
07c7e6f35e
|
@ -77,11 +77,22 @@ void DoState(PointerWrap &p)
|
|||
p.Do(interruptFinishWaiting);
|
||||
}
|
||||
|
||||
inline void WriteLow (volatile u32& _reg, u16 lowbits) {Common::AtomicStore(_reg,(_reg & 0xFFFF0000) | lowbits);}
|
||||
inline void WriteHigh(volatile u32& _reg, u16 highbits) {Common::AtomicStore(_reg,(_reg & 0x0000FFFF) | ((u32)highbits << 16));}
|
||||
|
||||
inline u16 ReadLow (u32 _reg) {return (u16)(_reg & 0xFFFF);}
|
||||
inline u16 ReadHigh (u32 _reg) {return (u16)(_reg >> 16);}
|
||||
UNUSED static inline void WriteLow(volatile u32& _reg, u16 lowbits)
|
||||
{
|
||||
Common::AtomicStore(_reg, (_reg & 0xFFFF0000) | lowbits);
|
||||
}
|
||||
static inline void WriteHigh(volatile u32& _reg, u16 highbits)
|
||||
{
|
||||
Common::AtomicStore(_reg, (_reg & 0x0000FFFF) | ((u32)highbits << 16));
|
||||
}
|
||||
static inline u16 ReadLow(u32 _reg)
|
||||
{
|
||||
return (u16)(_reg & 0xFFFF);
|
||||
}
|
||||
static inline u16 ReadHigh(u32 _reg)
|
||||
{
|
||||
return (u16)(_reg >> 16);
|
||||
}
|
||||
|
||||
void Init()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue