Home | History | Annotate | Download | only in xlat
      1 /* Generated by ./xlat/gen.sh from ./xlat/pr_spec_set_store_bypass_flags.in; do not edit. */
      2 
      3 #include "gcc_compat.h"
      4 #include "static_assert.h"
      5 
      6 #if defined(PR_SPEC_ENABLE) || (defined(HAVE_DECL_PR_SPEC_ENABLE) && HAVE_DECL_PR_SPEC_ENABLE)
      7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
      8 static_assert((PR_SPEC_ENABLE) == ((1 << 1)), "PR_SPEC_ENABLE != (1 << 1)");
      9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     10 #else
     11 # define PR_SPEC_ENABLE (1 << 1)
     12 #endif
     13 #if defined(PR_SPEC_DISABLE) || (defined(HAVE_DECL_PR_SPEC_DISABLE) && HAVE_DECL_PR_SPEC_DISABLE)
     14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     15 static_assert((PR_SPEC_DISABLE) == ((1 << 2)), "PR_SPEC_DISABLE != (1 << 2)");
     16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     17 #else
     18 # define PR_SPEC_DISABLE (1 << 2)
     19 #endif
     20 #if defined(PR_SPEC_FORCE_DISABLE) || (defined(HAVE_DECL_PR_SPEC_FORCE_DISABLE) && HAVE_DECL_PR_SPEC_FORCE_DISABLE)
     21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE
     22 static_assert((PR_SPEC_FORCE_DISABLE) == ((1 << 3)), "PR_SPEC_FORCE_DISABLE != (1 << 3)");
     23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE
     24 #else
     25 # define PR_SPEC_FORCE_DISABLE (1 << 3)
     26 #endif
     27 
     28 #ifndef XLAT_MACROS_ONLY
     29 
     30 # ifdef IN_MPERS
     31 
     32 #  error static const struct xlat pr_spec_set_store_bypass_flags in mpers mode
     33 
     34 # else
     35 
     36 static
     37 const struct xlat pr_spec_set_store_bypass_flags[] = {
     38  XLAT(PR_SPEC_ENABLE),
     39  XLAT(PR_SPEC_DISABLE),
     40  XLAT(PR_SPEC_FORCE_DISABLE),
     41  XLAT_END
     42 };
     43 
     44 # endif /* !IN_MPERS */
     45 
     46 #endif /* !XLAT_MACROS_ONLY */
     47