Lines Matching defs:ot
1594 tspec_t nt = ntp->t_tspec, ot = otp->t_tspec;
1596 if (nt == BOOL || ot == BOOL)
1597 return nt == BOOL && ot == BOOL;
1599 if (is_integer(nt) && is_integer(ot)) {
1601 if (is_uinteger(nt) == is_uinteger(ot))
1603 return is_uinteger(ot) && nw > ow;
1606 if (is_complex(nt) || is_complex(ot))
1607 return is_complex(nt) && is_complex(ot) &&
1608 size_in_bits(nt) >= size_in_bits(ot);
1610 if (is_floating(nt) && is_floating(ot))
1611 return size_in_bits(nt) >= size_in_bits(ot);
1613 if (nt == PTR && ot == PTR) {
3519 tspec_t ot = otp->t_tspec;
3520 if (!is_arithmetic(ot))
3523 tspec_t nt = allow_c90 ? promote_c90(tn, ot, farg) : promote_trad(ot);
3524 if (nt == ot)
3537 if (ntp->t_bitfield && is_uinteger(ot) && !is_uinteger(nt))
3577 tspec_t ot, const tnode_t *ptn)
3580 if (nt == ot)
3583 if (nt == ENUM && ot == INT)
3586 if (is_floating(nt) != is_floating(ot) ||
3587 portable_rank_cmp(nt, ot) != 0) {
3589 if (!is_integer(ot))
3595 return portable_rank_cmp(ot, INT) > 0;
3606 signed_type(nt) == signed_type(ot) &&
3607 !msb(ptn->u.value.u.integer, ot))
3622 check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp,
3626 if (!is_arithmetic(nt) || !is_arithmetic(ot))
3639 ot = ptn->tn_type->t_tspec;
3641 if (should_warn_about_prototype_conversion(nt, ot, ptn)) {
3678 const tnode_t *otn, tspec_t ot)
3685 if (aflag > 0 && portable_rank_cmp(nt, ot) < 0) {
3686 if (ot == LONG || ot == ULONG
3687 || ot == LLONG || ot == ULLONG
3689 || ot == INT128 || ot == UINT128
3698 convert_integer_from_integer(op_t op, int arg, tspec_t nt, tspec_t ot,
3709 portable_rank_cmp(nt, ot) > 0 &&
3710 is_uinteger(nt) != is_uinteger(ot)) {
3719 if (Pflag && portable_rank_cmp(nt, ot) > 0 &&
3723 warning(324, type_name(gettyp(ot)), type_name(tp),
3727 if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
3739 if (is_uinteger(nt) != is_uinteger(ot))
3910 tspec_t ot = tn->tn_type->t_tspec;
3913 check_prototype_conversion(arg, nt, ot, tp, tn);
3919 if (ot == BOOL) {
3921 } else if (is_integer(ot))
3922 convert_integer_from_integer(op, arg, nt, ot, tp, tn);
3923 else if (is_floating(ot))
3925 else if (ot == PTR)
3929 if (is_integer(ot) && op != CVT) {
3938 } else if (ot == PTR && op == CVT)
4030 tspec_t ot, const val_t *v)
4033 nv->u.floating = (ot == PTR || is_uinteger(ot)) ?
4036 nv->u.floating = (ot == PTR || is_uinteger(ot)) ?
4039 nv->u.floating = (ot == PTR || is_uinteger(ot))
4063 tspec_t ot, const val_t *v,
4070 warning(309, type_name(gettyp(ot)),
4113 tspec_t ot)
4132 warning(295, type_name(gettyp(ot)), type_name(tp), arg);
4135 warning(119, type_name(gettyp(ot)), type_name(tp));
4140 tspec_t ot)
4153 warning(295, type_name(gettyp(ot)), type_name(tp), arg);
4156 warning(119, type_name(gettyp(ot)), type_name(tp));
4160 convert_constant_check_range(tspec_t ot, const type_t *tp, tspec_t nt,
4166 obitsz = size_in_bits(ot);
4175 nbitsz, obitsz, xmask, nv, ot, v, tp, op);
4177 ot != PTR && !is_uinteger(ot) &&
4183 (is_uinteger(ot) || (v->u.integer & xmsk1) != xmsk1))
4184 warn_constant_check_range_truncated(op, arg, tp, ot);
4186 warn_constant_check_range_loss(op, arg, tp, ot);
4197 tspec_t ot = ov->v_tspec;
4207 if (ot == FLOAT || ot == DOUBLE || ot == LDOUBLE)
4209 else if (!convert_constant_to_floating(nt, nv, ot, ov)) {
4217 portable_rank_cmp(nt, ot) > 0)))) {
4230 convert_constant_check_range(ot, ntp, nt, op, arg, ov, nv);
4426 tspec_t ot = tn->tn_type->t_tspec;
4440 } else if (is_struct_or_union(ot))
4442 else if (ot == VOID) {
4446 } else if (is_integer(nt) && is_scalar(ot)) {
4448 } else if (is_floating(nt) && is_arithmetic(ot)) {
4450 } else if (nt == PTR && is_integer(ot)) {
4452 } else if (nt == PTR && ot == PTR) {
4971 tspec_t t, ot;
5015 ot = tn->u.ops.left->tn_type->t_tspec;
5017 (!is_integer(ot) && ot != PTR)) {
5032 else if (psize(t) != psize(ot))