Go to the documentation of this file.
8 #ifndef BOOST_PREDEF_ENDIAN_H
9 #define BOOST_PREDEF_ENDIAN_H
47 #define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_NOT_AVAILABLE
48 #define BOOST_ENDIAN_BIG_WORD BOOST_VERSION_NUMBER_NOT_AVAILABLE
49 #define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_NOT_AVAILABLE
50 #define BOOST_ENDIAN_LITTLE_WORD BOOST_VERSION_NUMBER_NOT_AVAILABLE
55 #if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
56 !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
57 # if BOOST_LIB_C_GNU || BOOST_OS_ANDROID
61 # include <machine/endian.h>
64 # if BOOST_OS_BSD_OPEN
65 # include <machine/endian.h>
67 # include <sys/endian.h>
72 # if defined(__BYTE_ORDER)
73 # if defined(__BIG_ENDIAN) && (__BYTE_ORDER == __BIG_ENDIAN)
74 # undef BOOST_ENDIAN_BIG_BYTE
75 # define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_AVAILABLE
77 # if defined(__LITTLE_ENDIAN) && (__BYTE_ORDER == __LITTLE_ENDIAN)
78 # undef BOOST_ENDIAN_LITTLE_BYTE
79 # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
81 # if defined(__PDP_ENDIAN) && (__BYTE_ORDER == __PDP_ENDIAN)
82 # undef BOOST_ENDIAN_LITTLE_WORD
83 # define BOOST_ENDIAN_LITTLE_WORD BOOST_VERSION_NUMBER_AVAILABLE
86 # if !defined(__BYTE_ORDER) && defined(_BYTE_ORDER)
87 # if defined(_BIG_ENDIAN) && (_BYTE_ORDER == _BIG_ENDIAN)
88 # undef BOOST_ENDIAN_BIG_BYTE
89 # define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_AVAILABLE
91 # if defined(_LITTLE_ENDIAN) && (_BYTE_ORDER == _LITTLE_ENDIAN)
92 # undef BOOST_ENDIAN_LITTLE_BYTE
93 # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
95 # if defined(_PDP_ENDIAN) && (_BYTE_ORDER == _PDP_ENDIAN)
96 # undef BOOST_ENDIAN_LITTLE_WORD
97 # define BOOST_ENDIAN_LITTLE_WORD BOOST_VERSION_NUMBER_AVAILABLE
104 #if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
105 !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
106 # if (defined(__BIG_ENDIAN__) && !defined(__LITTLE_ENDIAN__)) || \
107 (defined(_BIG_ENDIAN) && !defined(_LITTLE_ENDIAN)) || \
108 defined(__ARMEB__) || \
109 defined(__THUMBEB__) || \
110 defined(__AARCH64EB__) || \
111 defined(_MIPSEB) || \
112 defined(__MIPSEB) || \
114 # undef BOOST_ENDIAN_BIG_BYTE
115 # define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_AVAILABLE
121 #if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
122 !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
123 # if (defined(__LITTLE_ENDIAN__) && !defined(__BIG_ENDIAN__)) || \
124 (defined(_LITTLE_ENDIAN) && !defined(_BIG_ENDIAN)) || \
125 defined(__ARMEL__) || \
126 defined(__THUMBEL__) || \
127 defined(__AARCH64EL__) || \
128 defined(_MIPSEL) || \
129 defined(__MIPSEL) || \
131 # undef BOOST_ENDIAN_LITTLE_BYTE
132 # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
139 #if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
140 !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
141 # include <boost/predef/architecture.h>
142 # if BOOST_ARCH_M68K || \
143 BOOST_ARCH_PARISC || \
144 BOOST_ARCH_SPARC || \
145 BOOST_ARCH_SYS370 || \
146 BOOST_ARCH_SYS390 || \
148 # undef BOOST_ENDIAN_BIG_BYTE
149 # define BOOST_ENDIAN_BIG_BYTE BOOST_VERSION_NUMBER_AVAILABLE
151 # if BOOST_ARCH_AMD64 || \
155 # undef BOOST_ENDIAN_LITTLE_BYTE
156 # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
163 #if !BOOST_ENDIAN_BIG_BYTE && !BOOST_ENDIAN_BIG_WORD && \
164 !BOOST_ENDIAN_LITTLE_BYTE && !BOOST_ENDIAN_LITTLE_WORD
166 # include <boost/predef/os/windows.h>
167 # if BOOST_OS_WINDOWS
168 # undef BOOST_ENDIAN_LITTLE_BYTE
169 # define BOOST_ENDIAN_LITTLE_BYTE BOOST_VERSION_NUMBER_AVAILABLE
174 #if BOOST_ENDIAN_BIG_BYTE
175 # define BOOST_ENDIAN_BIG_BYTE_AVAILABLE
177 #if BOOST_ENDIAN_BIG_WORD
178 # define BOOST_ENDIAN_BIG_WORD_BYTE_AVAILABLE
180 #if BOOST_ENDIAN_LITTLE_BYTE
181 # define BOOST_ENDIAN_LITTLE_BYTE_AVAILABLE
183 #if BOOST_ENDIAN_LITTLE_WORD
184 # define BOOST_ENDIAN_LITTLE_WORD_BYTE_AVAILABLE
187 #define BOOST_ENDIAN_BIG_BYTE_NAME "Byte-Swapped Big-Endian"
188 #define BOOST_ENDIAN_BIG_WORD_NAME "Word-Swapped Big-Endian"
189 #define BOOST_ENDIAN_LITTLE_BYTE_NAME "Byte-Swapped Little-Endian"
190 #define BOOST_ENDIAN_LITTLE_WORD_NAME "Word-Swapped Little-Endian"
197 #include <boost/predef/detail/test.h>
200 #include <boost/predef/detail/test.h>
203 #include <boost/predef/detail/test.h>
#define BOOST_ENDIAN_LITTLE_BYTE
#define BOOST_ENDIAN_LITTLE_WORD_NAME
#define BOOST_ENDIAN_BIG_WORD_NAME
#define BOOST_ENDIAN_LITTLE_BYTE_NAME
#define BOOST_ENDIAN_BIG_BYTE
#define BOOST_ENDIAN_BIG_WORD
#define BOOST_PREDEF_DECLARE_TEST(x, s)
#define BOOST_ENDIAN_BIG_BYTE_NAME
#define BOOST_ENDIAN_LITTLE_WORD
cv_bridge
Author(s): Patrick Mihelich, James Bowman
autogenerated on Wed Aug 21 2024 02:46:59