ge_p3_to_cached.c 246 B

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