mirror of
https://github.com/pound-emu/pound.git
synced 2025-12-29 16:37:01 +00:00
The term KVM is missleading because we are not using linux kernel virtualization. PVM stands for "Pound Virtual Machine" which is more accurate. Signed-off-by: Ronald Caesar <github43132@proton.me>
26 lines
477 B
C
26 lines
477 B
C
#ifndef POUND_KVM_ENDIAN_H
|
|
#define POUND_KVM_ENDIAN_H
|
|
|
|
#define GUEST_IS_LITTLE_ENDIAN 1
|
|
|
|
#ifdef _WIN32
|
|
|
|
#include <stdlib.h>
|
|
#define bswap_16(x) _byteswap_ushort(x)
|
|
#define bswap_32(x) _byteswap_ulong(x)
|
|
#define bswap_64(x) _byteswap_uint64(x)
|
|
|
|
#elif defined(__APPLE__)
|
|
|
|
#include <libkern/OSByteOrder.h>
|
|
#define bswap_16(x) OSSwapInt16(x)
|
|
#define bswap_32(x) OSSwapInt32(x)
|
|
#define bswap_64(x) OSSwapInt64(x)
|
|
|
|
#else
|
|
|
|
#include <byteswap.h>
|
|
|
|
#endif
|
|
|
|
#endif // POUND_KVM_ENDIAN_H
|