mirror of
https://github.com/libretro/beetle-wswan-libretro.git
synced 2024-11-27 02:00:30 +00:00
Cleanups
This commit is contained in:
parent
62e8d8f44e
commit
392235c1f9
@ -118,30 +118,11 @@ static inline void MDFN_en64msb(uint8 *buf, uint64 morp)
|
||||
buf[7] = morp >> 0;
|
||||
}
|
||||
|
||||
|
||||
// Overloaded functions, yay.
|
||||
static inline void MDFN_enlsb(uint16 * buf, uint16 value)
|
||||
{
|
||||
MDFN_en16lsb((uint8 *)buf, value);
|
||||
}
|
||||
|
||||
static inline void MDFN_enlsb(uint32 * buf, uint32 value)
|
||||
{
|
||||
MDFN_en32lsb((uint8 *)buf, value);
|
||||
}
|
||||
|
||||
static inline void MDFN_enlsb(uint64 * buf, uint64 value)
|
||||
{
|
||||
MDFN_en64lsb((uint8 *)buf, value);
|
||||
}
|
||||
|
||||
|
||||
static inline uint16 MDFN_de16lsb(const uint8 *morp)
|
||||
{
|
||||
return(morp[0] | (morp[1] << 8));
|
||||
}
|
||||
|
||||
|
||||
static inline uint32 MDFN_de24lsb(const uint8 *morp)
|
||||
{
|
||||
return(morp[0]|(morp[1]<<8)|(morp[2]<<16));
|
||||
@ -168,21 +149,6 @@ static inline uint64 MDFN_de64lsb(const uint8 *morp)
|
||||
return(ret);
|
||||
}
|
||||
|
||||
static inline uint16 MDFN_delsb(const uint16 *buf)
|
||||
{
|
||||
return(MDFN_de16lsb((uint8 *)buf));
|
||||
}
|
||||
|
||||
static inline uint32 MDFN_delsb(const uint32 *buf)
|
||||
{
|
||||
return(MDFN_de32lsb((uint8 *)buf));
|
||||
}
|
||||
|
||||
static inline uint64 MDFN_delsb(const uint64 *buf)
|
||||
{
|
||||
return(MDFN_de64lsb((uint8 *)buf));
|
||||
}
|
||||
|
||||
static inline uint16 MDFN_de16msb(const uint8 *morp)
|
||||
{
|
||||
return(morp[1] | (morp[0] << 8));
|
||||
|
Loading…
Reference in New Issue
Block a user