1 /* Generated by ./src/xlat/gen.sh from ./src/xlat/tls_info_versions.in; do not edit. */
2
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5
6 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
7 static_assert((TLS_1_2_VERSION) == (0x303), "TLS_1_2_VERSION != 0x303");
8 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
9 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
10 static_assert((TLS_1_3_VERSION) == (0x304), "TLS_1_3_VERSION != 0x304");
11 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
12 #undef XLAT_PREV_VAL
13
14 #ifndef XLAT_MACROS_ONLY
15
16 # ifdef IN_MPERS
17
18 # error static const struct xlat tls_info_versions in mpers mode
19
20 # else
21
22 DIAG_PUSH_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
23 static const struct xlat_data tls_info_versions_xdata[] = {
24 XLAT(TLS_1_2_VERSION),
25 #define XLAT_VAL_0 ((unsigned) (TLS_1_2_VERSION))
26 #define XLAT_STR_0 STRINGIFY(TLS_1_2_VERSION)
27 XLAT(TLS_1_3_VERSION),
28 #define XLAT_VAL_1 ((unsigned) (TLS_1_3_VERSION))
29 #define XLAT_STR_1 STRINGIFY(TLS_1_3_VERSION)
30 };
31 static
32 const struct xlat tls_info_versions[1] = { {
33 .data = tls_info_versions_xdata,
34 .size = ARRAY_SIZE(tls_info_versions_xdata),
35 .type = XT_NORMAL,
36 .flags_mask = 0
37 # ifdef XLAT_VAL_0
38 | XLAT_VAL_0
39 # endif
40 # ifdef XLAT_VAL_1
41 | XLAT_VAL_1
42 # endif
43 ,
44 .flags_strsz = 0
45 # ifdef XLAT_STR_0
46 + sizeof(XLAT_STR_0)
47 # endif
48 # ifdef XLAT_STR_1
49 + sizeof(XLAT_STR_1)
50 # endif
51 ,
52 } };
53 DIAG_POP_IGNORE_TAUTOLOGICAL_CONSTANT_COMPARE
54
55 # undef XLAT_STR_0
56 # undef XLAT_VAL_0
57 # undef XLAT_STR_1
58 # undef XLAT_VAL_1
59 # endif /* !IN_MPERS */
60
61 #endif /* !XLAT_MACROS_ONLY */