File tree 1 file changed +2
-15
lines changed
1 file changed +2
-15
lines changed Original file line number Diff line number Diff line change 26
26
#define BITFN_H
27
27
#include <stdint.h>
28
28
29
- #if defined(_MSC_VER )
30
- // not targeting xbox 360, which is big endian
31
- #include <stdlib.h>
32
- #define bitfn_swap32 (x ) _byteswap_ulong(x)
33
- #define bitfn_swap64 (x ) _byteswap_uint64(x)
34
- #ifndef __ORDER_LITTLE_ENDIAN__
35
- #define __ORDER_LITTLE_ENDIAN__ 1234
36
- #endif /* ORDER_LITTLE_ENDIAN */
37
- #ifndef __BYTE_ORDER__
38
- #define __BYTE_ORDER__ __ORDER_LITTLE_ENDIAN__
39
- #endif /* BYTE_ORDER */
40
- #else /* MSC_VER */
41
- #define bitfn_swap32 (x ) __builtin_bswap32(x)
42
- #define bitfn_swap64 (x ) __builtin_bswap64(x)
43
- #endif /* MSC_VER */
29
+ #define bitfn_swap32 (x ) __builtin_bswap32(x)
30
+ #define bitfn_swap64 (x ) __builtin_bswap64(x)
44
31
45
32
static inline uint32_t rol32 (uint32_t word , uint32_t shift )
46
33
{
You can’t perform that action at this time.
0 commit comments