Lines Matching refs:arg1
87 value_add (struct value *arg1, struct value *arg2) in value_add() argument
94 COERCE_ARRAY (arg1); in value_add()
96 type1 = check_typedef (VALUE_TYPE (arg1)); in value_add()
109 valptr = arg1; in value_add()
116 valint = arg1; in value_add()
129 return value_binop (arg1, arg2, BINOP_ADD); in value_add()
133 value_sub (struct value *arg1, struct value *arg2) in value_sub() argument
136 COERCE_ARRAY (arg1); in value_sub()
138 type1 = check_typedef (VALUE_TYPE (arg1)); in value_sub()
149 (value_as_address (arg1) in value_sub()
160 (value_as_long (arg1) - value_as_long (arg2)) / sz); in value_sub()
170 return value_binop (arg1, arg2, BINOP_SUB); in value_sub()
294 binop_user_defined_p (enum exp_opcode op, struct value *arg1, struct value *arg2) in binop_user_defined_p() argument
299 type1 = check_typedef (VALUE_TYPE (arg1)); in binop_user_defined_p()
316 unop_user_defined_p (enum exp_opcode op, struct value *arg1) in unop_user_defined_p() argument
321 type1 = check_typedef (VALUE_TYPE (arg1)); in unop_user_defined_p()
343 value_x_binop (struct value *arg1, struct value *arg2, enum exp_opcode op, in value_x_binop() argument
351 COERCE_REF (arg1); in value_x_binop()
353 COERCE_ENUM (arg1); in value_x_binop()
359 if (TYPE_CODE (check_typedef (VALUE_TYPE (arg1))) != TYPE_CODE_STRUCT) in value_x_binop()
363 argvec[1] = value_addr (arg1); in value_x_binop()
475 argvec[0] = value_struct_elt (&arg1, argvec + 1, tstr, &static_memfuncp, "structure"); in value_x_binop()
489 return value_zero (return_type, VALUE_LVAL (arg1)); in value_x_binop()
506 value_x_unop (struct value *arg1, enum exp_opcode op, enum noside noside) in value_x_unop() argument
513 COERCE_REF (arg1); in value_x_unop()
514 COERCE_ENUM (arg1); in value_x_unop()
519 if (TYPE_CODE (check_typedef (VALUE_TYPE (arg1))) != TYPE_CODE_STRUCT) in value_x_unop()
523 argvec[1] = value_addr (arg1); in value_x_unop()
569 argvec[0] = value_struct_elt (&arg1, argvec + 1, tstr, &static_memfuncp, "structure"); in value_x_unop()
584 return value_zero (return_type, VALUE_LVAL (arg1)); in value_x_unop()
615 value_concat (struct value *arg1, struct value *arg2) in value_concat() argument
624 struct type *type1 = check_typedef (VALUE_TYPE (arg1)); in value_concat()
627 COERCE_VARYING_ARRAY (arg1, type1); in value_concat()
642 inval2 = arg1; in value_concat()
646 inval1 = arg1; in value_concat()
750 value_binop (struct value *arg1, struct value *arg2, enum exp_opcode op) in value_binop() argument
755 COERCE_REF (arg1); in value_binop()
757 type1 = check_typedef (VALUE_TYPE (arg1)); in value_binop()
773 v1 = value_as_double (arg1); in value_binop()
819 v1 = value_as_long (arg1); in value_binop()
903 v1 = (ULONGEST) value_as_long (arg1); in value_binop()
1028 v1 = value_as_long (arg1); in value_binop()
1157 value_logical_not (struct value *arg1) in value_logical_not() argument
1163 COERCE_NUMBER (arg1); in value_logical_not()
1164 type1 = check_typedef (VALUE_TYPE (arg1)); in value_logical_not()
1167 return 0 == value_as_double (arg1); in value_logical_not()
1170 p = VALUE_CONTENTS (arg1); in value_logical_not()
1185 value_strcmp (struct value *arg1, struct value *arg2) in value_strcmp() argument
1187 int len1 = TYPE_LENGTH (VALUE_TYPE (arg1)); in value_strcmp()
1189 char *s1 = VALUE_CONTENTS (arg1); in value_strcmp()
1215 value_equal (struct value *arg1, struct value *arg2) in value_equal() argument
1224 COERCE_ARRAY (arg1); in value_equal()
1227 type1 = check_typedef (VALUE_TYPE (arg1)); in value_equal()
1235 return longest_to_int (value_as_long (value_binop (arg1, arg2, in value_equal()
1239 return value_as_double (arg1) == value_as_double (arg2); in value_equal()
1244 return value_as_address (arg1) == (CORE_ADDR) value_as_long (arg2); in value_equal()
1246 return (CORE_ADDR) value_as_long (arg1) == value_as_address (arg2); in value_equal()
1252 p1 = VALUE_CONTENTS (arg1); in value_equal()
1263 return value_strcmp (arg1, arg2) == 0; in value_equal()
1276 value_less (struct value *arg1, struct value *arg2) in value_less() argument
1283 COERCE_ARRAY (arg1); in value_less()
1286 type1 = check_typedef (VALUE_TYPE (arg1)); in value_less()
1294 return longest_to_int (value_as_long (value_binop (arg1, arg2, in value_less()
1298 return value_as_double (arg1) < value_as_double (arg2); in value_less()
1300 return value_as_address (arg1) < value_as_address (arg2); in value_less()
1305 return value_as_address (arg1) < (CORE_ADDR) value_as_long (arg2); in value_less()
1307 return (CORE_ADDR) value_as_long (arg1) < value_as_address (arg2); in value_less()
1309 return value_strcmp (arg1, arg2) < 0; in value_less()
1320 value_neg (struct value *arg1) in value_neg() argument
1323 struct type *result_type = VALUE_TYPE (arg1); in value_neg()
1325 COERCE_REF (arg1); in value_neg()
1327 type = check_typedef (VALUE_TYPE (arg1)); in value_neg()
1330 return value_from_double (result_type, -value_as_double (arg1)); in value_neg()
1338 return value_from_longest (result_type, -value_as_long (arg1)); in value_neg()
1348 value_complement (struct value *arg1) in value_complement() argument
1351 struct type *result_type = VALUE_TYPE (arg1); in value_complement()
1353 COERCE_REF (arg1); in value_complement()
1355 type = check_typedef (VALUE_TYPE (arg1)); in value_complement()
1365 return value_from_longest (result_type, ~value_as_long (arg1)); in value_complement()