From 45a20ab721a513710138340faff3d59a31c3e01e Mon Sep 17 00:00:00 2001 From: forsyth Date: Mon, 3 Jun 2013 21:01:14 +0000 Subject: sync compilers with Plan 9 remove 1[acl] 2[acl] --- utils/qc/swt.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'utils/qc/swt.c') diff --git a/utils/qc/swt.c b/utils/qc/swt.c index f0edacc8..53105643 100644 --- a/utils/qc/swt.c +++ b/utils/qc/swt.c @@ -239,23 +239,6 @@ loop: goto loop; } -void -sextern(Sym *s, Node *a, long o, long w) -{ - long e, lw; - - for(e=0; efrom.offset += o+e; - p->reg = lw; - p->to.type = D_SCONST; - memmove(p->to.sval, a->cstring+e, lw); - } -} - void gextern(Sym *s, Node *a, long o, long w) { @@ -657,8 +640,8 @@ maxround(long max, long v) w = SZ_LONG; if((debug['8'] || hasdoubled) && !debug['4']) w = SZ_DOUBLE; - v += w-1; + v = round(v, w); if(v > max) - max = round(v, w); + return v; return max; } -- cgit v1.2.3