mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-04 14:01:17 +12:00
Initial macOS port bringup (#52)
This commit is contained in:
parent
a2abffd37b
commit
974edaa649
84 changed files with 157 additions and 122 deletions
|
@ -144,22 +144,32 @@ inline sint16 _swapEndianS16(sint16 v)
|
|||
{
|
||||
return (sint16)(((uint16)v >> 8) | ((uint16)v << 8));
|
||||
}
|
||||
#endif
|
||||
|
||||
#if BOOST_OS_LINUX
|
||||
#else
|
||||
inline uint64 _swapEndianU64(uint64 v)
|
||||
{
|
||||
#if BOOST_OS_MACOS
|
||||
return OSSwapInt64(v);
|
||||
#else
|
||||
return bswap_64(v);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint32 _swapEndianU32(uint32 v)
|
||||
{
|
||||
#if BOOST_OS_MACOS
|
||||
return OSSwapInt32(v);
|
||||
#else
|
||||
return bswap_32(v);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline sint32 _swapEndianS32(sint32 v)
|
||||
{
|
||||
#if BOOST_OS_MACOS
|
||||
return (sint32)OSSwapInt32((uint32)v);
|
||||
#else
|
||||
return (sint32)bswap_32((uint32)v);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline uint16 _swapEndianU16(uint16 v)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue