Lines Matching defs:nt
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))
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) {
3577 tspec_t nt = allow_c90 ? promote_c90(tn, ot, farg) : promote_trad(ot);
3578 if (nt == ot)
3581 type_t *ntp = expr_dup_type(gettyp(nt));
3582 ntp->t_tspec = nt;
3623 should_warn_about_prototype_conversion(tspec_t nt,
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) {
3652 if (ptn->tn_op == CON && is_integer(nt) &&
3653 signed_type(nt) == signed_type(ot) &&
3669 check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp,
3673 if (!is_arithmetic(nt) || !is_arithmetic(ot))
3681 if (nt == CHAR || nt == SCHAR || nt == UCHAR ||
3682 nt == SHORT || nt == USHORT)
3688 if (should_warn_about_prototype_conversion(nt, ot, ptn)) {
3724 should_warn_about_integer_conversion(const type_t *ntp, tspec_t nt,
3732 if (aflag > 0 && portable_rank_cmp(nt, ot) < 0) {
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 &&
3774 if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
3783 if (is_uinteger(nt) != is_uinteger(ot))
3789 convert_integer_from_pointer(op_t op, tspec_t nt, type_t *tp, tnode_t *tn)
3796 if (portable_rank_cmp(nt, PTR) >= 0)
3799 if (pflag && size_in_bits(nt) >= size_in_bits(PTR)) {
3952 tspec_t nt = tp->t_tspec;
3956 check_prototype_conversion(arg, nt, ot, tp, tn);
3958 if (nt == BOOL) {
3961 } else if (is_integer(nt)) {
3965 convert_integer_from_integer(op, arg, nt, ot, tp, tn);
3969 convert_integer_from_pointer(op, nt, tp, tn);
3971 } else if (is_floating(nt)) {
3978 } else if (nt == PTR) {
3991 if (tn->tn_op != CON || nt == VOID) {
4004 tspec_t nt, val_t *nv, val_t *ov)
4008 switch (nt) {
4046 lint_assert(nt != LDOUBLE);
4049 if (is_integer(nt))
4061 if (nt == FLOAT || nt == FCOMPLEX)
4063 else if (nt == DOUBLE || nt == DCOMPLEX)
4065 else if (nt == LDOUBLE || nt == LCOMPLEX)
4072 convert_constant_to_floating(tspec_t nt, val_t *nv,
4075 if (nt == FLOAT) {
4078 } else if (nt == DOUBLE) {
4081 } else if (nt == LDOUBLE) {
4212 convert_constant_check_range(tspec_t ot, const type_t *tp, tspec_t nt,
4219 nbitsz = tp->t_bitfield ? tp->t_bit_field_width : size_in_bits(nt);
4228 } else if (nt != PTR && is_uinteger(nt) &&
4248 tspec_t nt = nv->v_tspec = ntp->t_tspec;
4251 if (nt == BOOL) { /* C99 6.3.1.2 */
4258 convert_constant_from_floating(op, arg, ntp, nt, nv, ov);
4259 else if (!convert_constant_to_floating(nt, nv, ot, ov)) {
4265 (is_floating(nt) || (
4266 (is_integer(nt) && !is_uinteger(nt) &&
4267 portable_rank_cmp(nt, ot) > 0)))) {
4273 if (is_integer(nt)) {
4275 ? ntp->t_bit_field_width : size_in_bits(nt);
4276 nv->u.integer = convert_integer(nv->u.integer, nt, size);
4280 convert_constant_check_range(ot, ntp, nt, op, arg, ov, nv);
4475 tspec_t nt = tp->t_tspec;
4478 if (nt == VOID) {
4484 } else if (nt == UNION)
4486 else if (nt == STRUCT || nt == ARRAY || nt == FUNC) {
4488 if (!(allow_gcc && nt == STRUCT))
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) {