Lines Matching defs:nt

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))
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) {
3523 tspec_t nt = allow_c90 ? promote_c90(tn, ot, farg) : promote_trad(ot);
3524 if (nt == ot)
3527 type_t *ntp = expr_dup_type(gettyp(nt));
3528 ntp->t_tspec = nt;
3537 if (ntp->t_bitfield && is_uinteger(ot) && !is_uinteger(nt))
3576 should_warn_about_prototype_conversion(tspec_t nt,
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) {
3605 if (ptn->tn_op == CON && is_integer(nt) &&
3606 signed_type(nt) == signed_type(ot) &&
3622 check_prototype_conversion(int arg, tspec_t nt, tspec_t ot, type_t *tp,
3626 if (!is_arithmetic(nt) || !is_arithmetic(ot))
3634 if (nt == CHAR || nt == SCHAR || nt == UCHAR ||
3635 nt == SHORT || nt == USHORT)
3641 if (should_warn_about_prototype_conversion(nt, ot, ptn)) {
3677 should_warn_about_integer_conversion(const type_t *ntp, tspec_t nt,
3685 if (aflag > 0 && portable_rank_cmp(nt, ot) < 0) {
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 &&
3727 if (should_warn_about_integer_conversion(tp, nt, tn, ot)) {
3739 if (is_uinteger(nt) != is_uinteger(ot))
3745 convert_integer_from_pointer(op_t op, tspec_t nt, type_t *tp, tnode_t *tn)
3752 if (portable_rank_cmp(nt, PTR) >= 0)
3755 if (pflag && size_in_bits(nt) >= size_in_bits(PTR)) {
3909 tspec_t nt = tp->t_tspec;
3913 check_prototype_conversion(arg, nt, ot, tp, tn);
3915 if (nt == BOOL) {
3918 } else if (is_integer(nt)) {
3922 convert_integer_from_integer(op, arg, nt, ot, tp, tn);
3926 convert_integer_from_pointer(op, nt, tp, tn);
3928 } else if (is_floating(nt)) {
3935 } else if (nt == PTR) {
3948 if (tn->tn_op != CON || nt == VOID) {
3961 tspec_t nt, val_t *nv, val_t *ov)
3965 switch (nt) {
4003 lint_assert(nt != LDOUBLE);
4006 if (is_integer(nt))
4018 if (nt == FLOAT || nt == FCOMPLEX)
4020 else if (nt == DOUBLE || nt == DCOMPLEX)
4022 else if (nt == LDOUBLE || nt == LCOMPLEX)
4029 convert_constant_to_floating(tspec_t nt, val_t *nv,
4032 if (nt == FLOAT) {
4035 } else if (nt == DOUBLE) {
4038 } else if (nt == LDOUBLE) {
4160 convert_constant_check_range(tspec_t ot, const type_t *tp, tspec_t nt,
4167 nbitsz = tp->t_bitfield ? tp->t_bit_field_width : size_in_bits(nt);
4176 } else if (nt != PTR && is_uinteger(nt) &&
4198 tspec_t nt = nv->v_tspec = ntp->t_tspec;
4201 if (nt == BOOL) { /* C99 6.3.1.2 */
4208 convert_constant_from_floating(op, arg, ntp, nt, nv, ov);
4209 else if (!convert_constant_to_floating(nt, nv, ot, ov)) {
4215 (is_floating(nt) || (
4216 (is_integer(nt) && !is_uinteger(nt) &&
4217 portable_rank_cmp(nt, ot) > 0)))) {
4223 if (is_integer(nt)) {
4225 ? ntp->t_bit_field_width : size_in_bits(nt);
4226 nv->u.integer = convert_integer(nv->u.integer, nt, size);
4230 convert_constant_check_range(ot, ntp, nt, op, arg, ov, nv);
4425 tspec_t nt = tp->t_tspec;
4428 if (nt == VOID) {
4434 } else if (nt == UNION)
4436 else if (nt == STRUCT || nt == ARRAY || nt == FUNC) {
4438 if (!(allow_gcc && nt == STRUCT))
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) {