Quick Search:

Mode

Context

Displaying 3 lines of context. None | Less | More | Full

Other Diffs

Ignore

Blank Lines Whitespace: Expand:

Diff

1.89
 
1.90
 
MAIN:ragge:20030907133037
 
trees.c
_>877877 NODE *
 878878 convert(NODE *p, int f)
 879879 {
<>880 -        NODE *q, *r, *s;
  880+        union dimfun *df;
  881+        TWORD ty, ty2;
  882+        NODE *q, *r, *s, *rv;
881883 
 882884         if (f == CVTL) {
 883885                 q = p->n_left;
     
 !
886888                 q = p->n_right;
 887889                 s = p->n_left;
 888890         }
<>889 -        r = btsize(DECREF(s->n_type), s->n_df, s->n_sue);
 890 -        s = bpsize(s);
 891 -printf("convert: bpsize node %lld\n", s->n_lval);
 892 -fwalk(p, eprint, 0);
 893 -        if (r->n_op == ICON && r->n_lval != s->n_lval)
 894 -                cerror("r->n_lval != s->n_lval: %lld != %lld", r->n_lval, s->n_lval);
 895 -        r = block(PMCONV, q, s, INT, 0, MKSUE(INT));
  891+        ty2 = ty = DECREF(s->n_type);
  892+        while (ISARY(ty))
  893+                ty = DECREF(ty);
  894+
  895+        r = offcon(tsize(ty, s->n_df, s->n_sue), s->n_type, s->n_df, s->n_sue);
  896+        ty = ty2;
  897+        rv = bcon(1);
  898+        df = s->n_df;
  899+        while (ISARY(ty)) {
  900+                rv = buildtree(MUL, rv, df->ddim >= 0 ? bcon(df->ddim) :
  901+                    tempnode(-df->ddim, INT, 0, MKSUE(INT)));
  902+                df++;
  903+                ty = DECREF(ty);
  904+        }
  905+        rv = clocal(block(PMCONV, rv, r, INT, 0, MKSUE(INT)));
  906+        rv = optim(rv);
  907+
  908+        r = block(PMCONV, q, rv, INT, 0, MKSUE(INT));
<_896909         r = clocal(r);
 897910         /*
 898911          * Indexing is only allowed with integer arguments, so insert
FishEye: Open Source License registered to PCC.
Your maintenance has expired. You can renew your license at http://www.atlassian.com/fisheye/renew
Atlassian FishEye, CVS analysis. (Version:1.6.3 Build:build-336 2008-11-04) - Administration - Page generated 2014-10-01 06:06 +0200