Merge pull request #838 from Tilka/unused

CommandProcessor: mark some functions as static
This commit is contained in:
Pierre Bourdon 2014-08-25 21:24:15 +02:00
commit 25bd734578
1 changed files with 16 additions and 5 deletions

View File

@ -77,11 +77,22 @@ void DoState(PointerWrap &p)
p.Do(interruptFinishWaiting); p.Do(interruptFinishWaiting);
} }
inline void WriteLow (volatile u32& _reg, u16 lowbits) {Common::AtomicStore(_reg,(_reg & 0xFFFF0000) | lowbits);} UNUSED static inline void WriteLow(volatile u32& _reg, u16 lowbits)
inline void WriteHigh(volatile u32& _reg, u16 highbits) {Common::AtomicStore(_reg,(_reg & 0x0000FFFF) | ((u32)highbits << 16));} {
Common::AtomicStore(_reg, (_reg & 0xFFFF0000) | lowbits);
inline u16 ReadLow (u32 _reg) {return (u16)(_reg & 0xFFFF);} }
inline u16 ReadHigh (u32 _reg) {return (u16)(_reg >> 16);} 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() void Init()
{ {