Commit 3f7438ef authored by Pieter Noordhuis's avatar Pieter Noordhuis Committed by antirez
Browse files

Everything x86 is little endian

parent f2f2ba1b
...@@ -59,10 +59,11 @@ ...@@ -59,10 +59,11 @@
#define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */ #define BIG_ENDIAN 4321 /* most-significant byte first (IBM, net) */
#define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp)*/ #define PDP_ENDIAN 3412 /* LSB first in word, MSW first in long (pdp)*/
#if defined(vax) || defined(ns32000) || defined(sun386) || defined(__i386__) || \ #if defined(__i386__) || defined(__x86_64__) || defined(__amd64__) || \
defined(MIPSEL) || defined(_MIPSEL) || defined(BIT_ZERO_ON_RIGHT) || \ defined(vax) || defined(ns32000) || defined(sun386) || \
defined(__alpha__) || defined(__alpha) defined(MIPSEL) || defined(_MIPSEL) || defined(BIT_ZERO_ON_RIGHT) || \
#define BYTE_ORDER LITTLE_ENDIAN defined(__alpha__) || defined(__alpha)
#define BYTE_ORDER LITTLE_ENDIAN
#endif #endif
#if defined(sel) || defined(pyr) || defined(mc68000) || defined(sparc) || \ #if defined(sel) || defined(pyr) || defined(mc68000) || defined(sparc) || \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment