/illumos-gate/usr/src/common/crypto/blowfish/ |
H A D | blowfish_impl.c | 366 (right) = tmp; 389 right = b32[1]; in blowfish_encrypt_block() 429 left = right; in blowfish_encrypt_block() 430 right = tmp; in blowfish_encrypt_block() 431 right ^= P[16]; in blowfish_encrypt_block() 439 b32[1] = right; in blowfish_encrypt_block() 484 right = b32[1]; in blowfish_decrypt_block() 524 left = right; in blowfish_decrypt_block() 525 right = tmp; in blowfish_decrypt_block() 526 right ^= P[1]; in blowfish_decrypt_block() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_or_vs_and.c | 48 return expr_equiv_no_inc_dec(left->right, right->right); in inconsistent_check() 49 if (get_value(right->right, &sval)) in inconsistent_check() 50 return expr_equiv_no_inc_dec(left->right, right->left); in inconsistent_check() 55 return expr_equiv_no_inc_dec(left->left, right->right); in inconsistent_check() 56 if (get_value(right->right, &sval)) in inconsistent_check() 69 right = strip_expr(expr->right); in check_or() 73 if (right->type != EXPR_COMPARE || right->op != SPECIAL_NOTEQUAL) in check_or() 106 right = strip_expr(expr->right); in check_and() 110 if (right->type != EXPR_COMPARE || right->op != SPECIAL_EQUAL) in check_and() 168 sval_t left, right, sval; in match_binop() local [all …]
|
H A D | smatch_struct_assignment.c | 102 right = strip_expr(right->unop); in get_right_base_expr() 108 right = deref_expression(right); in get_right_base_expr() 154 while (right && right->type == EXPR_ASSIGNMENT) in handle_non_struct_assignments() 155 right = strip_parens(right->left); in handle_non_struct_assignments() 163 right = deref_expression(right); in handle_non_struct_assignments() 172 right = strip_expr(right); in handle_non_struct_assignments() 245 right = strip_expr(right); in __struct_members_copy() 370 right = strip_expr(expr->right); in handle_param_offsets() 375 if (!get_value(right->right, &sval)) in handle_param_offsets() 378 right = get_assigned_expr(right->left); in handle_param_offsets() [all …]
|
H A D | check_64bit_shift.c | 25 struct expression *right, *shifter; in match_shift_mask() local 39 right = strip_expr(expr->right); in match_shift_mask() 40 if (right->type != EXPR_BINOP || right->op != SPECIAL_LEFTSHIFT) in match_shift_mask() 43 shifter = strip_expr(right->right); in match_shift_mask() 48 str = expr_to_str(expr->right); in match_shift_mask() 56 struct expression *right; in match_shift_assignment() local 61 right = strip_expr(expr->right); in match_shift_assignment() 62 if (right->type != EXPR_BINOP || right->op != SPECIAL_LEFTSHIFT) in match_shift_assignment() 69 right_type = get_type(expr->right); in match_shift_assignment() 74 if (get_value(right, &sval)) in match_shift_assignment() [all …]
|
H A D | smatch_sval.c | 472 if (right.uvalue == 0) { in sval_binop_unsigned() 486 if (right.uvalue == 0) { in sval_binop_unsigned() 527 if (right.value == 0) { in sval_binop_signed() 544 if (right.value == 0) { in sval_binop_signed() 599 right.value = -right.value; in ptr_binop() 653 type = right.type; in sval_binop_overflows() 680 return left.value != left.value * right.value / right.value; in sval_binop_overflows() 683 return right.uvalue != 0 && left.uvalue > max.uvalue / right.uvalue; in sval_binop_overflows() 701 right = sval_preop(right, '-'); in sval_binop_overflows() 722 type = right.type; in sval_binop_overflows_no_sign() [all …]
|
H A D | smatch_constraints_required.c | 125 right = strip_expr(size->right); in handle_zero_size_arrays() 132 if (right->type == EXPR_BINOP && right->op == '*') { in handle_zero_size_arrays() 137 mult_right = strip_expr(right->right); in handle_zero_size_arrays() 313 right = strip_expr(tmp); in match_assign_data() 314 if (right->type != EXPR_CALL) in match_assign_data() 318 !right->fn->symbol || in match_assign_data() 434 char *left, *right; in match_assign_constraint() local 446 right = get_constraint_str(expr->right); in match_assign_constraint() 447 if (!right) in match_assign_constraint() 449 if (!has_constraint(expr->right, right)) in match_assign_constraint() [all …]
|
H A D | check_signed.c | 61 right_name = expr_to_str(expr->right); in match_assign() 70 if (expr->right->type == EXPR_PREOP && expr->right->op == '~') in match_assign() 107 struct expression *right = strip_expr(tmp->right); in cap_gt_zero_and_lt() local 109 if (right->op != '<' && in cap_gt_zero_and_lt() 111 right->op != SPECIAL_LTE && in cap_gt_zero_and_lt() 119 name2 = expr_to_str(right->left); in cap_gt_zero_and_lt() 155 struct expression *right = strip_expr(tmp->right); in cap_lt_zero_or_gt() local 157 if (right->op != '>' && in cap_lt_zero_or_gt() 159 right->op != SPECIAL_GTE && in cap_lt_zero_or_gt() 167 name2 = expr_to_str(right->left); in cap_lt_zero_or_gt() [all …]
|
H A D | smatch_conditions.c | 85 tmp = expr->right; in handle_zero_comparisons() 555 struct expression *right; in __handle_condition_assigns() local 561 right = strip_expr(expr->right); in __handle_condition_assigns() 572 split_conditions(right); in __handle_condition_assigns() 619 right = strip_expr(expr->right); in is_select_assign() 638 right = strip_expr(expr->right); in __handle_select_assigns() 651 if (right->cond_true) in __handle_select_assigns() 709 right = expr->right; in __handle_expr_statement_assigns() 710 if (right->type == EXPR_PREOP && right->op == '(') in __handle_expr_statement_assigns() 711 right = right->unop; in __handle_expr_statement_assigns() [all …]
|
H A D | smatch_extra.c | 669 right = sval_cast(type, right); in handle_canonical_while_count_down() 1036 if (!expr_to_sym(right->right)) in save_chunk_info() 1176 right = strip_parens(expr->right); in match_assign() 1180 right = strip_parens(right->left); in match_assign() 1545 right = strip_parens(right->unop); in handle_comparison() 1796 *left_p = binop_expression(left, invert_op(right->op), right->right); in move_known_values() 1802 *right_p = right->right; in move_known_values() 1806 *left_p = binop_expression(left, invert_op(right->op), right->right); in move_known_values() 1906 right = strip_parens(expr->right); in handle_integer_overflow_test() 1924 if (!expr_equiv(left->left, right) && !expr_equiv(left->right, right)) in handle_integer_overflow_test() [all …]
|
H A D | smatch_comparison.c | 86 data->right = right; in alloc_compare_state() 1375 right = strip_parens(expr->right); in __comparison_match_condition() 1389 right = strip_parens(expr->right); in __comparison_match_condition() 1513 right = strip_expr(expr->right); in match_assign_add() 1515 r_right = strip_expr(right->right); in match_assign_add() 1538 right = strip_expr(expr->right); in match_assign_sub() 1564 right = strip_expr(expr->right); in match_assign_divide() 1577 right = strip_expr(expr->right); in match_binop_assign() 1657 right = strip_expr(expr->right); in match_assign() 1990 right = strip_expr(expr->right); in get_mask_comparison() [all …]
|
H A D | smatch_integer_overflow.c | 70 right = strip_parens(expr->right); in match_divide() 72 if (right->type != EXPR_BINOP || right->op != '/') in match_divide() 87 binop = binop_expression(left, '*', right->right); in match_divide() 98 struct expression *left, *right; in match_overflow_to_less_than() local 110 right = strip_parens(expr->right); in match_overflow_to_less_than() 121 if (!expr_equiv(left->left, right) && !expr_equiv(left->right, right)) in match_overflow_to_less_than() 230 int right = -1; in check_links() local 241 right = get_arg_nr(call, expr->right); in check_links() 244 right = nr; in check_links() 247 if (left == -1 || right == -1) in check_links() [all …]
|
H A D | check_logical_instead_of_bitwise.c | 44 if (!get_value(expr->right, &sval)) { in match_logic() 57 struct expression *right; in match_assign() local 59 right = strip_expr(expr->right); in match_assign() 60 if (right->type != EXPR_LOGICAL) in match_assign() 62 if (is_bitshift(right->left) || is_bitshift(right->right)) in match_assign()
|
H A D | expand.c | 204 struct expression *left = expr->left, *right = expr->right; in simplify_int_binop() local 211 r = right->value; in simplify_int_binop() 320 struct expression *left = expr->left, *right = expr->right; in simplify_cmp_binop() local 352 struct expression *left = expr->left, *right = expr->right; in simplify_float_binop() local 360 r = right->fvalue; in simplify_float_binop() 401 struct expression *left = expr->left, *right = expr->right; in simplify_float_cmp() local 408 r = right->fvalue; in simplify_float_cmp() 461 right = expr->right; in expand_logical() 530 struct expression *left = expr->left, *right = expr->right; in expand_compare() local 593 right = expr->right; in check_assignment() [all …]
|
H A D | smatch_bits.c | 207 if (!left && !right) { in binfo_AND() 210 possible = right->possible; in binfo_AND() 211 } else if (!right) { in binfo_AND() 214 set = left->set & right->set; in binfo_AND() 226 if (!left && !right) { in binfo_OR() 229 set = right->set; in binfo_OR() 230 } else if (!right) { in binfo_OR() 233 set = left->set | right->set; in binfo_OR() 354 sval_t right; in match_condition() local 360 if (!get_value(expr->right, &right)) in match_condition() [all …]
|
H A D | check_precedence.c | 64 if (expr->left->type == EXPR_COMPARE || expr->right->type == EXPR_COMPARE) in match_condition() 69 if (expr->right->op == '!') in match_condition() 71 if (is_bool(expr->right)) in match_condition() 82 if (expr->left->type == EXPR_COMPARE || expr->right->type == EXPR_COMPARE) in match_condition() 96 if (is_bool_op(expr->right)) in match_condition() 115 if (expr->right->type != EXPR_BINOP) in match_mask() 117 if (expr->right->op != SPECIAL_RIGHTSHIFT) in match_mask() 127 if (expr->right->type != EXPR_COMPARE) in match_mask_compare() 137 if (expr->right->type != EXPR_BINOP) in match_subtract_shift() 139 if (expr->right->op != '-') in match_subtract_shift()
|
H A D | smatch_data_source.c | 70 struct expression *right; in get_source_assignment() local 75 right = get_assigned_expr(expr); in get_source_assignment() 76 right = strip_expr(right); in get_source_assignment() 77 if (!right) in get_source_assignment() 79 if (right->type != EXPR_CALL || right->fn->type != EXPR_SYMBOL) in get_source_assignment() 81 if (is_fake_call(right)) in get_source_assignment() 83 name = expr_to_str(right->fn); in get_source_assignment()
|
H A D | smatch_type_val.c | 246 name = expr_to_str(expr->right); in is_driver_data() 310 expr = strip_expr(expr->right); in is_ignored_function() 420 struct expression *expr, *right; in is_uncasted_fn_param_from_db() local 445 right = strip_expr(expr->right); in is_uncasted_fn_param_from_db() 446 param = get_param_num(right); in is_uncasted_fn_param_from_db() 482 if (is_fake_call(expr->right)) { in match_assign_value() 521 struct expression *right; in match_assign_pointer() local 526 right = strip_expr(expr->right); in match_assign_pointer() 527 if (right->type != EXPR_PREOP || right->op != '&') in match_assign_pointer() 529 right = strip_expr(right->unop); in match_assign_pointer() [all …]
|
H A D | check_impossible_mask.c | 36 unsigned long long left, right; 41 right = find_possible_bits(expr->right); 42 if (!right) 46 return left & right; 47 return left | right; 73 if (!get_implied_value(expr->right, &sval)) in get_possible_bits() 95 if (!get_value(expr->right, &sval)) in match_condition()
|
H A D | smatch_about_fn_ptr_arg.c | 91 link_function_arg(next_fn, 0, strip_expr(expr->right)); in match_assign_param() 149 struct expression *right, *arg; in match_assign_function() local 155 right = strip_expr(expr->right); in match_assign_function() 156 if (right->type == EXPR_PREOP && right->op == '&') in match_assign_function() 157 right = strip_expr(right->unop); in match_assign_function() 159 type = get_type(right); in match_assign_function() 177 link_function_arg(right, 0, arg); in match_assign_function() 181 next_fn = right; in match_assign_function()
|
H A D | smatch_function_hooks.c | 399 right = expr->right; in fake_a_param_assignment() 402 right = strip_expr(right->right); in fake_a_param_assignment() 403 if (!right || right->type != EXPR_CALL) in fake_a_param_assignment() 754 var_expr = right; in compare_db_return_states_callbacks() 757 call_expr = right; in compare_db_return_states_callbacks() 861 var_expr = right; in function_comparison() 864 call_expr = right; in function_comparison() 986 right = strip_expr(expr->right); in db_return_states_assign() 1049 right = strip_expr(expr->right); in match_assign_call() 1050 if (right->fn->type != EXPR_SYMBOL || !right->fn->symbol) { in match_assign_call() [all …]
|
H A D | smatch_assigned_expr.c | 69 if (is_fake_call(expr->right)) in match_assignment() 74 if (!get_implied_rl(expr->right, &rl)) in match_assignment() 89 set_state(my_id, left_name, left_sym, alloc_state_expr(strip_expr(expr->right))); in match_assignment() 91 right_name = expr_to_var_sym(expr->right, &right_sym); in match_assignment() 104 struct expression *arg, *right; in record_param_assignment() local 111 expr = strip_expr(expr->right); in record_param_assignment() 125 right = get_argument_from_call_expr(expr->args, right_param); in record_param_assignment() 126 if (!right || !arg) in record_param_assignment() 133 set_state(my_id, name, sym, alloc_state_expr(right)); in record_param_assignment()
|
/illumos-gate/usr/src/cmd/cron/ |
H A D | elm.c | 258 k = k->right; in el_add() 286 n->right = n2->right; in el_add() 289 n2->right = n; in el_add() 323 (k->left)->right = k->right; in el_remove() 362 (n->left)->right = n->right; in el_remove() 417 (fn->left)->right = fn->right; in el_first() 419 (fk->left)->right = fk->right; in el_first() 424 while ((ind->right)->right != NULL) ind = ind->right; in el_first() 442 fi->right = ind->right; in el_first() 460 (current->left)->right = current->right; in el_first() [all …]
|
/illumos-gate/usr/src/lib/libresolv2/common/isc/ |
H A D | tree.c | 196 (*ppr)->right = NULL; in sprout() 235 p1->right = *ppr; in sprout() 241 p2 = p1->right; in sprout() 246 p2->right = *ppr; in sprout() 287 p1 = (*ppr)->right; in sprout() 299 p2->right = p1; in sprout() 431 p1 = (*ppr_p)->right; in bal_L() 453 p2->right = p1; in bal_L() 495 p1->right = *ppr_p; in bal_R() 509 p2 = p1->right; in bal_R() [all …]
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | heap_kmem.c | 228 tree = &x->right; in insert() 246 newhdr->right = NIL; in insert() 266 left_hook = &x->right; in insert() 267 x = x->right; in insert() 488 right_son = a->right; in kmem_alloc() 498 p = &a->right; in kmem_alloc() 503 p = &a->right; in kmem_alloc() 511 right_son = a->right; in kmem_alloc() 544 x->right = a->right; in kmem_alloc() 562 x->right = a->right; in kmem_alloc() [all …]
|
/illumos-gate/usr/src/cmd/isns/isnsd/ |
H A D | sched.c | 94 fk->left->right = fk->right; in il_shift() 107 k = k->right; in il_shift() 124 fk->right = k; in il_shift() 238 kleft->right = k; in el_init() 267 k->right = NULL; in el_init() 268 kleft->right = k; in el_init() 361 k = k->right; in el_add() 379 y->right = k; in el_add() 487 k->left->right = k->right; in el_remove() 506 kr = k->right; in el_remove() [all …]
|