Lines Matching refs:RHS
251 #define __bpf_assert_check(LHS, op, RHS) \ argument
255 _Static_assert(__builtin_constant_p((RHS)), "2nd argument must be a constant expression")
257 #define __bpf_assert(LHS, op, cons, RHS, VAL) \ argument
261 : : [lhs] "r"(LHS), [rhs] cons(RHS), [value] "ri"(VAL) : ); \
264 #define __bpf_assert_op_sign(LHS, op, cons, RHS, VAL, supp_sign) \ argument
266 __bpf_assert_check(LHS, op, RHS); \
268 __bpf_assert(LHS, "s" #op, cons, RHS, VAL); \
270 __bpf_assert(LHS, #op, cons, RHS, VAL); \
273 #define __bpf_assert_op(LHS, op, RHS, VAL, supp_sign) \ argument
275 if (sizeof(typeof(RHS)) == 8) { \
276 const typeof(RHS) rhs_var = (RHS); \
279 __bpf_assert_op_sign(LHS, op, "i", RHS, VAL, supp_sign); \
289 #define __bpf_cmp(LHS, OP, PRED, RHS, DEFAULT) \ argument
294 :: [lhs] "r"((short)LHS), [rhs] PRED (RHS) :: l_true); \
305 #define _bpf_cmp(LHS, OP, RHS, UNLIKELY) \ argument
308 typeof(RHS) __rhs = (RHS); \
330 #define bpf_cmp_unlikely(LHS, OP, RHS) _bpf_cmp(LHS, OP, RHS, true) argument
334 #define bpf_cmp_likely(LHS, OP, RHS) \ argument
338 ret = _bpf_cmp(LHS, !=, RHS, false); \
340 ret = _bpf_cmp(LHS, ==, RHS, false); \
342 ret = _bpf_cmp(LHS, >, RHS, false); \
344 ret = _bpf_cmp(LHS, >=, RHS, false); \
346 ret = _bpf_cmp(LHS, <=, RHS, false); \
348 ret = _bpf_cmp(LHS, <, RHS, false); \