comparison gen/complex.h @ 617:634fbbdec390

Simplify complex number handling. Fixes bug with complex substraction.
author Christian Kamm <kamm incasoftware de>
date Mon, 22 Sep 2008 20:29:18 +0200
parents fbb1a366cfbc
children eef8ac26c66c
comparison
equal deleted inserted replaced
616:5ced42a55aa9 617:634fbbdec390
12 LLValue* DtoImagPart(DValue* val); 12 LLValue* DtoImagPart(DValue* val);
13 DValue* DtoComplex(Loc& loc, Type* to, DValue* val); 13 DValue* DtoComplex(Loc& loc, Type* to, DValue* val);
14 14
15 void DtoComplexSet(LLValue* c, LLValue* re, LLValue* im); 15 void DtoComplexSet(LLValue* c, LLValue* re, LLValue* im);
16 16
17 void DtoGetComplexParts(DValue* c, LLValue*& re, LLValue*& im); 17 void DtoGetComplexParts(Loc& loc, Type* to, DValue* c, LLValue*& re, LLValue*& im);
18 18
19 DValue* DtoComplexAdd(Loc& loc, Type* type, DValue* lhs, DValue* rhs); 19 DValue* DtoComplexAdd(Loc& loc, Type* type, DValue* lhs, DValue* rhs);
20 DValue* DtoComplexSub(Loc& loc, Type* type, DValue* lhs, DValue* rhs); 20 DValue* DtoComplexSub(Loc& loc, Type* type, DValue* lhs, DValue* rhs);
21 DValue* DtoComplexMul(Loc& loc, Type* type, DValue* lhs, DValue* rhs); 21 DValue* DtoComplexMul(Loc& loc, Type* type, DValue* lhs, DValue* rhs);
22 DValue* DtoComplexDiv(Loc& loc, Type* type, DValue* lhs, DValue* rhs); 22 DValue* DtoComplexDiv(Loc& loc, Type* type, DValue* lhs, DValue* rhs);