Home
last modified time | relevance | path

Searched refs:left (Results 1 – 25 of 486) sorted by relevance

12345678910>>...20

/illumos-gate/usr/src/common/crypto/blowfish/
H A Dblowfish_impl.c364 tmp = (left); \
388 left = b32[0]; in blowfish_encrypt_block()
428 tmp = left; in blowfish_encrypt_block()
429 left = right; in blowfish_encrypt_block()
432 left ^= P[17]; in blowfish_encrypt_block()
438 b32[0] = left; in blowfish_encrypt_block()
483 left = b32[0]; in blowfish_decrypt_block()
523 tmp = left; in blowfish_decrypt_block()
524 left = right; in blowfish_decrypt_block()
527 left ^= P[0]; in blowfish_decrypt_block()
[all …]
/illumos-gate/usr/src/tools/smatch/src/
H A Dcheck_or_vs_and.c46 if (get_value(left->left, &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()
57 return expr_equiv_no_inc_dec(left->left, right->left); in inconsistent_check()
66 struct expression *left, *right; in check_or() local
68 left = strip_expr(expr->left); in check_or()
71 if (left->type != EXPR_COMPARE || left->op != SPECIAL_NOTEQUAL) in check_or()
105 left = strip_expr(expr->left); in check_and()
108 if (left->type != EXPR_COMPARE || left->op != SPECIAL_EQUAL) in check_and()
168 sval_t left, right, sval; in match_binop() local
[all …]
H A Dcheck_signed_integer_overflow_check.c31 struct expression *left, *right; in match_condition() local
45 left = strip_expr(expr->left); in match_condition()
48 if (left->type != EXPR_BINOP) { in match_condition()
49 left = get_assigned_expr(left); in match_condition()
50 left = strip_expr(left); in match_condition()
51 if (!left || left->type != EXPR_BINOP) in match_condition()
55 if (left->op != '+' && left->op != '*' && left->op != SPECIAL_LEFTSHIFT) in match_condition()
58 if (has_variable(left, right) == 1) { in match_condition()
59 left_name = expr_to_str(left); in match_condition()
75 if (!get_value(expr->left, &left_val)) in match_binop()
H A Dsmatch_sval.c538 ret.value = left.value + right.value; in sval_binop_signed()
541 ret.value = left.value - right.value; in sval_binop_signed()
590 if (type_is_ptr(left.type)) in ptr_binop()
595 if (!type_is_ptr(left.type)) { in ptr_binop()
596 left.value = -left.value; in ptr_binop()
651 type = left.type; in sval_binop_overflows()
680 return left.value != left.value * right.value / right.value; in sval_binop_overflows()
686 if (sval_cmp(left, right) < 0) in sval_binop_overflows()
693 if (sval_is_negative(left)) { in sval_binop_overflows()
720 type = left.type; in sval_binop_overflows_no_sign()
[all …]
H A Dsmatch_struct_assignment.c157 type = get_type(left); in handle_non_struct_assignments()
161 left = deref_expression(left); in handle_non_struct_assignments()
189 left = member_expression(left, '.', member->ident); in set_inner_struct_members()
231 struct expression *left, in __struct_members_copy() argument
244 left = strip_expr(left); in __struct_members_copy()
247 if (left->type == EXPR_PREOP && left->op == '*' && is_pointer(left)) in __struct_members_copy()
248 left = preop_expression(left, '('); in __struct_members_copy()
261 if (is_pointer(left)) { in __struct_members_copy()
262 left = deref_expression(left); in __struct_members_copy()
416 left_type = get_type(expr->left); in __fake_struct_member_assignments()
[all …]
H A Dsmatch_extra.c1174 left = strip_expr(expr->left); in match_assign()
1535 left = strip_parens(left->unop); in handle_comparison()
1538 left = strip_parens(left->left); in handle_comparison()
1825 *left_p = left->left; in move_known_values()
1828 if (left->op == '+' && get_value(left->left, &sval)) { in move_known_values()
1829 *right_p = binop_expression(right, invert_op(left->op), left->left); in move_known_values()
1836 *left_p = left->left; in move_known_values()
1865 get_implied_rl(left->left, &rl) && in do_simple_algebra()
1875 *left_p = left->left; in do_simple_algebra()
1905 left = strip_parens(expr->left); in handle_integer_overflow_test()
[all …]
H A Dsmatch_integer_overflow.c69 left = strip_parens(expr->left); in match_divide()
74 if (!get_value(right->left, &max)) in match_divide()
98 struct expression *left, *right; in match_overflow_to_less_than() local
109 left = strip_parens(expr->left); in match_overflow_to_less_than()
112 if (left->op != '+') in match_overflow_to_less_than()
121 if (!expr_equiv(left->left, right) && !expr_equiv(left->right, right)) in match_overflow_to_less_than()
229 int left = -1; in check_links() local
240 left = nr; in check_links()
243 left = get_arg_nr(call, expr->left); in check_links()
247 if (left == -1 || right == -1) in check_links()
[all …]
H A Dcheck_unused_ret.c101 struct expression *left; in match_assign_call() local
114 left = strip_expr(expr->left); in match_assign_call()
115 if (!left || left->type != EXPR_SYMBOL) in match_assign_call()
117 if (left->symbol->ctype.modifiers & (MOD_TOPLEVEL | MOD_EXTERN | MOD_STATIC)) in match_assign_call()
120 skip_this = left; in match_assign_call()
122 set_state_expr(my_id, left, alloc_state_num(assign_id)); in match_assign_call()
126 assign->name = expr_to_var(left); in match_assign_call()
134 struct expression *left; in match_assign() local
138 left = strip_expr(expr->left); in match_assign()
139 if (!left || left->type != EXPR_SYMBOL) in match_assign()
[all …]
H A Dsmatch_comparison.c82 data->left = left; in alloc_compare_state()
989 left = tmp; in get_orig_comparison()
1246 *left_p = left->left; in move_plus_to_minus_helper()
1299 if (!left) in handle_comparison()
1374 left = strip_parens(expr->left); in __comparison_match_condition()
1377 if (left->type == EXPR_BINOP && left->op == '+') { in __comparison_match_condition()
1378 new_left = left->left; in __comparison_match_condition()
1383 new_right = binop_expression(right, '-', left->left); in __comparison_match_condition()
1388 left = strip_parens(expr->left); in __comparison_match_condition()
1391 left = get_last_expr_from_expression_stmt(expr->left); in __comparison_match_condition()
[all …]
H A Dsmatch_impossible.c33 static void handle_compare(struct expression *left, int op, struct expression *right) in handle_compare() argument
38 left = strip_expr(left); in handle_compare()
39 while (left && left->type == EXPR_ASSIGNMENT) in handle_compare()
40 left = strip_expr(left->left); in handle_compare()
42 if (!possibly_true(left, op, right)) in handle_compare()
44 if (!possibly_false(left, op, right)) in handle_compare()
65 handle_compare(expr->left, expr->op, expr->right); in match_condition()
H A Dcheck_shift_to_zero.c33 type = get_type(expr->left); in match_binop()
45 struct expression *left; in match_binop2() local
52 left = strip_expr(expr->left); in match_binop2()
53 tmp = get_assigned_expr(left); in match_binop2()
55 left = tmp; in match_binop2()
56 if (left->type != EXPR_BINOP || left->op != '&') in match_binop2()
61 if (!get_value(left->right, &mask)) in match_binop2()
80 type = get_type(expr->left); in match_assign()
H A Dsmatch_constraints_required.c99 struct expression *left, *right; in handle_zero_size_arrays() local
124 left = strip_expr(size->left); in handle_zero_size_arrays()
193 mult_left = strip_expr(size->left); in match_alloc_helper()
232 pointer = strip_expr(expr->left); in match_calloc()
373 array = strip_expr(array->left); in match_assign_ARRAY_SIZE()
376 array = strip_expr(array->left); in match_assign_ARRAY_SIZE()
434 char *left, *right; in match_assign_constraint() local
439 type = get_type(expr->left); in match_assign_constraint()
443 left = get_constraint_str(expr->left); in match_assign_constraint()
444 if (!left) in match_assign_constraint()
[all …]
H A Dsmatch_bits.c207 if (!left && !right) { in binfo_AND()
209 } else if (!left) { in binfo_AND()
212 possible = left->possible; in binfo_AND()
214 set = left->set & right->set; in binfo_AND()
226 if (!left && !right) { in binfo_OR()
228 } else if (!left) { in binfo_OR()
231 set = left->set; in binfo_OR()
233 set = left->set | right->set; in binfo_OR()
339 start = get_bit_info(expr->left); in match_assign()
343 start = get_bit_info(expr->left); in match_assign()
[all …]
H A Dcheck_precedence.c64 if (expr->left->type == EXPR_COMPARE || expr->right->type == EXPR_COMPARE) in match_condition()
66 if (expr->left->type == EXPR_PREOP && expr->left->op == '!') { in match_condition()
67 if (expr->left->unop->type == EXPR_PREOP && expr->left->unop->op == '!') in match_condition()
73 if (is_bool(expr->left->unop)) in match_condition()
75 if (is_bool_from_context(expr->left->unop)) in match_condition()
82 if (expr->left->type == EXPR_COMPARE || expr->right->type == EXPR_COMPARE) in match_condition()
94 if (is_bool_op(expr->left)) in match_condition()
107 if (expr->left->op == '!') in match_binop()
H A Dexpand.c204 struct expression *left = expr->left, *right = expr->right; in simplify_int_binop() local
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
359 l = left->fvalue; in simplify_float_binop()
401 struct expression *left = expr->left, *right = expr->right; in simplify_float_cmp() local
407 l = left->fvalue; in simplify_float_cmp()
437 struct expression *left = expr->left; in expand_logical() local
452 if (left->value) { in expand_logical()
496 taint = expr->left->type == EXPR_VALUE ? expr->left->taint : 0; in expand_comma()
530 struct expression *left = expr->left, *right = expr->right; in expand_compare() local
[all …]
H A Dsmatch_ranges.c1158 if (sval_cmp(left->min, left->max) != 0) in true_comparison_range()
1174 if (left) in true_comparison_range_LR()
1194 if (sval_cmp(left->min, left->max) != 0) in false_comparison_range_sval()
1226 if (left) in false_comparison_range_LR()
1347 if (left) in possibly_true_rl_LR()
1355 if (left) in possibly_false_rl_LR()
1616 return left; in handle_mod_rl()
1623 return left; in handle_mod_rl()
1908 max = rl_max(left); in handle_AND_rl()
1941 left = left_orig; in handle_lshift()
[all …]
H A Dcheck_testing_index_after_use.c70 int left; in match_condition() local
80 if (get_implied_value(expr->left, &sval)) in match_condition()
81 left = 1; in match_condition()
83 left = 0; in match_condition()
87 if (left) in match_condition()
90 slist = get_possible_states_expr(my_used_id, expr->left); in match_condition()
101 name = expr_to_var(left ? expr->right : expr->left); in match_condition()
H A Dsmatch_conditions.c81 if (expr_is_zero(expr->left)) { in handle_zero_comparisons()
82 zero = strip_expr(expr->left); in handle_zero_comparisons()
84 __split_expr(expr->left); in handle_zero_comparisons()
87 zero = strip_expr(expr->left); in handle_zero_comparisons()
90 tmp = expr->left; in handle_zero_comparisons()
190 split_conditions(expr->left); in handle_logical()
359 __split_expr(expr->left); in handle_comma()
476 __split_expr(expr->left); in split_conditions()
485 __split_expr(expr->left); in split_conditions()
577 set_extra_expr_mod(expr->left, alloc_estate_sval(sval_type_val(get_type(expr->left), 1))); in __handle_condition_assigns()
[all …]
/illumos-gate/usr/src/cmd/cron/
H A Delm.c280 k2->left = k->left;
335 (k->right)->left = k->left;
359 k->left = kl->left;
368 kr->left = k->left;
373 (n->right)->left = n->left;
382 while (k->left != NULL) k = k->left;
432 (fn->right)->left = fn->left; in el_first()
434 (fk->right)->left = fk->left; in el_first()
461 fk->left = k->left; in el_first()
468 fn->left = n->left; in el_first()
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevinfo_realpath.c98 left_len = strlcpy(left, path + 1, sizeof (left)); in s_realpath()
105 left_len = strlcpy(left, path, sizeof (left)); in s_realpath()
120 p = strchr(left, '/'); in s_realpath()
121 s = p ? p : left + left_len; in s_realpath()
126 (void) memcpy(next_token, left, s - left); in s_realpath()
127 next_token[s - left] = '\0'; in s_realpath()
128 left_len -= s - left; in s_realpath()
175 resolved_len = strlcat(resolved, left, sizeof (left)); in s_realpath()
225 sizeof (left)); in s_realpath()
226 if (left_len >= sizeof (left)) { in s_realpath()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/isc/
H A Dtree.c195 (*ppr)->left = NULL; in sprout()
231 p1 = (*ppr)->left; in sprout()
243 p2->left = p1; in sprout()
291 p1->left = *ppr; in sprout()
297 p2 = p1->left; in sprout()
302 p2->left = *ppr; in sprout()
436 p1->left = *ppr_p; in bal_L()
450 p2 = p1->left; in bal_L()
455 p2->left = *ppr_p; in bal_L()
490 p1 = (*ppr_p)->left; in bal_R()
[all …]
/illumos-gate/usr/src/cmd/print/printmgr/com/sun/admin/pm/client/
H A DBST.java43 public BST left = null; field in BST
53 left = right = null; in BST()
77 if (left != null) in insert()
113 if (left != null) in find_tree()
136 if (left != null) in find()
152 if (left != null) in traverse()
153 left.traverse(); in traverse()
167 if (left != null) in traverse_find()
212 if (left != null) in dump()
223 if (left != null) in dump()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A Dsched.c95 fk->right->left = fk->left; in il_shift()
123 fk->left = k->left; in il_shift()
126 k->left = fk; in il_shift()
204 k->left = NULL; in el_init()
359 k = k->left; in el_add()
380 y->left = k->left; in el_add()
382 k->left = y; in el_add()
488 k->right->left = k->left; in el_remove()
511 k->left = kl->left; in el_remove()
519 kr->left = k->left; in el_remove()
[all …]
/illumos-gate/usr/src/psm/stand/boot/common/
H A Dheap_kmem.c226 tree = &x->left; in insert()
245 newhdr->left = NIL; in insert()
274 x = x->left; in insert()
306 left_branch = x->left; in delete()
370 left_branch = x->left; in demote()
487 left_son = a->left; in kmem_alloc()
495 p = &a->left; in kmem_alloc()
506 p = &a->left; in kmem_alloc()
510 left_son = a->left; in kmem_alloc()
543 x->left = a->left; in kmem_alloc()
[all …]
/illumos-gate/usr/src/lib/libeti/menu/common/
H A Dlink.c44 int left, up; in link_col_major() local
73 left = n + r; in link_col_major()
74 if (left >= Nitems(m)) { in link_col_major()
75 left -= Rows(m); in link_col_major()
77 Left(IthItem(m, n)) = IthItem(m, left); in link_col_major()
78 Right(IthItem(m, left)) = IthItem(m, n); in link_col_major()
101 int left, up; in link_row_major() local
137 left = n + Cols(m) - 1; in link_row_major()
138 if (left >= Nitems(m)) { in link_row_major()
139 left = Nitems(m) - 1; in link_row_major()
[all …]

12345678910>>...20