Home | History | Annotate | Download | only in lint1

Lines Matching defs:ot

1636 	tspec_t nt = ntp->t_tspec, ot = otp->t_tspec;
1638 if (nt == BOOL || ot == BOOL)
1639 return nt == BOOL && ot == BOOL;
1641 if (is_integer(nt) && is_integer(ot)) {
1643 if (is_uinteger(nt) == is_uinteger(ot))
1645 return is_uinteger(ot) && nw > ow;
1648 if (is_complex(nt) || is_complex(ot))
1649 return is_complex(nt) && is_complex(ot) &&
1650 size_in_bits(nt) >= size_in_bits(ot);
1652 if (is_floating(nt) && is_floating(ot))
1653 return size_in_bits(nt) >= size_in_bits(ot);
1655 if (nt == PTR && ot == PTR) {
3573 tspec_t ot = otp->t_tspec;
3574 if (!is_arithmetic(ot))
3577 tspec_t nt = allow_c90 ? promote_c90(tn, ot, farg) : promote_trad(ot);
3578 if (nt == ot)
3624 tspec_t ot, const tnode_t *ptn)
3627 if (nt == ot)
3630 if (nt == ENUM && ot == INT)
3633 if (is_floating(nt) != is_floating(ot) ||
3634 portable_rank_cmp(nt, ot) != 0) {
3636 if (!is_integer(ot))
3642 return portable_rank_cmp(ot, INT) > 0;
3653 signed_type(nt) == signed_type(ot) &&
3654 !msb(ptn->u.value.u.integer, ot))
3669 check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp,
3673 if (!is_arithmetic(nt) || !is_arithmetic(ot))
3686 ot = ptn->tn_type->t_tspec;
3688 if (should_warn_about_prototype_conversion(nt, ot, ptn)) {
3725 const tnode_t *otn, tspec_t ot)
3732 if (aflag > 0 && portable_rank_cmp(nt, ot) < 0) {
3733 if (ot == LONG || ot == ULONG
3734 || ot == LLONG || ot == ULLONG
3736 || ot == INT128 || ot == UINT128
3745 convert_integer_from_integer(op_t op, int arg, tspec_t nt, tspec_t ot,
3756 portable_rank_cmp(nt, ot) > 0 &&
3757 is_uinteger(nt) != is_uinteger(ot)) {
3766 if (Pflag && portable_rank_cmp(nt, ot) > 0 &&
3770 warning(324, type_name(gettyp(ot)), type_name(tp),
3774 if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
3783 if (is_uinteger(nt) != is_uinteger(ot))
3953 tspec_t ot = tn->tn_type->t_tspec;
3956 check_prototype_conversion(arg, nt, ot, tp, tn);
3962 if (ot == BOOL) {
3964 } else if (is_integer(ot))
3965 convert_integer_from_integer(op, arg, nt, ot, tp, tn);
3966 else if (is_floating(ot))
3968 else if (ot == PTR)
3972 if (is_integer(ot) && op != CVT) {
3981 } else if (ot == PTR && op == CVT)
4073 tspec_t ot, const val_t *v)
4076 nv->u.floating = (ot == PTR || is_uinteger(ot)) ?
4079 nv->u.floating = (ot == PTR || is_uinteger(ot)) ?
4082 nv->u.floating = (ot == PTR || is_uinteger(ot))
4116 tspec_t ot, const val_t *v,
4124 op_name(op), type_name(gettyp(ot)), type_name(tp));
4165 tspec_t ot)
4181 warning(196, tspec_name(ot), type_name(tp));
4184 warning(295, type_name(gettyp(ot)), type_name(tp), arg);
4187 warning(119, type_name(gettyp(ot)), type_name(tp));
4192 tspec_t ot)
4202 warning(196, tspec_name(ot), type_name(tp));
4205 warning(295, type_name(gettyp(ot)), type_name(tp), arg);
4208 warning(119, type_name(gettyp(ot)), type_name(tp));
4212 convert_constant_check_range(tspec_t ot, const type_t *tp, tspec_t nt,
4218 obitsz = size_in_bits(ot);
4227 nbitsz, obitsz, xmask, nv, ot, v, tp, op);
4229 ot != PTR && !is_uinteger(ot) && v->u.integer < 0)
4233 (is_uinteger(ot) || (v->u.integer & xmsk1) != xmsk1))
4234 warn_constant_check_range_truncated(op, arg, tp, ot);
4236 warn_constant_check_range_loss(op, arg, tp, ot);
4247 tspec_t ot = ov->v_tspec;
4257 if (ot == FLOAT || ot == DOUBLE || ot == LDOUBLE)
4259 else if (!convert_constant_to_floating(nt, nv, ot, ov)) {
4267 portable_rank_cmp(nt, ot) > 0)))) {
4280 convert_constant_check_range(ot, ntp, nt, op, arg, ov, nv);
4476 tspec_t ot = tn->tn_type->t_tspec;
4490 } else if (is_struct_or_union(ot))
4492 else if (ot == VOID) {
4496 } else if (is_integer(nt) && is_scalar(ot)) {
4498 } else if (is_floating(nt) && is_arithmetic(ot)) {
4500 } else if (nt == PTR && is_integer(ot)) {
4502 } else if (nt == PTR && ot == PTR) {
5039 tspec_t t, ot;
5077 ot = tn->u.ops.left->tn_type->t_tspec;
5079 (!is_integer(ot) && ot != PTR)) {
5094 else if (psize(t) != psize(ot))