1 /* Generated by ./xlat/gen.sh from ./xlat/futexwakecmps.in; do not edit. */ 2 3 #include "gcc_compat.h" 4 #include "static_assert.h" 5 6 #if defined(FUTEX_OP_CMP_EQ) || (defined(HAVE_DECL_FUTEX_OP_CMP_EQ) && HAVE_DECL_FUTEX_OP_CMP_EQ) 7 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 8 static_assert((FUTEX_OP_CMP_EQ) == (0), "FUTEX_OP_CMP_EQ != 0"); 9 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 10 #else 11 # define FUTEX_OP_CMP_EQ 0 12 #endif 13 #if defined(FUTEX_OP_CMP_NE) || (defined(HAVE_DECL_FUTEX_OP_CMP_NE) && HAVE_DECL_FUTEX_OP_CMP_NE) 14 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 15 static_assert((FUTEX_OP_CMP_NE) == (1), "FUTEX_OP_CMP_NE != 1"); 16 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 17 #else 18 # define FUTEX_OP_CMP_NE 1 19 #endif 20 #if defined(FUTEX_OP_CMP_LT) || (defined(HAVE_DECL_FUTEX_OP_CMP_LT) && HAVE_DECL_FUTEX_OP_CMP_LT) 21 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 22 static_assert((FUTEX_OP_CMP_LT) == (2), "FUTEX_OP_CMP_LT != 2"); 23 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 24 #else 25 # define FUTEX_OP_CMP_LT 2 26 #endif 27 #if defined(FUTEX_OP_CMP_LE) || (defined(HAVE_DECL_FUTEX_OP_CMP_LE) && HAVE_DECL_FUTEX_OP_CMP_LE) 28 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 29 static_assert((FUTEX_OP_CMP_LE) == (3), "FUTEX_OP_CMP_LE != 3"); 30 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 31 #else 32 # define FUTEX_OP_CMP_LE 3 33 #endif 34 #if defined(FUTEX_OP_CMP_GT) || (defined(HAVE_DECL_FUTEX_OP_CMP_GT) && HAVE_DECL_FUTEX_OP_CMP_GT) 35 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 36 static_assert((FUTEX_OP_CMP_GT) == (4), "FUTEX_OP_CMP_GT != 4"); 37 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 38 #else 39 # define FUTEX_OP_CMP_GT 4 40 #endif 41 #if defined(FUTEX_OP_CMP_GE) || (defined(HAVE_DECL_FUTEX_OP_CMP_GE) && HAVE_DECL_FUTEX_OP_CMP_GE) 42 DIAG_PUSH_IGNORE_TAUTOLOGICAL_COMPARE 43 static_assert((FUTEX_OP_CMP_GE) == (5), "FUTEX_OP_CMP_GE != 5"); 44 DIAG_POP_IGNORE_TAUTOLOGICAL_COMPARE 45 #else 46 # define FUTEX_OP_CMP_GE 5 47 #endif 48 49 #ifndef XLAT_MACROS_ONLY 50 51 # ifdef IN_MPERS 52 53 # error static const struct xlat futexwakecmps in mpers mode 54 55 # else 56 57 static 58 const struct xlat futexwakecmps[] = { 59 XLAT(FUTEX_OP_CMP_EQ), 60 XLAT(FUTEX_OP_CMP_NE), 61 XLAT(FUTEX_OP_CMP_LT), 62 XLAT(FUTEX_OP_CMP_LE), 63 XLAT(FUTEX_OP_CMP_GT), 64 XLAT(FUTEX_OP_CMP_GE), 65 XLAT_END 66 }; 67 68 # endif /* !IN_MPERS */ 69 70 #endif /* !XLAT_MACROS_ONLY */ 71