1 /* Generated by ./xlat/gen.sh from ./xlat/futexwakeops.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(FUTEX_OP_SET) || (defined(HAVE_DECL_FUTEX_OP_SET) && HAVE_DECL_FUTEX_OP_SET) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((FUTEX_OP_SET) == (0), "FUTEX_OP_SET != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define FUTEX_OP_SET 0 12 #endif 13 #if defined(FUTEX_OP_ADD) || (defined(HAVE_DECL_FUTEX_OP_ADD) && HAVE_DECL_FUTEX_OP_ADD) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((FUTEX_OP_ADD) == (1), "FUTEX_OP_ADD != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define FUTEX_OP_ADD 1 19 #endif 20 #if defined(FUTEX_OP_OR) || (defined(HAVE_DECL_FUTEX_OP_OR) && HAVE_DECL_FUTEX_OP_OR) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((FUTEX_OP_OR) == (2), "FUTEX_OP_OR != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define FUTEX_OP_OR 2 26 #endif 27 #if defined(FUTEX_OP_ANDN) || (defined(HAVE_DECL_FUTEX_OP_ANDN) && HAVE_DECL_FUTEX_OP_ANDN) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((FUTEX_OP_ANDN) == (3), "FUTEX_OP_ANDN != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define FUTEX_OP_ANDN 3 33 #endif 34 #if defined(FUTEX_OP_XOR) || (defined(HAVE_DECL_FUTEX_OP_XOR) && HAVE_DECL_FUTEX_OP_XOR) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((FUTEX_OP_XOR) == (4), "FUTEX_OP_XOR != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define FUTEX_OP_XOR 4 40 #endif 41 42 #ifndef XLAT_MACROS_ONLY 43 44 # ifdef IN_MPERS 45 46 # error static const struct xlat futexwakeops in mpers mode 47 48 # else 49 50 static 51 const struct xlat futexwakeops[] = { 52 XLAT(FUTEX_OP_SET), 53 XLAT(FUTEX_OP_ADD), 54 XLAT(FUTEX_OP_OR), 55 XLAT(FUTEX_OP_ANDN), 56 XLAT(FUTEX_OP_XOR), 57 XLAT_END 58 }; 59 60 # endif /* !IN_MPERS */ 61 62 #endif /* !XLAT_MACROS_ONLY */ 63