ge_madd.h (1900B)
1 /* qhasm: enter ge_madd */ 2 3 /* qhasm: fe X1 */ 4 5 /* qhasm: fe Y1 */ 6 7 /* qhasm: fe Z1 */ 8 9 /* qhasm: fe T1 */ 10 11 /* qhasm: fe ypx2 */ 12 13 /* qhasm: fe ymx2 */ 14 15 /* qhasm: fe xy2d2 */ 16 17 /* qhasm: fe X3 */ 18 19 /* qhasm: fe Y3 */ 20 21 /* qhasm: fe Z3 */ 22 23 /* qhasm: fe T3 */ 24 25 /* qhasm: fe YpX1 */ 26 27 /* qhasm: fe YmX1 */ 28 29 /* qhasm: fe A */ 30 31 /* qhasm: fe B */ 32 33 /* qhasm: fe C */ 34 35 /* qhasm: fe D */ 36 37 /* qhasm: YpX1 = Y1+X1 */ 38 /* asm 1: fe_add(>YpX1=fe#1,<Y1=fe#12,<X1=fe#11); */ 39 /* asm 2: fe_add(>YpX1=r->X,<Y1=p->Y,<X1=p->X); */ 40 fe_add(r->X,p->Y,p->X); 41 42 /* qhasm: YmX1 = Y1-X1 */ 43 /* asm 1: fe_sub(>YmX1=fe#2,<Y1=fe#12,<X1=fe#11); */ 44 /* asm 2: fe_sub(>YmX1=r->Y,<Y1=p->Y,<X1=p->X); */ 45 fe_sub(r->Y,p->Y,p->X); 46 47 /* qhasm: A = YpX1*ypx2 */ 48 /* asm 1: fe_mul(>A=fe#3,<YpX1=fe#1,<ypx2=fe#15); */ 49 /* asm 2: fe_mul(>A=r->Z,<YpX1=r->X,<ypx2=q->yplusx); */ 50 fe_mul(r->Z,r->X,q->yplusx); 51 52 /* qhasm: B = YmX1*ymx2 */ 53 /* asm 1: fe_mul(>B=fe#2,<YmX1=fe#2,<ymx2=fe#16); */ 54 /* asm 2: fe_mul(>B=r->Y,<YmX1=r->Y,<ymx2=q->yminusx); */ 55 fe_mul(r->Y,r->Y,q->yminusx); 56 57 /* qhasm: C = xy2d2*T1 */ 58 /* asm 1: fe_mul(>C=fe#4,<xy2d2=fe#17,<T1=fe#14); */ 59 /* asm 2: fe_mul(>C=r->T,<xy2d2=q->xy2d,<T1=p->T); */ 60 fe_mul(r->T,q->xy2d,p->T); 61 62 /* qhasm: D = 2*Z1 */ 63 /* asm 1: fe_add(>D=fe#5,<Z1=fe#13,<Z1=fe#13); */ 64 /* asm 2: fe_add(>D=t0,<Z1=p->Z,<Z1=p->Z); */ 65 fe_add(t0,p->Z,p->Z); 66 67 /* qhasm: X3 = A-B */ 68 /* asm 1: fe_sub(>X3=fe#1,<A=fe#3,<B=fe#2); */ 69 /* asm 2: fe_sub(>X3=r->X,<A=r->Z,<B=r->Y); */ 70 fe_sub(r->X,r->Z,r->Y); 71 72 /* qhasm: Y3 = A+B */ 73 /* asm 1: fe_add(>Y3=fe#2,<A=fe#3,<B=fe#2); */ 74 /* asm 2: fe_add(>Y3=r->Y,<A=r->Z,<B=r->Y); */ 75 fe_add(r->Y,r->Z,r->Y); 76 77 /* qhasm: Z3 = D+C */ 78 /* asm 1: fe_add(>Z3=fe#3,<D=fe#5,<C=fe#4); */ 79 /* asm 2: fe_add(>Z3=r->Z,<D=t0,<C=r->T); */ 80 fe_add(r->Z,t0,r->T); 81 82 /* qhasm: T3 = D-C */ 83 /* asm 1: fe_sub(>T3=fe#4,<D=fe#5,<C=fe#4); */ 84 /* asm 2: fe_sub(>T3=r->T,<D=t0,<C=r->T); */ 85 fe_sub(r->T,t0,r->T); 86 87 /* qhasm: return */