Use compiler intrinsics for byte swapping

This commit is contained in:
Martin Natano
2023-04-21 22:13:41 +02:00
parent bacecae1f7
commit 56edcee48c
8 changed files with 9 additions and 109 deletions
-4
View File
@@ -82,10 +82,6 @@ void my_usleep( unsigned long usec );
#define CRASH_HANDLER
#endif
#define ArchSwap32(n) _byteswap_ulong(n)
#define ArchSwap24(n) _byteswap_ulong(n) >> 8
#define ArchSwap16(n) _byteswap_ushort(n)
#endif
/*