Use _byteswap_ushort etc for WIN32

Signed-off-by: Taiju Yamada <tyamada@bi.a.u-tokyo.ac.jp>
This commit is contained in:
Taiju Yamada 2024-03-11 12:15:56 +09:00 committed by Pablo de Lara
parent ea1288fc6a
commit ae034d6f08

View File

@ -50,7 +50,7 @@
#define isal_bswap16(x) bswap_16(x) #define isal_bswap16(x) bswap_16(x)
#define isal_bswap32(x) bswap_32(x) #define isal_bswap32(x) bswap_32(x)
#define isal_bswap64(x) bswap_64(x) #define isal_bswap64(x) bswap_64(x)
#elif defined _WIN64 #elif defined _WIN32
#define isal_bswap16(x) _byteswap_ushort(x) #define isal_bswap16(x) _byteswap_ushort(x)
#define isal_bswap32(x) _byteswap_ulong(x) #define isal_bswap32(x) _byteswap_ulong(x)
#define isal_bswap64(x) _byteswap_uint64(x) #define isal_bswap64(x) _byteswap_uint64(x)