-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathendianness_config.h.in
483 lines (398 loc) · 14.9 KB
/
endianness_config.h.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
/*
* Endianness - Detected Files and Settings
*
* This file is parsed by CMake during makefile generation
*/
#ifndef ENDIANNESS_GENERATED_CONFIG_H_
#define ENDIANNESS_GENERATED_CONFIG_H_
/* If a non-system implementation is forced, do not define any headers as available */
#cmakedefine ENDIANNESS_CONFIG_FORCE_NON_SYSTEM_IMPLEMENTATION
#ifndef ENDIANNESS_CONFIG_FORCE_NON_SYSTEM_IMPLEMENTATION
/* Whether endian.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_ENDIAN_H
/* Whether sys/endian.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_SYS_ENDIAN_H
/* Whether sys/param.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_SYS_PARAM_H
/* Whether inttypes.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_INTTYPES_H
/* Whether features.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_FEATURES_H
/* Whether libkern/OSByteOrder.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_LIBKERN_OSBYTEORDER_H
/* Whether arpa/inet.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_ARPA_INET_H
/* Whether netinet/in.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_NETINET_IN_H
/* Whether winsock2.h is available */
#cmakedefine ENDIANNESS_CONFIG_HAVE_WINSOCK2_H
/* Whether the endian.h or sys/endian.h functions use OpenBSD style (letoh16) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_OPENBSD_STYLE_ENDIAN_FUNCTIONS
/* Whether the endian.h or sys/endian.h functions use Non-OpenBSD style (le16toh) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_NON_OPENBSD_STYLE_ENDIAN_FUNCTIONS
/* Whether the compiler supports builtin byteswap intrinsics (__builtin_bswap16) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS
/* Whether the compiler supports builtin byteswap intrinsics (_byteswap_ushort) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS
/* Whether the 16bit hton functions are available (htons, ntohs) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_HTONS_FUNCTIONS
/* Whether the 32bit hton functions are available (htonl, ntohl) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_HTONL_FUNCTIONS
/* Whether the 64bit hton functions are available (htonll, ntohll) */
#cmakedefine ENDIANNESS_CONFIG_HAVE_HTONLL_FUNCTIONS
#endif /* ENDIANNESS_CONFIG_FORCE_NON_SYSTEM_IMPLEMENTATION */
@ENDIANNESS_CONFIG_TEST_RUN_OUTPUT@
/* ------------------------------------------------------------------- */
/* Function declarations, depending on the macro values above. */
#include <stddef.h>
#include <stdint.h>
/* Necessary for some systems to expose functions */
#if !(defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(ENDIANNESS_CONFIG_FORCE_NON_SYSTEM_IMPLEMENTATION)
# ifndef __USE_BSD
# define __USE_BSD
# endif
# ifndef _BSD_SOURCE
# define _BSD_SOURCE
# endif
# ifndef _SVID_SOURCE
# define _SVID_SOURCE
# endif
# ifndef _DEFAULT_SOURCE
# define _DEFAULT_SOURCE
# endif
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_ENDIAN_H
# include <endian.h>
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_SYS_ENDIAN_H
# include <sys/endian.h>
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_SYS_PARAM_H
# include <sys/param.h>
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_INTTYPES_H
# include <inttypes.h>
#endif
/*
Using features.h we can test for the GLIBC version.
If it is below 2.9 "endian.h" will be missing the required functions.
See http://linux.die.net/man/3/endian
*/
#ifdef ENDIANNESS_CONFIG_HAVE_FEATURES_H
# include <features.h>
# if !defined(__GLIBC__) || !defined(__GLIBC_MINOR__) || ((__GLIBC__ < 2) || ((__GLIBC__ == 2) && (__GLIBC_MINOR__ < 9)))
# if defined(ENDIANNESS_CONFIG_HAVE_ENDIAN_H)
# undef ENDIANNESS_CONFIG_HAVE_ENDIAN_H
# endif
# if defined(ENDIANNESS_CONFIG_HAVE_SYS_ENDIAN_H)
# undef ENDIANNESS_CONFIG_HAVE_SYS_ENDIAN_H
# endif
# endif
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_ARPA_INET_H
# include <arpa/inet.h>
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_WINSOCK2_H
# include <WinSock2.h>
#endif
#if defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) && !defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define __builtin_bswap16(x) _byteswap_ushort((x))
# define __builtin_bswap32(x) _byteswap_ulong((x))
# define __builtin_bswap64(x) _byteswap_uint64((x))
# define ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS
#endif
#ifdef ENDIANNESS_CONFIG_HAVE_LIBKERN_OSBYTEORDER_H
/* Apple Systems, Mac OS */
# include <libkern/OSByteOrder.h>
# define htobe16(x) OSSwapHostToBigInt16(x)
# define htole16(x) OSSwapHostToLittleInt16(x)
# define betoh16(x) OSSwapBigToHostInt16(x)
# define letoh16(x) OSSwapLittleToHostInt16(x)
# define htobe32(x) OSSwapHostToBigInt32(x)
# define htole32(x) OSSwapHostToLittleInt32(x)
# define betoh32(x) OSSwapBigToHostInt32(x)
# define letoh32(x) OSSwapLittleToHostInt32(x)
# define htobe64(x) OSSwapHostToBigInt64(x)
# define htole64(x) OSSwapHostToLittleInt64(x)
# define betoh64(x) OSSwapBigToHostInt64(x)
# define letoh64(x) OSSwapLittleToHostInt64(x)
#elif defined(ENDIANNESS_CONFIG_HAVE_NON_OPENBSD_STYLE_ENDIAN_FUNCTIONS) && !defined(ENDIANNESS_CONFIG_HAVE_OPENBSD_STYLE_ENDIAN_FUNCTIONS)
/* Define the methods using those that are in the Non-OpenBSD style */
# define betoh16(x) be16toh((x))
# define letoh16(x) le16toh((x))
# define betoh32(x) be32toh((x))
# define letoh32(x) le32toh((x))
# define betoh64(x) be64toh((x))
# define letoh64(x) le64toh((x))
#elif !defined(ENDIANNESS_CONFIG_HAVE_NON_OPENBSD_STYLE_ENDIAN_FUNCTIONS) && !defined(ENDIANNESS_CONFIG_HAVE_OPENBSD_STYLE_ENDIAN_FUNCTIONS) && (ENDIANNESS_CONFIG_ENDIAN_TYPE == ENDIANNESS_VAL_LITTLE_ENDIAN)
/* 16bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_HTONS_FUNCTIONS)
# ifndef htobe16
# define htobe16(x) htons(x)
# endif
# define htole16(x) (x)
# define betoh16(x) ntohs(x)
# define letoh16(x) (x)
# elif defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define htobe16(x) __builtin_bswap16(x)
# define htole16(x) (x)
# define betoh16(x) __builtin_bswap16(x)
# define letoh16(x) (x)
# else
# define htobe16(x) to_big_endian16(x)
# define htole16(x) (x)
# define betoh16(x) from_big_endian16(x)
# define letoh16(x) (x)
# endif
/* 32bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_HTONL_FUNCTIONS)
# ifndef htobe32
# define htobe32(x) htonl(x)
# endif
# define htole32(x) (x)
# define betoh32(x) ntohl(x)
# define letoh32(x) (x)
# elif defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define htobe32(x) __builtin_bswap32(x)
# define htole32(x) (x)
# define betoh32(x) __builtin_bswap32(x)
# define letoh32(x) (x)
# else
# define htobe32(x) to_big_endian32(x)
# define htole32(x) (x)
# define betoh32(x) from_big_endian32(x)
# define letoh32(x) (x)
# endif
/* 64bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_HTONLL_FUNCTIONS)
# define htobe64(x) htonll(x)
# define htole64(x) (x)
# define betoh64(x) ntohll(x)
# define letoh64(x) (x)
# elif defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# ifndef htobe64
# define htobe64(x) __builtin_bswap64(x)
# endif
# define htole64(x) (x)
# define betoh64(x) __builtin_bswap64(x)
# define letoh64(x) (x)
# else
# define htobe64(x) to_big_endian64(x)
# define htole64(x) (x)
# define betoh64(x) from_big_endian64(x)
# define letoh64(x) (x)
# endif
#elif !defined(ENDIANNESS_CONFIG_HAVE_NON_OPENBSD_STYLE_ENDIAN_FUNCTIONS) && !defined(ENDIANNESS_CONFIG_HAVE_OPENBSD_STYLE_ENDIAN_FUNCTIONS) && (ENDIANNESS_CONFIG_ENDIAN_TYPE == ENDIANNESS_VAL_BIG_ENDIAN)
/* 16bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define htobe16(x) (x)
# define htole16(x) __builtin_bswap16(x)
# define betoh16(x) (x)
# define letoh16(x) __builtin_bswap16(x)
# else
# define htobe16(x) (x)
# define htole16(x) to_little_endian16(x)
# define betoh16(x) (x)
# define letoh16(x) from_little_endian16(x)
# endif
/* 32bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define htobe32(x) (x)
# define htole32(x) __builtin_bswap32(x)
# define betoh32(x) (x)
# define letoh32(x) __builtin_bswap32(x)
# else
# define htobe32(x) (x)
# define htole32(x) to_little_endian32(x)
# define betoh32(x) (x)
# define letoh32(x) from_little_endian32(x)
# endif
/* 64bit functions */
# if defined(ENDIANNESS_CONFIG_HAVE_MSVC_STYLE_BSWAP_FUNCTIONS) || defined(ENDIANNESS_CONFIG_HAVE_GCC_STYLE_BSWAP_FUNCTIONS)
# define htobe64(x) (x)
# define htole64(x) __builtin_bswap64(x)
# define betoh64(x) (x)
# define letoh64(x) __builtin_bswap64(x)
# else
# define htobe64(x) (x)
# define htole64(x) to_little_endian64(x)
# define betoh64(x) (x)
# define letoh64(x) from_little_endian64(x)
# endif
#else
/* fallback if no system-provided functions are available */
# define htobe16(x) to_big_endian16(x)
# define htole16(x) to_little_endian16(x)
# define betoh16(x) from_big_endian16(x)
# define letoh16(x) from_little_endian16(x)
# define htobe32(x) to_big_endian32(x)
# define htole32(x) to_little_endian32(x)
# define betoh32(x) from_big_endian32(x)
# define letoh32(x) from_little_endian32(x)
# define htobe64(x) to_big_endian64(x)
# define htole64(x) to_little_endian64(x)
# define betoh64(x) from_big_endian64(x)
# define letoh64(x) from_little_endian64(x)
#endif
#ifndef ENDIANNESS_CONFIG_FORCE_SYSTEM_IMPLEMENTATION
#ifdef ENDIANNESS_CONFIG_STATIC
# undef ENDIANNESS_CONFIG_STATIC
# define ENDIANNESS_CONFIG_STATIC static
#else
# define ENDIANNESS_CONFIG_STATIC
#endif
/*
Datatypes for accessing the bytes of uintNN_t
Endian_Data_##N : N = sizeof(Endian_Data_##N)
*/
union Endian_Data_16 {
uint16_t integer_value;
uint8_t char_values[2];
};
typedef union Endian_Data_16 Endian_Data_2;
union Endian_Data_32 {
uint32_t integer_value;
uint8_t char_values[4];
};
typedef union Endian_Data_32 Endian_Data_4;
union Endian_Data_64 {
uint64_t integer_value;
uint8_t char_values[8];
};
typedef union Endian_Data_64 Endian_Data_8;
/*
Custom, non-system dependent implementations of the endian-switching functions.
These depend on the correct findings of the CMake endian test.
The following macros greatly reduce the code duplication in the following
endian-switching functions.
DATVAL2 : move data from byte R to byte L
DATVALR and DATVALL do probably the same
B : sizeof(value)
R ? little_endian : big_endian
N : byte index
One of these macros is called inside of the endian-switching functions
for each byte to switch it according to the
ENDIANNESS_*_BYTE_TYPE_LSB_PLUS_*_INDEX macros.
VARS : declare common variables for the functions
B : sizeof(value)
*/
#define ENDIANNESS_CONFIG_DATVAL2(L,R) endian_data.char_values[L] = endian_data_copy.char_values[R];
#define ENDIANNESS_CONFIG_DATVALR(B,R,N) ENDIANNESS_CONFIG_DATVAL2(R ? (B - 1 - N) : N, ENDIANNESS_##B##_BYTE_TYPE_LSB_PLUS_##N##_INDEX)
#define ENDIANNESS_CONFIG_DATVALL(B,R,N) ENDIANNESS_CONFIG_DATVAL2(ENDIANNESS_##B##_BYTE_TYPE_LSB_PLUS_##N##_INDEX, R ? (B - 1 - N) : N)
#define ENDIANNESS_CONFIG_VARS(B) \
Endian_Data_##B endian_data; \
Endian_Data_##B endian_data_copy; \
endian_data_copy.integer_value = value;
ENDIANNESS_CONFIG_STATIC uint16_t to_little_endian16(uint16_t value) {
ENDIANNESS_CONFIG_VARS(2)
ENDIANNESS_CONFIG_DATVALR(2, 0, 0)
ENDIANNESS_CONFIG_DATVALR(2, 0, 1)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint32_t to_little_endian32(uint32_t value) {
ENDIANNESS_CONFIG_VARS(4)
ENDIANNESS_CONFIG_DATVALR(4, 0, 0)
ENDIANNESS_CONFIG_DATVALR(4, 0, 1)
ENDIANNESS_CONFIG_DATVALR(4, 0, 2)
ENDIANNESS_CONFIG_DATVALR(4, 0, 3)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint64_t to_little_endian64(uint64_t value) {
ENDIANNESS_CONFIG_VARS(8)
ENDIANNESS_CONFIG_DATVALR(8, 0, 0)
ENDIANNESS_CONFIG_DATVALR(8, 0, 1)
ENDIANNESS_CONFIG_DATVALR(8, 0, 2)
ENDIANNESS_CONFIG_DATVALR(8, 0, 3)
ENDIANNESS_CONFIG_DATVALR(8, 0, 4)
ENDIANNESS_CONFIG_DATVALR(8, 0, 5)
ENDIANNESS_CONFIG_DATVALR(8, 0, 6)
ENDIANNESS_CONFIG_DATVALR(8, 0, 7)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint16_t to_big_endian16(uint16_t value) {
ENDIANNESS_CONFIG_VARS(2)
ENDIANNESS_CONFIG_DATVALR(2, 1, 0)
ENDIANNESS_CONFIG_DATVALR(2, 1, 1)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint32_t to_big_endian32(uint32_t value) {
ENDIANNESS_CONFIG_VARS(4)
ENDIANNESS_CONFIG_DATVALR(4, 1, 0)
ENDIANNESS_CONFIG_DATVALR(4, 1, 1)
ENDIANNESS_CONFIG_DATVALR(4, 1, 2)
ENDIANNESS_CONFIG_DATVALR(4, 1, 3)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint64_t to_big_endian64(uint64_t value) {
ENDIANNESS_CONFIG_VARS(8)
ENDIANNESS_CONFIG_DATVALR(8, 1, 0)
ENDIANNESS_CONFIG_DATVALR(8, 1, 1)
ENDIANNESS_CONFIG_DATVALR(8, 1, 2)
ENDIANNESS_CONFIG_DATVALR(8, 1, 3)
ENDIANNESS_CONFIG_DATVALR(8, 1, 4)
ENDIANNESS_CONFIG_DATVALR(8, 1, 5)
ENDIANNESS_CONFIG_DATVALR(8, 1, 6)
ENDIANNESS_CONFIG_DATVALR(8, 1, 7)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint16_t from_little_endian16(uint16_t value) {
ENDIANNESS_CONFIG_VARS(2)
ENDIANNESS_CONFIG_DATVALL(2, 0, 0)
ENDIANNESS_CONFIG_DATVALL(2, 0, 1)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint32_t from_little_endian32(uint32_t value) {
ENDIANNESS_CONFIG_VARS(4)
ENDIANNESS_CONFIG_DATVALL(4, 0, 0)
ENDIANNESS_CONFIG_DATVALL(4, 0, 1)
ENDIANNESS_CONFIG_DATVALL(4, 0, 2)
ENDIANNESS_CONFIG_DATVALL(4, 0, 3)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint64_t from_little_endian64(uint64_t value) {
ENDIANNESS_CONFIG_VARS(8)
ENDIANNESS_CONFIG_DATVALL(8, 0, 0)
ENDIANNESS_CONFIG_DATVALL(8, 0, 1)
ENDIANNESS_CONFIG_DATVALL(8, 0, 2)
ENDIANNESS_CONFIG_DATVALL(8, 0, 3)
ENDIANNESS_CONFIG_DATVALL(8, 0, 4)
ENDIANNESS_CONFIG_DATVALL(8, 0, 5)
ENDIANNESS_CONFIG_DATVALL(8, 0, 6)
ENDIANNESS_CONFIG_DATVALL(8, 0, 7)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint16_t from_big_endian16(uint16_t value) {
ENDIANNESS_CONFIG_VARS(2)
ENDIANNESS_CONFIG_DATVALL(2, 1, 0)
ENDIANNESS_CONFIG_DATVALL(2, 1, 1)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint32_t from_big_endian32(uint32_t value) {
ENDIANNESS_CONFIG_VARS(4)
ENDIANNESS_CONFIG_DATVALL(4, 1, 0)
ENDIANNESS_CONFIG_DATVALL(4, 1, 1)
ENDIANNESS_CONFIG_DATVALL(4, 1, 2)
ENDIANNESS_CONFIG_DATVALL(4, 1, 3)
return endian_data.integer_value;
}
ENDIANNESS_CONFIG_STATIC uint64_t from_big_endian64(uint64_t value) {
ENDIANNESS_CONFIG_VARS(8)
ENDIANNESS_CONFIG_DATVALL(8, 1, 0)
ENDIANNESS_CONFIG_DATVALL(8, 1, 1)
ENDIANNESS_CONFIG_DATVALL(8, 1, 2)
ENDIANNESS_CONFIG_DATVALL(8, 1, 3)
ENDIANNESS_CONFIG_DATVALL(8, 1, 4)
ENDIANNESS_CONFIG_DATVALL(8, 1, 5)
ENDIANNESS_CONFIG_DATVALL(8, 1, 6)
ENDIANNESS_CONFIG_DATVALL(8, 1, 7)
return endian_data.integer_value;
}
#undef ENDIANNESS_CONFIG_DATVAL2
#undef ENDIANNESS_CONFIG_DATVALR
#undef ENDIANNESS_CONFIG_DATVALL
#undef ENDIANNESS_CONFIG_VARS
#endif /* ENDIANNESS_CONFIG_FORCE_SYSTEM_IMPLEMENTATION */
#endif /* ENDIANNESS_GENERATED_CONFIG_H_ */