1 /* Generated by ./xlat/gen.sh from ./xlat/loop_flags_options.in; do not edit. */
2 
3 #include "gcc_compat.h"
4 #include "static_assert.h"
5 
6 #if defined(LO_FLAGS_READ_ONLY) || (defined(HAVE_DECL_LO_FLAGS_READ_ONLY) && HAVE_DECL_LO_FLAGS_READ_ONLY)
7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
8 static_assert((LO_FLAGS_READ_ONLY) == (1), "LO_FLAGS_READ_ONLY != 1");
9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
10 #else
11 # define LO_FLAGS_READ_ONLY 1
12 #endif
13 #if defined(LO_FLAGS_USE_AOPS) || (defined(HAVE_DECL_LO_FLAGS_USE_AOPS) && HAVE_DECL_LO_FLAGS_USE_AOPS)
14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
15 static_assert((LO_FLAGS_USE_AOPS) == (2), "LO_FLAGS_USE_AOPS != 2");
16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
17 #else
18 # define LO_FLAGS_USE_AOPS 2
19 #endif
20 #if defined(LO_FLAGS_AUTOCLEAR) || (defined(HAVE_DECL_LO_FLAGS_AUTOCLEAR) && HAVE_DECL_LO_FLAGS_AUTOCLEAR)
21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
22 static_assert((LO_FLAGS_AUTOCLEAR) == (4), "LO_FLAGS_AUTOCLEAR != 4");
23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
24 #else
25 # define LO_FLAGS_AUTOCLEAR 4
26 #endif
27 #if defined(LO_FLAGS_PARTSCAN) || (defined(HAVE_DECL_LO_FLAGS_PARTSCAN) && HAVE_DECL_LO_FLAGS_PARTSCAN)
28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
29 static_assert((LO_FLAGS_PARTSCAN) == (8), "LO_FLAGS_PARTSCAN != 8");
30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
31 #else
32 # define LO_FLAGS_PARTSCAN 8
33 #endif
34 #if defined(LO_FLAGS_DIRECT_IO) || (defined(HAVE_DECL_LO_FLAGS_DIRECT_IO) && HAVE_DECL_LO_FLAGS_DIRECT_IO)
35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
36 static_assert((LO_FLAGS_DIRECT_IO) == (16), "LO_FLAGS_DIRECT_IO != 16");
37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
38 #else
39 # define LO_FLAGS_DIRECT_IO 16
40 #endif
41 
42 #ifndef XLAT_MACROS_ONLY
43 
44 # ifdef IN_MPERS
45 
46 extern const struct xlat loop_flags_options[];
47 
48 # else
49 
50 #  if !(defined HAVE_M32_MPERS || defined HAVE_MX32_MPERS)
51 static
52 #  endif
53 const struct xlat loop_flags_options[] = {
54  XLAT(LO_FLAGS_READ_ONLY),
55 
56  XLAT(LO_FLAGS_USE_AOPS),
57 
58  XLAT(LO_FLAGS_AUTOCLEAR),
59 
60  XLAT(LO_FLAGS_PARTSCAN),
61 
62  XLAT(LO_FLAGS_DIRECT_IO),
63  XLAT_END
64 };
65 
66 # endif /* !IN_MPERS */
67 
68 #endif /* !XLAT_MACROS_ONLY */
69