~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to system/include/libc/machine/endian.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef __MACHINE_ENDIAN_H__
 
2
 
 
3
#include <sys/config.h>
 
4
 
 
5
#ifndef BIG_ENDIAN
 
6
#define BIG_ENDIAN 4321
 
7
#endif
 
8
#ifndef LITTLE_ENDIAN
 
9
#define LITTLE_ENDIAN 1234
 
10
#endif
 
11
 
 
12
#ifndef __LITTLE_ENDIAN
 
13
#define __LITTLE_ENDIAN LITTLE_ENDIAN
 
14
#endif
 
15
#ifndef __BIG_ENDIAN
 
16
#define __BIG_ENDIAN BIG_ENDIAN
 
17
#endif
 
18
 
 
19
#ifndef BYTE_ORDER
 
20
#if defined(__IEEE_LITTLE_ENDIAN) || defined(__IEEE_BYTES_LITTLE_ENDIAN)
 
21
#define BYTE_ORDER LITTLE_ENDIAN
 
22
#else
 
23
#define BYTE_ORDER BIG_ENDIAN
 
24
#endif
 
25
#endif
 
26
 
 
27
#ifndef __BYTE_ORDER
 
28
#define __BYTE_ORDER BYTE_ORDER
 
29
#endif
 
30
 
 
31
#endif /* __MACHINE_ENDIAN_H__ */