Skip to content

Commit

Permalink
Merge pull request #838 from Tilka/unused
Browse files Browse the repository at this point in the history
CommandProcessor: mark some functions as static
  • Loading branch information
delroth committed Aug 25, 2014
2 parents 44ee2f2 + 07c7e6f commit 25bd734
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Source/Core/VideoCommon/CommandProcessor.cpp
Expand Up @@ -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()
{
Expand Down

0 comments on commit 25bd734

Please sign in to comment.