2010-02-19 21:42:50 -07:00
|
|
|
// Copyright 2009 The Go Authors. All rights reserved.
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
#include "gg.h"
|
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
static void subnode(Node *nr, Node *ni, Node *nc);
|
|
|
|
static void minus(Node *nl, Node *res);
|
|
|
|
void complexminus(Node*, Node*);
|
|
|
|
void complexadd(int op, Node*, Node*, Node*);
|
|
|
|
void complexmul(Node*, Node*, Node*);
|
2010-02-21 18:51:39 -07:00
|
|
|
|
2010-02-19 21:42:50 -07:00
|
|
|
#define CASE(a,b) (((a)<<16)|((b)<<0))
|
|
|
|
|
|
|
|
/*
|
|
|
|
* generate:
|
|
|
|
* res = n;
|
|
|
|
* simplifies and calls gmove.
|
|
|
|
*/
|
|
|
|
void
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(Node *f, Node *t)
|
2010-02-19 21:42:50 -07:00
|
|
|
{
|
|
|
|
int ft, tt;
|
2010-03-09 13:49:24 -07:00
|
|
|
Node n1, n2, n3, n4;
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-03-02 19:32:11 -07:00
|
|
|
if(debug['g']) {
|
2010-03-05 21:16:04 -07:00
|
|
|
dump("\ncomplexmove-f", f);
|
|
|
|
dump("complexmove-t", t);
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
if(!t->addable)
|
2010-03-05 21:16:04 -07:00
|
|
|
fatal("complexmove: to not addable");
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
ft = simsimtype(f->type);
|
|
|
|
tt = simsimtype(t->type);
|
|
|
|
switch(CASE(ft,tt)) {
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
default:
|
|
|
|
fatal("complexmove: unknown conversion: %T -> %T\n",
|
|
|
|
f->type, t->type);
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
case CASE(TCOMPLEX64,TCOMPLEX64):
|
|
|
|
case CASE(TCOMPLEX64,TCOMPLEX128):
|
|
|
|
case CASE(TCOMPLEX128,TCOMPLEX64):
|
|
|
|
case CASE(TCOMPLEX128,TCOMPLEX128):
|
|
|
|
// complex to complex move/convert
|
|
|
|
// make from addable
|
|
|
|
if(!f->addable) {
|
|
|
|
tempname(&n1, f->type);
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(f, &n1);
|
2010-02-21 18:51:39 -07:00
|
|
|
f = &n1;
|
|
|
|
}
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
subnode(&n1, &n2, f);
|
|
|
|
subnode(&n3, &n4, t);
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
cgen(&n1, &n3);
|
|
|
|
cgen(&n2, &n4);
|
2010-02-21 18:51:39 -07:00
|
|
|
break;
|
|
|
|
}
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
|
|
|
|
2010-03-02 19:32:11 -07:00
|
|
|
int
|
|
|
|
complexop(Node *n, Node *res)
|
|
|
|
{
|
|
|
|
if(n != N && n->type != T)
|
|
|
|
if(iscomplex[n->type->etype]) {
|
2010-03-09 13:49:24 -07:00
|
|
|
goto maybe;
|
2010-03-05 21:16:04 -07:00
|
|
|
}
|
|
|
|
if(res != N && res->type != T)
|
|
|
|
if(iscomplex[res->type->etype]) {
|
2010-03-09 13:49:24 -07:00
|
|
|
goto maybe;
|
2010-03-02 19:32:11 -07:00
|
|
|
}
|
2010-03-05 21:16:04 -07:00
|
|
|
|
|
|
|
if(n->op == OREAL || n->op == OIMAG)
|
2010-03-09 13:49:24 -07:00
|
|
|
goto yes;
|
2010-03-05 21:16:04 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
goto no;
|
2010-03-02 19:32:11 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
maybe:
|
2010-03-05 21:16:04 -07:00
|
|
|
switch(n->op) {
|
|
|
|
case OCONV: // implemented ops
|
|
|
|
case OADD:
|
|
|
|
case OSUB:
|
|
|
|
case OMUL:
|
|
|
|
case OMINUS:
|
|
|
|
case OCMPLX:
|
|
|
|
case OREAL:
|
|
|
|
case OIMAG:
|
2010-03-09 13:49:24 -07:00
|
|
|
goto yes;
|
2010-03-05 21:16:04 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
case ODOT:
|
2010-03-05 21:16:04 -07:00
|
|
|
case ODOTPTR:
|
|
|
|
case OINDEX:
|
|
|
|
case OIND:
|
|
|
|
case ONAME:
|
2010-03-09 13:49:24 -07:00
|
|
|
goto yes;
|
2010-03-05 21:16:04 -07:00
|
|
|
}
|
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
no:
|
|
|
|
//dump("\ncomplex-no", n);
|
2010-03-05 21:16:04 -07:00
|
|
|
return 0;
|
2010-03-09 13:49:24 -07:00
|
|
|
yes:
|
|
|
|
//dump("\ncomplex-yes", n);
|
|
|
|
return 1;
|
2010-03-02 19:32:11 -07:00
|
|
|
}
|
|
|
|
|
2010-02-19 21:42:50 -07:00
|
|
|
void
|
|
|
|
complexgen(Node *n, Node *res)
|
|
|
|
{
|
|
|
|
Node *nl, *nr;
|
2010-03-05 21:16:04 -07:00
|
|
|
Node tnl, tnr;
|
2010-03-09 14:39:45 -07:00
|
|
|
Node n1, n2, tmp;
|
2010-02-19 21:42:50 -07:00
|
|
|
int tl, tr;
|
|
|
|
|
2010-03-02 19:32:11 -07:00
|
|
|
if(debug['g']) {
|
2010-03-05 21:16:04 -07:00
|
|
|
dump("\ncomplexgen-n", n);
|
|
|
|
dump("complexgen-res", res);
|
|
|
|
}
|
|
|
|
|
|
|
|
// pick off float/complex opcodes
|
|
|
|
switch(n->op) {
|
|
|
|
case OCMPLX:
|
2010-06-20 12:21:43 -06:00
|
|
|
if(res->addable) {
|
|
|
|
subnode(&n1, &n2, res);
|
|
|
|
tempname(&tmp, n1.type);
|
|
|
|
cgen(n->left, &tmp);
|
|
|
|
cgen(n->right, &n2);
|
|
|
|
cgen(&tmp, &n1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
break;
|
2010-03-05 21:16:04 -07:00
|
|
|
|
|
|
|
case OREAL:
|
|
|
|
case OIMAG:
|
2010-05-20 21:56:28 -06:00
|
|
|
nl = n->left;
|
|
|
|
if(!nl->addable) {
|
|
|
|
tempname(&tmp, nl->type);
|
|
|
|
complexgen(nl, &tmp);
|
|
|
|
nl = &tmp;
|
|
|
|
}
|
|
|
|
subnode(&n1, &n2, nl);
|
|
|
|
if(n->op == OREAL) {
|
|
|
|
cgen(&n1, res);
|
|
|
|
return;
|
|
|
|
}
|
2010-03-05 21:16:04 -07:00
|
|
|
cgen(&n2, res);
|
|
|
|
return;
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// perform conversion from n to res
|
|
|
|
tl = simsimtype(res->type);
|
|
|
|
tl = cplxsubtype(tl);
|
|
|
|
tr = simsimtype(n->type);
|
|
|
|
tr = cplxsubtype(tr);
|
|
|
|
if(tl != tr) {
|
2010-02-21 18:51:39 -07:00
|
|
|
if(!n->addable) {
|
|
|
|
tempname(&n1, n->type);
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(n, &n1);
|
2010-02-21 18:51:39 -07:00
|
|
|
n = &n1;
|
|
|
|
}
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(n, res);
|
2010-02-19 21:42:50 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
2010-03-05 21:16:04 -07:00
|
|
|
if(!res->addable) {
|
|
|
|
igen(res, &n1, N);
|
|
|
|
cgen(n, &n1);
|
|
|
|
regfree(&n1);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if(n->addable) {
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(n, res);
|
2010-03-05 21:16:04 -07:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
switch(n->op) {
|
|
|
|
default:
|
|
|
|
dump("complexgen: unknown op", n);
|
|
|
|
fatal("complexgen: unknown op %O", n->op);
|
|
|
|
|
|
|
|
case ODOT:
|
|
|
|
case ODOTPTR:
|
|
|
|
case OINDEX:
|
|
|
|
case OIND:
|
|
|
|
case ONAME: // PHEAP or PPARAMREF var
|
2010-06-23 08:55:50 -06:00
|
|
|
case OCALLFUNC:
|
2010-03-05 21:16:04 -07:00
|
|
|
igen(n, &n1, res);
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(&n1, res);
|
2010-03-05 21:16:04 -07:00
|
|
|
regfree(&n1);
|
|
|
|
return;
|
|
|
|
|
|
|
|
case OCONV:
|
|
|
|
case OADD:
|
|
|
|
case OSUB:
|
|
|
|
case OMUL:
|
|
|
|
case OMINUS:
|
|
|
|
case OCMPLX:
|
|
|
|
case OREAL:
|
|
|
|
case OIMAG:
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
|
2010-02-19 21:42:50 -07:00
|
|
|
nl = n->left;
|
|
|
|
if(nl == N)
|
|
|
|
return;
|
|
|
|
nr = n->right;
|
2010-02-21 18:51:39 -07:00
|
|
|
|
|
|
|
// make both sides addable in ullman order
|
2010-02-19 21:42:50 -07:00
|
|
|
if(nr != N) {
|
2010-02-21 18:51:39 -07:00
|
|
|
if(nl->ullman > nr->ullman && !nl->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnl, nl->type);
|
|
|
|
cgen(nl, &tnl);
|
|
|
|
nl = &tnl;
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
2010-02-21 18:51:39 -07:00
|
|
|
if(!nr->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnr, nr->type);
|
|
|
|
cgen(nr, &tnr);
|
|
|
|
nr = &tnr;
|
2010-02-21 18:51:39 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!nl->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnl, nl->type);
|
|
|
|
cgen(nl, &tnl);
|
|
|
|
nl = &tnl;
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
switch(n->op) {
|
|
|
|
default:
|
2010-03-05 21:16:04 -07:00
|
|
|
fatal("complexgen: unknown op %O", n->op);
|
2010-02-19 21:42:50 -07:00
|
|
|
break;
|
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
case OCONV:
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmove(nl, res);
|
2010-02-21 18:51:39 -07:00
|
|
|
break;
|
|
|
|
|
|
|
|
case OMINUS:
|
2010-03-09 13:49:24 -07:00
|
|
|
complexminus(nl, res);
|
2010-02-21 18:51:39 -07:00
|
|
|
break;
|
|
|
|
|
2010-02-19 21:42:50 -07:00
|
|
|
case OADD:
|
|
|
|
case OSUB:
|
2010-03-09 13:49:24 -07:00
|
|
|
complexadd(n->op, nl, nr, res);
|
2010-02-21 18:51:39 -07:00
|
|
|
break;
|
|
|
|
|
2010-02-19 21:42:50 -07:00
|
|
|
case OMUL:
|
2010-03-09 13:49:24 -07:00
|
|
|
complexmul(nl, nr, res);
|
2010-03-02 19:32:11 -07:00
|
|
|
break;
|
2010-02-21 18:51:39 -07:00
|
|
|
}
|
|
|
|
}
|
2010-02-19 21:42:50 -07:00
|
|
|
|
2010-03-02 19:32:11 -07:00
|
|
|
void
|
|
|
|
complexbool(int op, Node *nl, Node *nr, int true, Prog *to)
|
|
|
|
{
|
2010-03-05 21:16:04 -07:00
|
|
|
Node tnl, tnr;
|
2010-03-02 19:32:11 -07:00
|
|
|
Node n1, n2, n3, n4;
|
|
|
|
Node na, nb, nc;
|
|
|
|
|
|
|
|
// make both sides addable in ullman order
|
|
|
|
if(nr != N) {
|
|
|
|
if(nl->ullman > nr->ullman && !nl->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnl, nl->type);
|
|
|
|
cgen(nl, &tnl);
|
|
|
|
nl = &tnl;
|
2010-03-02 19:32:11 -07:00
|
|
|
}
|
|
|
|
if(!nr->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnr, nr->type);
|
|
|
|
cgen(nr, &tnr);
|
|
|
|
nr = &tnr;
|
2010-03-02 19:32:11 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
if(!nl->addable) {
|
2010-03-05 21:16:04 -07:00
|
|
|
tempname(&tnl, nl->type);
|
|
|
|
cgen(nl, &tnl);
|
|
|
|
nl = &tnl;
|
2010-03-02 19:32:11 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
// build tree
|
|
|
|
// real(l) == real(r) && imag(l) == imag(r)
|
|
|
|
|
|
|
|
subnode(&n1, &n2, nl);
|
|
|
|
subnode(&n3, &n4, nr);
|
|
|
|
|
|
|
|
memset(&na, 0, sizeof(na));
|
|
|
|
na.op = OANDAND;
|
|
|
|
na.left = &nb;
|
|
|
|
na.right = &nc;
|
|
|
|
na.type = types[TBOOL];
|
|
|
|
|
|
|
|
memset(&nb, 0, sizeof(na));
|
|
|
|
nb.op = OEQ;
|
|
|
|
nb.left = &n1;
|
|
|
|
nb.right = &n3;
|
|
|
|
nb.type = types[TBOOL];
|
|
|
|
|
|
|
|
memset(&nc, 0, sizeof(na));
|
|
|
|
nc.op = OEQ;
|
|
|
|
nc.left = &n2;
|
|
|
|
nc.right = &n4;
|
|
|
|
nc.type = types[TBOOL];
|
|
|
|
|
|
|
|
if(op == ONE)
|
|
|
|
true = !true;
|
|
|
|
|
|
|
|
bgen(&na, true, to);
|
|
|
|
}
|
|
|
|
|
2010-02-21 18:51:39 -07:00
|
|
|
void
|
|
|
|
nodfconst(Node *n, Type *t, Mpflt* fval)
|
|
|
|
{
|
|
|
|
memset(n, 0, sizeof(*n));
|
|
|
|
n->op = OLITERAL;
|
|
|
|
n->addable = 1;
|
|
|
|
ullmancalc(n);
|
|
|
|
n->val.u.fval = fval;
|
|
|
|
n->val.ctype = CTFLT;
|
|
|
|
n->type = t;
|
|
|
|
|
|
|
|
if(!isfloat[t->etype])
|
|
|
|
fatal("nodfconst: bad type %T", t);
|
|
|
|
}
|
|
|
|
|
|
|
|
// break addable nc-complex into nr-real and ni-imaginary
|
|
|
|
static void
|
|
|
|
subnode(Node *nr, Node *ni, Node *nc)
|
|
|
|
{
|
|
|
|
int tc;
|
|
|
|
Type *t;
|
|
|
|
|
|
|
|
if(!nc->addable)
|
|
|
|
fatal("subnode not addable");
|
|
|
|
|
|
|
|
tc = simsimtype(nc->type);
|
|
|
|
tc = cplxsubtype(tc);
|
|
|
|
t = types[tc];
|
|
|
|
|
|
|
|
if(nc->op == OLITERAL) {
|
|
|
|
nodfconst(nr, t, &nc->val.u.cval->real);
|
|
|
|
nodfconst(ni, t, &nc->val.u.cval->imag);
|
|
|
|
return;
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|
2010-02-21 18:51:39 -07:00
|
|
|
|
|
|
|
*nr = *nc;
|
|
|
|
nr->type = t;
|
|
|
|
|
|
|
|
*ni = *nc;
|
|
|
|
ni->type = t;
|
|
|
|
ni->xoffset += t->width;
|
|
|
|
}
|
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
// generate code res = -nl
|
2010-02-21 18:51:39 -07:00
|
|
|
static void
|
2010-03-09 13:49:24 -07:00
|
|
|
minus(Node *nl, Node *res)
|
2010-02-21 18:51:39 -07:00
|
|
|
{
|
2010-03-09 13:49:24 -07:00
|
|
|
Node ra;
|
2010-02-21 18:51:39 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
memset(&ra, 0, sizeof(ra));
|
|
|
|
ra.op = OMINUS;
|
|
|
|
ra.left = nl;
|
|
|
|
ra.type = nl->type;
|
|
|
|
cgen(&ra, res);
|
|
|
|
}
|
2010-02-21 18:51:39 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
// build and execute tree
|
|
|
|
// real(res) = -real(nl)
|
|
|
|
// imag(res) = -imag(nl)
|
|
|
|
void
|
|
|
|
complexminus(Node *nl, Node *res)
|
|
|
|
{
|
|
|
|
Node n1, n2, n5, n6;
|
|
|
|
|
|
|
|
subnode(&n1, &n2, nl);
|
|
|
|
subnode(&n5, &n6, res);
|
2010-02-21 18:51:39 -07:00
|
|
|
|
2010-03-09 13:49:24 -07:00
|
|
|
minus(&n1, &n5);
|
|
|
|
minus(&n2, &n6);
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// build and execute tree
|
|
|
|
// real(res) = real(nl) op real(nr)
|
|
|
|
// imag(res) = imag(nl) op imag(nr)
|
|
|
|
void
|
|
|
|
complexadd(int op, Node *nl, Node *nr, Node *res)
|
|
|
|
{
|
|
|
|
Node n1, n2, n3, n4, n5, n6;
|
|
|
|
Node ra;
|
|
|
|
|
|
|
|
subnode(&n1, &n2, nl);
|
|
|
|
subnode(&n3, &n4, nr);
|
|
|
|
subnode(&n5, &n6, res);
|
|
|
|
|
|
|
|
memset(&ra, 0, sizeof(ra));
|
|
|
|
ra.op = op;
|
|
|
|
ra.left = &n1;
|
|
|
|
ra.right = &n3;
|
|
|
|
ra.type = n1.type;
|
|
|
|
cgen(&ra, &n5);
|
|
|
|
|
|
|
|
memset(&ra, 0, sizeof(ra));
|
|
|
|
ra.op = op;
|
|
|
|
ra.left = &n2;
|
|
|
|
ra.right = &n4;
|
|
|
|
ra.type = n2.type;
|
|
|
|
cgen(&ra, &n6);
|
|
|
|
}
|
|
|
|
|
|
|
|
// build and execute tree
|
2010-03-09 14:39:45 -07:00
|
|
|
// tmp = real(nl)*real(nr) - imag(nl)*imag(nr)
|
2010-03-09 13:49:24 -07:00
|
|
|
// imag(res) = real(nl)*imag(nr) + imag(nl)*real(nr)
|
2010-03-09 14:39:45 -07:00
|
|
|
// real(res) = tmp
|
2010-03-09 13:49:24 -07:00
|
|
|
void
|
|
|
|
complexmul(Node *nl, Node *nr, Node *res)
|
|
|
|
{
|
|
|
|
Node n1, n2, n3, n4, n5, n6;
|
2010-03-09 14:39:45 -07:00
|
|
|
Node rm1, rm2, ra, tmp;
|
2010-03-09 13:49:24 -07:00
|
|
|
|
|
|
|
subnode(&n1, &n2, nl);
|
|
|
|
subnode(&n3, &n4, nr);
|
|
|
|
subnode(&n5, &n6, res);
|
2010-03-09 14:39:45 -07:00
|
|
|
tempname(&tmp, n5.type);
|
2010-03-09 13:49:24 -07:00
|
|
|
|
2010-03-09 14:39:45 -07:00
|
|
|
// real part -> tmp
|
2010-03-09 13:49:24 -07:00
|
|
|
memset(&rm1, 0, sizeof(ra));
|
|
|
|
rm1.op = OMUL;
|
|
|
|
rm1.left = &n1;
|
|
|
|
rm1.right = &n3;
|
|
|
|
rm1.type = n1.type;
|
|
|
|
|
|
|
|
memset(&rm2, 0, sizeof(ra));
|
|
|
|
rm2.op = OMUL;
|
|
|
|
rm2.left = &n2;
|
|
|
|
rm2.right = &n4;
|
|
|
|
rm2.type = n2.type;
|
|
|
|
|
|
|
|
memset(&ra, 0, sizeof(ra));
|
|
|
|
ra.op = OSUB;
|
|
|
|
ra.left = &rm1;
|
|
|
|
ra.right = &rm2;
|
|
|
|
ra.type = rm1.type;
|
2010-03-09 14:39:45 -07:00
|
|
|
cgen(&ra, &tmp);
|
2010-03-09 13:49:24 -07:00
|
|
|
|
|
|
|
// imag part
|
|
|
|
memset(&rm1, 0, sizeof(ra));
|
|
|
|
rm1.op = OMUL;
|
|
|
|
rm1.left = &n1;
|
|
|
|
rm1.right = &n4;
|
|
|
|
rm1.type = n1.type;
|
|
|
|
|
|
|
|
memset(&rm2, 0, sizeof(ra));
|
|
|
|
rm2.op = OMUL;
|
|
|
|
rm2.left = &n2;
|
|
|
|
rm2.right = &n3;
|
|
|
|
rm2.type = n2.type;
|
|
|
|
|
|
|
|
memset(&ra, 0, sizeof(ra));
|
|
|
|
ra.op = OADD;
|
|
|
|
ra.left = &rm1;
|
|
|
|
ra.right = &rm2;
|
|
|
|
ra.type = rm1.type;
|
|
|
|
cgen(&ra, &n6);
|
2010-03-09 14:39:45 -07:00
|
|
|
|
|
|
|
// tmp ->real part
|
|
|
|
cgen(&tmp, &n5);
|
2010-02-19 21:42:50 -07:00
|
|
|
}
|