summaryrefslogtreecommitdiff
path: root/arch/powerpc/bits/endian.h
blob: 4442abf4eb95f66e6f6770559a5ad98c711f92ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifdef __BIG_ENDIAN__
  #if __BIG_ENDIAN__
    #define __BYTE_ORDER __BIG_ENDIAN
  #endif
#endif /* __BIG_ENDIAN__ */

#ifdef __LITTLE_ENDIAN__
  #if __LITTLE_ENDIAN__
    #define __BYTE_ORDER __LITTLE_ENDIAN
  #endif
#endif /* __LITTLE_ENDIAN__ */

#ifndef __BYTE_ORDER
  #define __BYTE_ORDER __BIG_ENDIAN
#endif