(libchdr) Backport 16eae7e4e5/src/chd.c
This commit is contained in:
parent
d2afef58d7
commit
8d8800229c
|
@ -419,12 +419,12 @@ static INLINE UINT32 get_bigendian_uint32(const UINT8 *base)
|
||||||
the data stream in bigendian order
|
the data stream in bigendian order
|
||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
|
|
||||||
static INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
static INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value)
|
||||||
{
|
{
|
||||||
value &= 0xffffff;
|
base[0] = value >> 24;
|
||||||
base[0] = value >> 16;
|
base[1] = value >> 16;
|
||||||
base[1] = value >> 8;
|
base[2] = value >> 8;
|
||||||
base[2] = value;
|
base[3] = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*-------------------------------------------------
|
/*-------------------------------------------------
|
||||||
|
@ -432,7 +432,7 @@ static INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
||||||
the data stream in bigendian order
|
the data stream in bigendian order
|
||||||
-------------------------------------------------*/
|
-------------------------------------------------*/
|
||||||
|
|
||||||
static INLINE void put_bigendian_uint32(UINT8 *base, UINT32 value)
|
static INLINE void put_bigendian_uint24(UINT8 *base, UINT32 value)
|
||||||
{
|
{
|
||||||
value &= 0xffffff;
|
value &= 0xffffff;
|
||||||
base[0] = value >> 16;
|
base[0] = value >> 16;
|
||||||
|
|
Loading…
Reference in New Issue