1#include "ge.h"
2
3/*
4r = p
5*/
6
7static const fe d2 = {
8#include "d2.h"
9} ;
10
11extern void ge_p3_to_cached(ge_cached *r,const ge_p3 *p)
12{
13 fe_add(r->YplusX,p->Y,p->X);
14 fe_sub(r->YminusX,p->Y,p->X);
15 fe_copy(r->Z,p->Z);
16 fe_mul(r->T2d,p->T,d2);
17}
18