Loading...
Searching...
No Matches
Go to the documentation of this file.
28#ifndef __SYSTEMC_EXT_UTILS_ENDIAN_HH__
29#define __SYSTEMC_EXT_UTILS_ENDIAN_HH__
34#if defined (__GLIBC__)
36# if (__BYTE_ORDER == __LITTLE_ENDIAN)
37# define SC_BOOST_LITTLE_ENDIAN
38# elif (__BYTE_ORDER == __BIG_ENDIAN)
39# define SC_BOOST_BIG_ENDIAN
40# elif (__BYTE_ORDER == __PDP_ENDIAN)
41# define SC_BOOST_PDP_ENDIAN
43# error Unknown machine endianness detected.
45# define SC_BOOST_BYTE_ORDER __BYTE_ORDER
46#elif defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN) || \
47 defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__) || \
48 defined(_STLP_BIG_ENDIAN) && !defined(_STLP_LITTLE_ENDIAN)
49# define SC_BOOST_BIG_ENDIAN
50# define SC_BOOST_BYTE_ORDER 4321
51#elif defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN) || \
52 defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__) || \
53 defined(_STLP_LITTLE_ENDIAN) && !defined(_STLP_BIG_ENDIAN)
54# define SC_BOOST_LITTLE_ENDIAN
55# define SC_BOOST_BYTE_ORDER 1234
56#elif defined(__sparc) || defined(__sparc__) \
57 || defined(_POWER) || defined(__powerpc__) \
58 || defined(__ppc__) || defined(__ppc64__) \
59 || defined(__hpux) || defined(__hppa) \
60 || defined(_MIPSEB) || defined(_POWER) \
62# define SC_BOOST_BIG_ENDIAN
63# define SC_BOOST_BYTE_ORDER 4321
64#elif defined(__i386__) || defined(__alpha__) \
65 || defined(__ia64) || defined(__ia64__) \
66 || defined(_M_IX86) || defined(_M_IA64) \
67 || defined(_M_ALPHA) || defined(__amd64) \
68 || defined(__amd64__) || defined(_M_AMD64) \
69 || defined(__x86_64) || defined(__x86_64__) \
70 || defined(_M_X64) || defined(__bfin__) \
71 || defined(__arm__) || defined(__aarch64__)
73# define SC_BOOST_LITTLE_ENDIAN
74# define SC_BOOST_BYTE_ORDER 1234
76# error The file boost/detail/endian.hpp needs to be set up for your CPU type.
Generated on Tue Jun 18 2024 16:24:07 for gem5 by doxygen 1.11.0