Remove some unused functions

This commit is contained in:
twinaphex 2020-10-06 14:38:46 +02:00
parent 3aac1640e9
commit 39b672c008
2 changed files with 0 additions and 109 deletions

View File

@ -107,23 +107,6 @@ void Endian_A16_LE_to_NE(void *src, uint32_t nelements)
#endif
}
void Endian_A16_BE_to_NE(void *src, uint32_t nelements)
{
#ifndef MSB_FIRST
uint32_t i;
uint8_t *nsrc = (uint8_t *)src;
for(i = 0; i < nelements; i++)
{
uint8_t tmp = nsrc[i * 2];
nsrc[i * 2] = nsrc[i * 2 + 1];
nsrc[i * 2 + 1] = tmp;
}
#endif
}
void Endian_A32_LE_to_NE(void *src, uint32_t nelements)
{
#ifdef MSB_FIRST

View File

@ -16,7 +16,6 @@ void Endian_A32_NE_to_LE(void *src, uint32_t nelements);
void Endian_A64_NE_to_LE(void *src, uint32_t nelements);
void Endian_A16_LE_to_NE(void *src, uint32_t nelements);
void Endian_A16_BE_to_NE(void *src, uint32_t nelements);
void Endian_A32_LE_to_NE(void *src, uint32_t nelements);
void Endian_A64_LE_to_NE(void *src, uint32_t nelements);
@ -33,14 +32,6 @@ static INLINE void MDFN_en16lsb(uint8_t *buf, uint16_t morp)
buf[1]=morp>>8;
}
static INLINE void MDFN_en24lsb(uint8_t *buf, uint32_t morp)
{
buf[0]=morp;
buf[1]=morp>>8;
buf[2]=morp>>16;
}
static INLINE void MDFN_en32lsb(uint8_t *buf, uint32_t morp)
{
buf[0]=morp;
@ -49,99 +40,16 @@ static INLINE void MDFN_en32lsb(uint8_t *buf, uint32_t morp)
buf[3]=morp>>24;
}
static INLINE void MDFN_en64lsb(uint8_t *buf, uint64_t morp)
{
buf[0]=morp >> 0;
buf[1]=morp >> 8;
buf[2]=morp >> 16;
buf[3]=morp >> 24;
buf[4]=morp >> 32;
buf[5]=morp >> 40;
buf[6]=morp >> 48;
buf[7]=morp >> 56;
}
static INLINE void MDFN_en16msb(uint8_t *buf, uint16_t morp)
{
buf[0] = morp >> 8;
buf[1] = morp;
}
static INLINE void MDFN_en24msb(uint8_t *buf, uint32_t morp)
{
buf[0] = morp >> 16;
buf[1] = morp >> 8;
buf[2] = morp;
}
static INLINE void MDFN_en32msb(uint8_t *buf, uint32_t morp)
{
buf[0] = morp >> 24;
buf[1] = morp >> 16;
buf[2] = morp >> 8;
buf[3] = morp;
}
static INLINE void MDFN_en64msb(uint8_t *buf, uint64_t morp)
{
buf[0] = morp >> 56;
buf[1] = morp >> 48;
buf[2] = morp >> 40;
buf[3] = morp >> 32;
buf[4] = morp >> 24;
buf[5] = morp >> 16;
buf[6] = morp >> 8;
buf[7] = morp >> 0;
}
static INLINE uint16_t MDFN_de16lsb(const uint8_t *morp)
{
return(morp[0] | (morp[1] << 8));
}
static INLINE uint32_t MDFN_de24lsb(const uint8_t *morp)
{
return(morp[0]|(morp[1]<<8)|(morp[2]<<16));
}
static INLINE uint32_t MDFN_de32lsb(const uint8_t *morp)
{
return(morp[0]|(morp[1]<<8)|(morp[2]<<16)|(morp[3]<<24));
}
static INLINE uint64_t MDFN_de64lsb(const uint8_t *morp)
{
uint64_t ret = 0;
ret |= (uint64_t)morp[0];
ret |= (uint64_t)morp[1] << 8;
ret |= (uint64_t)morp[2] << 16;
ret |= (uint64_t)morp[3] << 24;
ret |= (uint64_t)morp[4] << 32;
ret |= (uint64_t)morp[5] << 40;
ret |= (uint64_t)morp[6] << 48;
ret |= (uint64_t)morp[7] << 56;
return(ret);
}
static INLINE uint16_t MDFN_de16msb(const uint8_t *morp)
{
return(morp[1] | (morp[0] << 8));
}
static INLINE uint32_t MDFN_de24msb(const uint8_t *morp)
{
return((morp[2]<<0)|(morp[1]<<8)|(morp[0]<<16));
}
static INLINE uint32_t MDFN_de32msb(const uint8_t *morp)
{
return(morp[3]|(morp[2]<<8)|(morp[1]<<16)|(morp[0]<<24));
}
#ifdef __cplusplus
}
#endif