Skip to content

Commit 8e26720

Browse files
authored
Merge pull request #58 from hannesm/bitfn2
bitfn: remove MSC support (untested, likely incomplete, not in CI)
2 parents 53f367e + e98c15c commit 8e26720

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

src/native/bitfn.h

+2-15
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,8 @@
2626
#define BITFN_H
2727
#include <stdint.h>
2828

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)
4431

4532
static inline uint32_t rol32(uint32_t word, uint32_t shift)
4633
{

0 commit comments

Comments
 (0)